Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(config-api): auth featureFlags should be described as enum in spec #6590

Merged
merged 10 commits into from Nov 20, 2023
8 changes: 8 additions & 0 deletions jans-auth-server/model/pom.xml
Expand Up @@ -181,6 +181,14 @@
<artifactId>jans-doc</artifactId>
<version>${jans-core.version}</version>
</dependency>

<!-- Swagger -->
<dependency>
<groupId>
io.swagger.core.v3</groupId>
<artifactId>swagger-core-jakarta</artifactId>
<version>2.2.10</version>
</dependency>

</dependencies>
</project>
Expand Up @@ -16,7 +16,8 @@
import io.jans.as.model.ssa.SsaConfiguration;
import io.jans.as.model.ssa.SsaValidationConfig;
import io.jans.doc.annotation.DocProperty;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.ArraySchema;
import java.util.*;

/**
Expand Down Expand Up @@ -853,6 +854,7 @@ public class AppConfiguration implements Configuration {
private List<String> discoveryDenyKeys;

@DocProperty(description = "List of enabled feature flags")
@ArraySchema(schema = @Schema(implementation = FeatureFlagType.class))
private List<String> featureFlags;

@DocProperty(description = "Enable/disable request/response logging filter")
Expand Down
34 changes: 28 additions & 6 deletions jans-config-api/docs/jans-config-api-swagger.yaml
Expand Up @@ -7594,10 +7594,10 @@ components:
type: boolean
userCanEdit:
type: boolean
adminCanAccess:
type: boolean
userCanAccess:
type: boolean
adminCanAccess:
type: boolean
whitePagesCanView:
type: boolean
baseDn:
Expand Down Expand Up @@ -8346,6 +8346,28 @@ components:
type: array
items:
type: string
enum:
- UNKNOWN
- HEALTH_CHECK
- USERINFO
- CLIENTINFO
- ID_GENERATION
- REGISTRATION
- INTROSPECTION
- REVOKE_TOKEN
- REVOKE_SESSION
- ACTIVE_SESSION
- END_SESSION
- STATUS_SESSION
- JANS_CONFIGURATION
- CIBA
- UMA
- U2F
- DEVICE_AUTHZ
- METRIC
- STAT
- PAR
- SSA
httpLoggingEnabled:
type: boolean
httpLoggingExcludePaths:
Expand Down Expand Up @@ -9002,6 +9024,8 @@ components:
ttl:
type: integer
format: int32
displayName:
type: string
authenticationMethod:
type: string
enum:
Expand All @@ -9013,8 +9037,6 @@ components:
- tls_client_auth
- self_signed_tls_client_auth
- none
displayName:
type: string
baseDn:
type: string
inum:
Expand Down Expand Up @@ -9376,14 +9398,14 @@ components:
type: boolean
internal:
type: boolean
locationPath:
type: string
locationType:
type: string
enum:
- ldap
- db
- file
locationPath:
type: string
baseDn:
type: string
ScriptError:
Expand Down