mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
chore: add docs how to obtain bearer token
This commit is contained in:
parent
d99c100a77
commit
e9227ca91a
1 changed files with 5 additions and 1 deletions
|
@ -161,7 +161,7 @@ Responses are valid JSON in the following format:
|
||||||
|
|
||||||
### Authentication
|
### Authentication
|
||||||
|
|
||||||
Authentication works via an OAuth token that is sent with each request as a post parameter. You can add new clients that can sign in via the API by adding new entries to the sso section in the settings.json.
|
Authentication works via an OAuth token that is sent with each request as an Authorization header, i.e. `Authorization: Bearer YOUR_TOKEN`. You can add new clients that can sign in via the API by adding new entries to the sso section in the settings.json.
|
||||||
|
|
||||||
|
|
||||||
#### Example for browser login clients
|
#### Example for browser login clients
|
||||||
|
@ -200,6 +200,10 @@ E.g. a service that creates a pad for a user or a service that inserts a text in
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Obtain a Bearer token:
|
||||||
|
|
||||||
|
`curl --request POST --url 'https://your.server.tld/oidc/token' --header 'content-type: application/x-www-form-urlencoded' --data grant_type=client_credentials --data client_id=client_credentials --data client_secret=client_credentials`
|
||||||
|
|
||||||
|
|
||||||
### Node Interoperability
|
### Node Interoperability
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue