Create and manage OAuth 2.0 Tokens
Last updated 1 month ago
Register for oauth
""
realm
GET /api/Session/OAuthRegister HTTP/1.1 Host: localhost:3003 Accept: */*
Redirects to the authorization provider
text
Exchange a request for a token
POST /api/Session/OAuthGetToken HTTP/1.1 Host: localhost:3003 Content-Type: application/json Accept: */* Content-Length: 99 { "grant_type": "text", "code": "text", "client_id": "text", "client_secret": "text", "redirect_uri": "text" }
Token exchange response
{ "token_type": "text", "access_token": "text", "refresh_token": "text", "expires_in": "2025-04-19T15:27:40.624Z", "refresh_token_expires_in": "2025-04-19T15:27:40.624Z", "default_tenant_id": "text" }
Refresh a token
POST /api/Session/OAuthRefreshToken HTTP/1.1 Host: localhost:3003 Content-Type: application/json Accept: */* Content-Length: 101 { "grant_type": "text", "refresh_token": "text", "client_id": "text", "client_secret": "text", "scope": "text" }
Token refresh response
Revoke a token
POST /api/Session/OAuthTokenRevoke HTTP/1.1 Host: localhost:3003 Content-Type: application/json Accept: */* Content-Length: 43 { "client_id": "text", "refresh_token": "text" }