Skip to main content

Authentication (0.0.13)

Download OpenAPI specification:Download

Service for authenticating with Marco and providing endpoints for creating and revoking access tokens to the Marco platform.

jwks

Allows you to access the JWKS public key that is used to sign tokens Deprecated

The JSON Web Key Set (JWKS) is a set of keys containing the public keys used to verify any JSON Web Token (JWT) issued by the authorization server. The JWKS can be used to validate the authenticity of the token and check that it has not been tampered with.

Responses

Response samples

Content type
application/json
{
  • "keys": [
    ]
}

AccessToken

Delete AccessToken Deprecated

Delete the AccessToken under which the request is being authenticated. The deleted AccessToken and any other child AccessToken will not be able to authenticate again

Authorizations:
ApplicationToken

Responses

Create AccessToken Deprecated

Create a new AccessToken representing the authenticated identity

Authorizations:
ApplicationToken
query Parameters
clientId
required
string
Example: clientId=MRP-123456789AB

This query parameter is used to pass the Application ID (also known as Marpp) that the client wants to authenticate with.

Request Body schema: application/json
credentials
string

The string representation of one of the following authentication methods: IdentityCredentials, AccountTokenCredentials, or PrivateKeyCredentials.

object (Identity)

The identity information of a user.

object

Additional properties specific to the authentication method being used.

Responses

Request samples

Content type
application/json
{
  • "credentials": "string",
  • "identity": {
    },
  • "props": {
    }
}

Response samples

Content type
application/json
{
  • "expiresIn": 0,
  • "token": "string"
}

Create a new AccessToken child of an existing AccessToken Deprecated

Create a new AccessToken child of the AccessToken used for authenticate the request. If the parent AccessToken is deactivated all its children with be deactivated too.

Authorizations:
ApplicationToken
query Parameters
clientId
required
string
Example: clientId=MRP-123456789AB

This query parameter is used to pass the Application ID (also known as Marpp) that the client wants to authenticate with.

Responses

Response samples

Content type
application/json
{
  • "expiresIn": 0,
  • "token": "string"
}