Authentication
Overview of authentication API methods
Last updated
Overview of authentication API methods
Last updated
POST
https://api.codemash.io/:version/auth/credentials
Authenticate a user using an email password pair. Also supports GET method with body parameters in a query string.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
POST
https://api.codemash.io/{version}/auth/aad
Authenticate a user using Microsoft. Also supports GET method with body parameters in a query string.
POST
https://api.codemash.io/auth/logout
Logout a user using any of the authentication providers.
POST
https://api.codemash.io/:version/auth
Check if the user is authenticated (if authorization token is valid). Also, supports GET method.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
version
string
A version of the API endpoint.
x-cm-projectid
string
Your project's ID. Can be passed as a query parameter.
password
string
User's login password.
userName
string
User's login e-mail address.
version
string
A version of the API endpoint.
x-cm-projectid
string
Your project's ID. Can be passed as a query parameter.
mode
string
Mode to use for authentication. If not passed, will use the default.
string
version
string
A version of the API endpoint.
Authorization
string
Secret API key which belongs to your project or user. Not required if using cookies with a session ID.
x-cm-projectid
string
Your project's ID. Can be passed as a query parameter.