Start linking a sign-in provider
const url = 'http://localhost:8080/api/v1/me/identities/example/authorize';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"redirectUri":"https://example.com","codeChallenge":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/api/v1/me/identities/example/authorize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "redirectUri": "https://example.com", "codeChallenge": "example" }'Works like authorizeSignIn, for the signed-in user. The link is made when the code is traded with exchangeSignInCode.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Where to send the browser after sign-in. Must start with the
server’s public URL or a prefix in CHEK_OIDC_REDIRECTS
(chek:// by default).
The base64url SHA-256 of a random PKCE code verifier (RFC 7636 S256), without padding.
Example generated
{ "redirectUri": "https://example.com", "codeChallenge": "example"}Responses
Section titled “Responses”The page to open.
object
The provider’s sign-in page.
Example generated
{ "url": "https://example.com"}The request was malformed.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The request has no valid session token.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The signed-in user may not do this. demo_account when the user is a
shared demo account, named in CHEK_DEMO_USERS, which can’t change
its password, sessions, sign-in providers, extensions or annotations.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The resource does not exist.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The sign-in provider couldn’t be reached (provider_unavailable).
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}Too many sign-ins are in progress at once (too_many_sign_ins); try again in a few minutes.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}