Skip to content

Commit

Permalink
[AAE-13305] remove unused authpath (#9294)
Browse files Browse the repository at this point in the history
  • Loading branch information
eromano committed Jan 30, 2024
1 parent 9e05baf commit cb7f4ff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion docs/core/components/login.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": ""
}
Expand Down
3 changes: 0 additions & 3 deletions lib/core/src/lib/app-config/app.config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 2 additions & 5 deletions lib/js-api/docs/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,14 @@ 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
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'
Expand Down Expand Up @@ -317,4 +314,4 @@ alfrescoJsApi.logout()
.on('logout', () => {
console.log('Successfully Logout');
});
```
```

0 comments on commit cb7f4ff

Please sign in to comment.