light-mode-image
Learn
API ReferenceAuthentication provider

Configure an Authentication Provider

Roles

adminissuermanaged-issuer

Analytics Events

USER_AUTHENTICATION_PROVIDER_CREATE_STARTUSER_AUTHENTICATION_PROVIDER_CREATE_SUCCESSUSER_AUTHENTICATION_PROVIDER_CREATE_FAIL
POST/v1/users/authentication-providers

Configures an Authentication Provider on the tenant.

An authentication or identity provider (IdP) is a platform that is typically used to store and manage user accounts on behalf of an organization or a service provider. MATTR VII uses the authentication provider to authenticate end users before issuing them credentials.

The /.well-known/openid-configuration endpoint of the Authentication Provider must contain values for the authorization_endpoint, token_endpoint and scopes_supported.

Analytic events

  • USER_AUTHENTICATION_PROVIDER_CREATE_START
  • USER_AUTHENTICATION_PROVIDER_CREATE_SUCCESS
  • USER_AUTHENTICATION_PROVIDER_CREATE_FAIL

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

The Authentication Provider payload

Response Body

application/json

application/json

curl -X POST "https://example.vii.au01.mattr.global/v1/users/authentication-providers" \  -H "Content-Type: application/json" \  -d '{    "clientId": "vJ0SCKchr4XjC0xHNE8DkH6Pmlg2lkCN"  }'
{
  "id": "983c0a86-204f-4431-9371-f5a22e506599",
  "redirectUrl": "https://tenant.vii.mattr.global/v1/oauth/authentication/callback",
  "url": "http://example.com",
  "scope": [
    "openid",
    "profile",
    "email",
    "address",
    "phone"
  ],
  "clientId": "vJ0SCKchr4XjC0xHNE8DkH6Pmlg2lkCN",
  "clientSecret": "***********************************************************6-OjH",
  "tokenEndpointAuthMethod": "client_secret_post",
  "staticRequestParameters": {
    "prompt": "login",
    "max_age": 10000
  },
  "forwardedRequestParameters": [
    "login_hint"
  ],
  "claimsToPersist": [
    "userId"
  ]
}
{
  "code": "string",
  "message": "string",
  "details": [
    {
      "value": "string",
      "msg": "Invalid value",
      "param": "id",
      "location": "body"
    }
  ]
}

How would you rate this page?