Initiate authentication by OpenID Connect
POST/auth/user/oidc/start
Base URL: https://api.tinkermode.com
For a user to sign in via OpenID Connect, the frontend app should use this endpoint to retrieve the URL to redirect the user to, so that they can authorize an Identity Provider to share their information with MODE.
Authentication
This endpoint does not require authentication.
Request body
Content type: application/x-www-form-urlencoded
No schema properties documented.
Request example
methodId=google&projectId=1260&redirectUrl=https%3A%2F%2Fexample.com%2Fsign_in&state=SOME_OPAQUE_STRINGResponses
200 The authorization URL has been returned.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
authUrl | string | No |
Response example
{
"authUrl": "https://example.com/auth?state=XXXXX&clientId=YYYYYY"
}401 Authorization is required to access this resource.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
403 Request failed because of invalid data or denied permission.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
429 Request failed because of rate limit.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
500 An unexpected error has occurred.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
503 The service is temporarily unavailable.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |