Skip to content

Commit

Permalink
Merge pull request #10820 from richersoon/fix/10577
Browse files Browse the repository at this point in the history
Bug: Remove redundant OAuth2 audience key
  • Loading branch information
murdos authored Sep 13, 2024
2 parents a57dad0 + c67af64 commit 680236e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
}

private static PropertyValue audience(JHipsterModuleProperties properties) {
return propertyValue(
"application.security.oauth2.audience=account",
"api://default",
"https://" + properties.getString(AUTH0_DOMAIN_PROPERTY) + "/api/v2/"
);
return propertyValue("account", "api://default", "https://" + properties.getString(AUTH0_DOMAIN_PROPERTY) + "/api/v2/");
}

private static PropertyValue issuerUri(JHipsterModuleProperties properties) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void shouldCreateOAuth2OktaModule() {
security:
oauth2:
audience:
- application.security.oauth2.audience=account
- account
- api://default
- https://dev-123456.us.auth0.com/api/v2/
spring:
Expand Down

0 comments on commit 680236e

Please sign in to comment.