Skip to main content

Identity Provider - How to Register Client

This article descibe how you can create a new Client (service) secrets to allow communicate your backend service with other backend services.

Key endpoints

  • [POST] https://[HostName]/api/asol/idp/clients
    • Create new client (services)

Create client via direct call API

Use Postman or another tools with ability calls POST HTTP request.

  1. Request a call to create a client {stage}.avaplace.com/api/asol/idp/clients with the correct body for your service. An example is below.
  2. From the response, you must copy ClientId and ClientSecret to the AppSettings.json / UserSecret file to allow your back-end service to communicate with other AVA services.

Create client request example body

For example body to create POST.

{
"clientId": "ASOLEU-AuthorBook",
"clientName": "AuthorBookExample",
"description": "Author book example service",
"allowedScopes": [
"apiim"
],
"grants": "2" // 2 = client credentials for non interactive authentication with clientId and clientSecret
}

Success response contains clientId and ClientSecret

{
"id": "ASOLEU-AuthorBook",
"clientId": "ASOLEU-AuthorBook",
"clientSecret": "<<Client secret value>>",
"clientName": "AuthorBookExample",
"description": "Author book example service",
"allowedScopes": [
"openid",
"profile",
"email",
"apiim"
],
"grants": "ClientCredentials"
}