Skip to content

Commit

Permalink
Add scope value to the ui config properties (#5957)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesarnal authored Feb 5, 2025
1 parent 61e53f3 commit 54fc231
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private UserInterfaceConfigAuth uiAuthConfig() {
options.put("url", uiConfig.authOidcUrl);
options.put("redirectUri", uiConfig.authOidcRedirectUri);
options.put("clientId", uiConfig.authOidcClientId);
options.put("scope", uiConfig.scope);
if (!"f5".equals(uiConfig.authOidcLogoutUrl)) {
options.put("logoutUrl", uiConfig.authOidcLogoutUrl);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ public class UserInterfaceConfigProperties {
@Info(category = "ui", description = "Enabled to show the Settings tab in the UI", availableSince = "3.0.0")
public String featureSettings;

@ConfigProperty(name = "apicurio.ui.auth.oidc.scope", defaultValue = "openid profile email")
@Info(category = "ui", description = "UI auth OIDC scope value", availableSince = "3.0.8")
public String scope;

}
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,11 @@ The following {registry} configuration options are available for each component
|`/`
|`3.0.0`
|The OIDC redirectUri
|`apicurio.ui.auth.oidc.scope`
|`string`
|`openid profile email`
|`3.0.8`
|UI auth OIDC scope value
|`apicurio.ui.contextPath`
|`string`
|`/`
Expand Down

0 comments on commit 54fc231

Please sign in to comment.