Add API retrieval by organization code and enhance SSO user handling
- Implemented `getApisByOrgCode` method in `ObpApiService` to fetch APIs based on organization code. - Added corresponding endpoint in `ObpApiController`. - Updated `SsoController` to handle user creation without synchronization for existing users. - Introduced new properties for SSO synchronization settings in `KjbProperty`.
This commit is contained in:
@@ -144,6 +144,12 @@ public class KjbProperty {
|
||||
|
||||
@KjbPropertyValue(key = "kjb.sso.ignore_validation", defaultValue = "false")
|
||||
private boolean ssoIgnoreValidation = false;
|
||||
|
||||
@KjbPropertyValue(
|
||||
key = "kjb.sso.sync_info",
|
||||
defaultValue = "true",
|
||||
description = "SSO 인증시 사용자 정보 동기화 여부(false 시 이름과 ID를 동일하게 처리. 나머지 정보는 무시)")
|
||||
private boolean ssoSyncInfo = true;
|
||||
|
||||
|
||||
public String toJsonString(boolean isPretty) {
|
||||
@@ -151,6 +157,23 @@ public class KjbProperty {
|
||||
? new GsonBuilder().setPrettyPrinting().create().toJson(this)
|
||||
: new Gson().toJson(this);
|
||||
}
|
||||
|
||||
|
||||
// 기본 프로퍼티 목록을 콘솔로 출력 (가이드용)
|
||||
public static void main(String[] args) {
|
||||
System.out.println("| Key | Default Value | Description |");
|
||||
System.out.println("|-----|---------------|-------------|");
|
||||
|
||||
for (java.lang.reflect.Field field : KjbProperty.class.getDeclaredFields()) {
|
||||
KjbPropertyValue annotation = field.getAnnotation(KjbPropertyValue.class);
|
||||
if (annotation != null) {
|
||||
String key = annotation.key();
|
||||
String defaultValue = annotation.defaultValue();
|
||||
String description = annotation.description();
|
||||
System.out.printf("| %s | %s | %s |%n", key, defaultValue, description);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,5 @@ import java.lang.annotation.Target;
|
||||
public @interface KjbPropertyValue {
|
||||
String key();
|
||||
String defaultValue() default "";
|
||||
String description() default "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user