Skip to content

Commit 1c2bf8f

Browse files
committed
Replace _opendistro route to _plugins
1 parent bc2c444 commit 1c2bf8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/auth/types/saml/routes.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class SamlAuthRoutes {
101101

102102
this.router.post(
103103
{
104-
path: `/_opendistro/_security/saml/acs`,
104+
path: `/_plugins/_security/saml/acs`,
105105
validate: {
106106
body: schema.any(),
107107
},
@@ -200,7 +200,7 @@ export class SamlAuthRoutes {
200200

201201
this.router.post(
202202
{
203-
path: `/_opendistro/_security/saml/acs/idpinitiated`,
203+
path: `/_plugins/_security/saml/acs/idpinitiated`,
204204
validate: {
205205
body: schema.any(),
206206
},
@@ -209,7 +209,7 @@ export class SamlAuthRoutes {
209209
},
210210
},
211211
async (context, request, response) => {
212-
const acsEndpoint = `${this.coreSetup.http.basePath.serverBasePath}/_opendistro/_security/saml/acs/idpinitiated`;
212+
const acsEndpoint = `${this.coreSetup.http.basePath.serverBasePath}/_plugins/_security/saml/acs/idpinitiated`;
213213
try {
214214
const credentials = await this.securityClient.authToken({
215215
requestId: undefined,
@@ -328,7 +328,7 @@ export class SamlAuthRoutes {
328328
}
329329
);
330330

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

0 commit comments

Comments
 (0)