feat(learning-auth): expose auth mode in profile and default advanced to jwt
This commit is contained in:
@@ -16,11 +16,15 @@ public class LearningProfileInfo {
|
||||
@Value("${app.enabled-modules:ioc,aop,mybatis,transaction,users}")
|
||||
private String[] enabledModules;
|
||||
|
||||
@Value("${auth.type:none}")
|
||||
private String authType;
|
||||
|
||||
@GetMapping("/api/profile")
|
||||
public Map<String, Object> profileInfo() {
|
||||
return Map.of(
|
||||
"profile", activeProfile,
|
||||
"enabledModules", Arrays.asList(enabledModules)
|
||||
"enabledModules", Arrays.asList(enabledModules),
|
||||
"authType", authType
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user