Skip to content

Commit

Permalink
Prevent 404 when stopping impersonation
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 17, 2023
1 parent a0c06e8 commit 3d2d849
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Impersonating.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const Impersonating = () => {
onClick={() => {
stopImpersonation();
setFlash(I18n.t("impersonate.flash.clearedImpersonation"));
navigate("/home");
navigate("/");
}}
txt={I18n.t("impersonate.exit")}/>
</div>
Expand Down
8 changes: 6 additions & 2 deletions server/src/main/java/access/SwaggerOpenIdConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ OpenAPI customOpenApi(@Value("${spring.security.oauth2.client.provider.oidcng.au
.addSecuritySchemes(ATTRIBUTE_AGGREGATION_SCHEME_NAME, basicAuthentication);

OpenAPI openAPI = new OpenAPI()
.info(new Info().description("Access app API endpoints").title("Access app API"))
.addServersItem(new Server().url(baseUrl));
.info(new Info()
.description("Invite external API endpoints")
.title("Invite API")
.version("v1"))
.addServersItem(new Server()
.url(baseUrl));

openAPI.components(components)
.addSecurityItem(new SecurityRequirement().addList(OPEN_ID_SCHEME_NAME));
Expand Down

0 comments on commit 3d2d849

Please sign in to comment.