Skip to content

Third-Party Authentication

This section contains the API operations for the OAuth 2.0 Authorization Code Flow.

Start an authorization code flow

Request

Starts OAuth2 Authorization Code Flow. The resource owner will be authenticated and be presented with the third-party application access request.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Query
client_idstringrequired

Zephr Site Oauth2 Client ID.

response_typestringrequired

Must be set to code.

redirect_uristringrequired

Client's redirection endpoint. Must be an absolute URI.

scopestringrequired

The scope of the access request.

statestringrequired

An opaque value used by the client to maintain state between the request and callback.

cURL
curl -i -X GET \
  'https://demo-site/zephr/oauth2?client_id=string&response_type=string&redirect_uri=string&scope=string&state=string' \
  -b blaize_session=YOUR_API_KEY_HERE

Responses

Found

Headers
Locationstring