From cb7f4ffda20263c3f23d53d4834e4f755e34ca1a Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Tue, 30 Jan 2024 16:23:56 +0100 Subject: [PATCH] [AAE-13305] remove unused authpath (#9294) --- docs/core/components/login.component.md | 1 - lib/core/src/lib/app-config/app.config.schema.json | 3 --- lib/js-api/docs/authentication.md | 7 ++----- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/core/components/login.component.md b/docs/core/components/login.component.md index 5306073d3c..dcab85c41f 100644 --- a/docs/core/components/login.component.md +++ b/docs/core/components/login.component.md @@ -195,7 +195,6 @@ You can access an external provider to get an auth token for a user: { "oauth2" : { "host": "http://myhost.com", - "authPath": "/my-custom-auth/token", "clientId": "my-client-id", "secret": "" } diff --git a/lib/core/src/lib/app-config/app.config.schema.json b/lib/core/src/lib/app-config/app.config.schema.json index 0cdca61182..1b1f78798f 100644 --- a/lib/core/src/lib/app-config/app.config.schema.json +++ b/lib/core/src/lib/app-config/app.config.schema.json @@ -1527,9 +1527,6 @@ "silentLogin": { "type": ["boolean", "string"] }, - "authPath": { - "type": "string" - }, "clientId": { "type": "string", "description": "The client's id as registered with the auth server" diff --git a/lib/js-api/docs/authentication.md b/lib/js-api/docs/authentication.md index e9dc7f6d3e..c87f33acb2 100644 --- a/lib/js-api/docs/authentication.md +++ b/lib/js-api/docs/authentication.md @@ -195,8 +195,6 @@ const alfrescoApi = new AlfrescoApi({ #### Password Flow -If your auth endpoint is different from the standard one "/oauth/token" you can override it through the property authPath - **Example** ```javascript @@ -204,8 +202,7 @@ const alfrescoApi = new AlfrescoApi({ oauth2: { host: 'HOST_OAUTH2_SERVER', clientId: 'YOUR_CLIENT_ID', - secret: 'SECRET', - authPath:'my-custom-auth-endpoint/token' + secret: 'SECRET' }, authType: 'OAUTH', provider: 'ALL' @@ -317,4 +314,4 @@ alfrescoJsApi.logout() .on('logout', () => { console.log('Successfully Logout'); }); -``` \ No newline at end of file +```