auth v2

Sign in with a social provider.

Changed on

Sign in with a social provider

post/sign-in/social

Request

  • Base URL: https://api.openfort.io/iam/v2/auth
  • URL: https://api.openfort.io/iam/v2/auth/sign-in/social
  • Auth: HTTP bearer and API key in header x-project-key

Request body

callbackURLstring nullable

Callback URL to redirect to after the user has signed in

newUserCallbackURLstring nullable
errorCallbackURLstring nullable

Callback URL to redirect to if an error happens

providerstring required
disableRedirectboolean nullable

Disable automatic redirection to the provider. Useful for handling the redirection yourself

scopesstring[] nullable

Array of scopes to request from the provider. This will override the default scopes passed.

requestSignUpboolean nullable

Explicitly request sign-up. Useful when disableImplicitSignUp is true for this provider

loginHintstring nullable

The login hint to use for the authorization code request

Response

Success - Returns either session details or redirect URL

redirectfalse required
tokenstring required

Session token

urlstring nullable

Changes

    • info

      the endpoint scheme security auth_token AND projectKey was added to the API

    • info

      the endpoint scheme security bearerAuth was removed from the API

    • info

      added the optional property / to the response with the status