All our web services are authenticated using OAuth2 Bearer token authentication. To authenticate with one of our services you will have to create a bearer token through our identity server.
POST to our token endpoint
Set grant_type=client_credentials
and scope=externalapi
in the post body
Set Content-Type=application/x-www-form-urlencoded
Set Authorization header
Header format is Basic Base64(Utf8(clientId:secret))
Example: The header for clientId=democlient
and secret=demosecret
would become ZGVtb2NsaWVudDpkZW1vc2VjcmV0
So the Authorize header for the Identity server should be:Basic ZGVtb2NsaWVudDpkZW1vc2VjcmV0
Example return value:
{ "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciNlcyIsImV4cCI6MTQ2MzA", "expires_in": 3600, "token_type": "Bearer" } |
When calling one of our web services set the Authorize header to Bearer [access_token]
Example: Bearer eyJ0eXAiOiJKV1QiLCJhbGciNlcyIsImV4cCI6MTQ2MzA
Use the following connection information when connecting to our environments.
Token endpoint: https://authstaging.pei.is/core/connect/token
clientId: democlient
secret: demosecret
Token endpoint: https://auth.pei.is/core/connect/token
Contact customer support for access to the production environment |