...
Send a
POST
request to https://auth.requirementyogi.com/realms/ry-cloud/protocol/openid-connect/token with the following information:Headers:
Content-Type
:application/x-www-form-urlencoded
Data:
client_id
:backend-confluenceclient
grant_type
:password
username
: the email address of your Requirement Yogi accountpassword
: the password of your Requirement Yogi account
Code Block | ||
---|---|---|
| ||
curl -L 'https://auth.requirementyogi.com/realms/ry-cloud/protocol/openid-connect/token' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'client_id=backend-confluenceclient' \ -d 'grant_type=password' \ -d 'username=YOUR_EMAIL' \ -d 'password=YOUR_PASSWORD' |
...
Code Block | ||
---|---|---|
| ||
{ "access_token": "...YOUR_ACCESS_TOKEN", "expires_in": 300, "refresh_expires_in": 1800, "refresh_token": "...YOUR_REFRESH_TOKEN", "token_type": "Bearer", "not-before-policy": 0, "session_state": "f4c9edf6-855c-4493-9da8-d0939269d0f5", "scope": "email profile" } |
Refresh the access token
Send a
POST
request to https://auth.requirementyogi.com/realms/ry-cloud/protocol/openid-connect/token with the following information:Headers:
Content-Type
:application/x-www-form-urlencoded
Data:
client_id
:backend-client
grant_type
:refresh_token
refresh_token
: the refresh token you received when your retrieved an access token
Code Block |
---|
curl -L 'https://auth.requirementyogi.com/realms/ry-cloud/protocol/openid-connect/token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'client_id=backend-client' \
-d 'grant_type=refresh_token' \
-d 'refresh_token=YOUR_REFRESH_TOKEN' |
Use the REST APIs
Choose the endpoint you want to use.
Add a
X-Base-URL
header to your requests containing the base URL of your Atlassian site (e.g.https://example.atlassian.net/wiki
for a Confluence instance,https://example.atlassian.net
for a Jira instance).Add an
Authorization
header to your requests containing the access token prefixed withBearer
(e.g.Bearer YOUR_ACCESS_TOKEN
).
...