OpenId Server Access - HostMyCalls/APIAccessCodeSamples GitHub Wiki

OpenId Server Access

These are the steps required to authenticate through our OpenId Server:

  1. Make a request to get the discovery document.
  2. Send the following data to get an openId token:
  • your clientId
  • your secret
  • the name of the api you want to access (scope)
  • the endpoint retued in the discovery document in step 1

If the data provided is valid, you will get a token back with the duration specifying the validity period. When accessing our APIs this token (JWT) should be included in the Authorization header using the Bearer schema. The content of the header should look like the following:

Authorization: Bearer <JWT>

If the token is absent or invalid you will get a 401 unauthorized response from the APIs. You can find detailed code accessing the OpenId Server and the APIs in the code samples section.

⚠️ **GitHub.com Fallback** ⚠️