Hello!
I am having trouble testing OAuth 2.0 token retrieval.
In the documentation for retrieving an access token, an Identity Service URL is required. Earlier it states that you do not need to deploy an identity service if you are using Creatio in the cloud, but I haven't had any luck finding what it should be in this case in documentation, our account, or in other community questions.
What is the Identity Service URL for Creatio accounts in the cloud?
Like
Posted a duplicate by refreshing the page - tried deleting this so hopefully it will be gone soon. Feel free to ignore.
Greetings!
To work with OAuth 2.0, follow these steps:
1. Open the System Designer via settings.
2. Navigate to the Import and Integration block → OAuth 2.0 Integrated Applications.
3. Create a new record.
4. After that, copy the following credentials:
- Client ID
- Client Secret
5. Use Postman or any other platform convenient for working with APIs.
6. Send a POST request to get tokens:
POST https://website-is.creatio.com/connect/token
7. In the response, you will receive:
{
"access_token": "<TOKEN>",
"expires_in": 3600,
"token_type": "Bearer",
"scope": "<SCOPE>"
}
You will only need the access_token.
8. Use the token to make the following request, for example:
GET https://website.creatio.com/0/odata/Contact
Authorization: Bearer <TOKEN>
You will successfully retrieve the data.
For more detailed information about working with OAuth, I recommend referring to the documentation:
https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/integrations-and-api/authentication/oauth-2-0-authorization/identity-service-overview
Best regards,
Orkhan