Skip to content

Commit

Permalink
Replace _opendistro route to _plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
willyborankin committed Jan 30, 2025
1 parent bc2c444 commit 1c2bf8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/auth/types/saml/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class SamlAuthRoutes {

this.router.post(
{
path: `/_opendistro/_security/saml/acs`,
path: `/_plugins/_security/saml/acs`,
validate: {
body: schema.any(),
},
Expand Down Expand Up @@ -200,7 +200,7 @@ export class SamlAuthRoutes {

this.router.post(
{
path: `/_opendistro/_security/saml/acs/idpinitiated`,
path: `/_plugins/_security/saml/acs/idpinitiated`,
validate: {
body: schema.any(),
},
Expand All @@ -209,7 +209,7 @@ export class SamlAuthRoutes {
},
},
async (context, request, response) => {
const acsEndpoint = `${this.coreSetup.http.basePath.serverBasePath}/_opendistro/_security/saml/acs/idpinitiated`;
const acsEndpoint = `${this.coreSetup.http.basePath.serverBasePath}/_plugins/_security/saml/acs/idpinitiated`;
try {
const credentials = await this.securityClient.authToken({
requestId: undefined,
Expand Down Expand Up @@ -328,7 +328,7 @@ export class SamlAuthRoutes {
}
);

// Once the User is authenticated via the '_opendistro/_security/saml/acs' route,
// Once the User is authenticated via the '_plugins/_security/saml/acs' route,
// the browser will be redirected to '/auth/saml/redirectUrlFragment' route,
// which will execute the redirectUrlFragment.js.
this.coreSetup.http.resources.register(
Expand Down

0 comments on commit 1c2bf8f

Please sign in to comment.