Scroll ignore |
---|
scroll-viewport | true |
---|
scroll-pdf | true |
---|
scroll-office | true |
---|
scroll-chm | true |
---|
scroll-htmldocbook | true |
---|
scroll-docbookeclipsehelp | true |
---|
scroll-eclipsehelphtml | true |
---|
scroll-epub | true |
---|
|
Open in new tab |
...
The access token is used in the request header Authorization: Bearer <COPY ACCESS CODE HERE>
Code Block |
---|
# REPLACE: <CLIENT_ID>, <USER>, <PASSWORD>
curl -X POST -u "<CLIENT_ID>know-app:" \
-d "grant_type=password&username=<USER>&password=<PASSWORD>&scope=openid profile email" \
https://<domain>/keycloak/auth/realms/kada/protocol/openid-connect/token
# Response. The access_token will be used to authenticate API calls to KADA.
{
"access_token": "..",
"expires_in": 7200,
"refresh_expires_in": 86400,
"refresh_token": "...",
"token_type": "bearer",
"id_token": "...",
"not-before-policy": 0,
"session_state": "...",
"scope": "openid profile email"
}
export ACCESS_TOKEN=<ACCESS TOKEN FROM RESPONSE> |
...