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.
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
- 200
{- "keys": [
- {
- "e": "AQAB",
- "kty": "RSA",
- "n": "0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw"
}
]
}
Create AccessToken Deprecated
Create a new AccessToken representing the authenticated identity
Authorizations:
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: |
object (Identity) The identity information of a user. | |
object Additional properties specific to the authentication method being used. |
Responses
Request samples
- Payload
{- "credentials": "string",
- "identity": {
- "identifier": "user@example.com"
}, - "props": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
{- "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:
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
- 201
{- "expiresIn": 0,
- "token": "string"
}