OAuth2

Generate an access token and return it as a cookie, given an authorization code, resource owner

post/oauth2/cookie

Request

  • Base URL: https://api.danalock.com
  • URL: https://api.danalock.com/oauth2/cookie
  • Auth: none declared

Headers

X-Assume-Userstring

Assume the identity of the user in another domain

Request body

grant_typestring

The grant you are requesting.

codestring

Required for the authorization_code grant.

client_idstring

Your OAuth2 client identifier issued by Danalock.

client_secretstring

Your OAuth2 client secret issued by Danalock.

redirect_uristring

Redirect URL, where your user is sent after granting access to you. If

usernamestring

Username for the password grant.

passwordstring

Password for the password grant.

totpstring

Time-based one-time password if two factor authentication is required for login.

refresh_tokenstring

Refresh token for the refresh_token grant.

scopestring

Requested scopes.

Response

The used token was successfully revoked.

Empty required

Changes

No recorded changes to this operation across all 1 revision of this API.