OAuth2 plugin
QorusOAuth2RestApi::OAuth2RestClass Class Reference
Inheritance diagram for QorusOAuth2RestApi::OAuth2RestClass:

Public Member Functions

string name ()
 
hash< auto > get (hash< auto > cx, __7_ hash< auto > ah)
 
hash< auto > post (hash< auto > cx, __7_ hash< auto > ah)
 

Public Attributes

const ACL_HDR
 
const AcMethodsHdr
 
const AcHdr = ACL_HDR + AcMethodsHdr
 

Detailed Description

/oauth2/v1/public/token

Member Function Documentation

◆ get()

hash<auto> QorusOAuth2RestApi::OAuth2RestClass::get ( hash< auto >  cx,
__7_ hash< auto >  ah 
)
inline

GET

Description

This URI provides methdod for obtaining access token.

Arguments
This API takes the following arguments. Not all parameters must be included in the request. Usage of the parameters depends on the grant flew used. See Get access token.
  • response_type
  • redirect_uri
  • code
  • client_id
  • scope
  • state
  • username
  • password
  • refresh_token
Return Value
Returns requested access token.
  • access_token
  • token_type
  • expires_in
  • state

More info Get access token

◆ post()

hash<auto> QorusOAuth2RestApi::OAuth2RestClass::post ( hash< auto >  cx,
__7_ hash< auto >  ah 
)
inline

POST

Description

This URI provides methdod for obtaining access token.

Arguments
This API takes the following arguments. Not all parameters must be included in the request. Usage of the parameters depends on the grant flew used. See Get access token.
  • grant_type
  • redirect_uri
  • code
  • client_id
  • scope
  • state
  • username
  • password
  • refresh_token
Return Value
Returns requested access token.
  • access_token
  • token_type
  • expires_in
  • state

More info Get access token

Member Data Documentation

◆ ACL_HDR

const QorusOAuth2RestApi::OAuth2RestClass::ACL_HDR
Initial value:
= {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "Content-Type, content-type, qorus-token"
}

◆ AcMethodsHdr

const QorusOAuth2RestApi::OAuth2RestClass::AcMethodsHdr
Initial value:
= {
"Access-Control-Allow-Methods": "POST, OPTIONS"
}

The documentation for this class was generated from the following file: