mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[AAE-13305] remove unused authpath (#9294)
This commit is contained in:
parent
9e05baf4a7
commit
cb7f4ffda2
@ -195,7 +195,6 @@ You can access an external provider to get an auth token for a user:
|
|||||||
{
|
{
|
||||||
"oauth2" : {
|
"oauth2" : {
|
||||||
"host": "http://myhost.com",
|
"host": "http://myhost.com",
|
||||||
"authPath": "/my-custom-auth/token",
|
|
||||||
"clientId": "my-client-id",
|
"clientId": "my-client-id",
|
||||||
"secret": ""
|
"secret": ""
|
||||||
}
|
}
|
||||||
|
@ -1527,9 +1527,6 @@
|
|||||||
"silentLogin": {
|
"silentLogin": {
|
||||||
"type": ["boolean", "string"]
|
"type": ["boolean", "string"]
|
||||||
},
|
},
|
||||||
"authPath": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"clientId": {
|
"clientId": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The client's id as registered with the auth server"
|
"description": "The client's id as registered with the auth server"
|
||||||
|
@ -195,8 +195,6 @@ const alfrescoApi = new AlfrescoApi({
|
|||||||
|
|
||||||
#### Password Flow
|
#### Password Flow
|
||||||
|
|
||||||
If your auth endpoint is different from the standard one "/oauth/token" you can override it through the property authPath
|
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
@ -204,8 +202,7 @@ const alfrescoApi = new AlfrescoApi({
|
|||||||
oauth2: {
|
oauth2: {
|
||||||
host: 'HOST_OAUTH2_SERVER',
|
host: 'HOST_OAUTH2_SERVER',
|
||||||
clientId: 'YOUR_CLIENT_ID',
|
clientId: 'YOUR_CLIENT_ID',
|
||||||
secret: 'SECRET',
|
secret: 'SECRET'
|
||||||
authPath:'my-custom-auth-endpoint/token'
|
|
||||||
},
|
},
|
||||||
authType: 'OAUTH',
|
authType: 'OAUTH',
|
||||||
provider: 'ALL'
|
provider: 'ALL'
|
||||||
@ -317,4 +314,4 @@ alfrescoJsApi.logout()
|
|||||||
.on('logout', () => {
|
.on('logout', () => {
|
||||||
console.log('Successfully Logout');
|
console.log('Successfully Logout');
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user