Method Web.Auth.OAuth2.Base()->get_token_from_jwt()
- Method get_token_from_jwt
string
get_token_from_jwt(string
jwt
,string
token_endpoint
,string
|void
sub
,void
|function
(
,bool
string
:void
)async_cb
)- Description
Get an access_token from a JWT. http://jwt.io/
- Parameter
jwt
JSON string.
- Parameter
token_endpoint
URI to the request access_token endpoint.
- Parameter
sub
Email/id of the requesting user.
- Parameter
async_callback
If given the request will be made asynchronously. The signature is callback(bool, string). If successful the second argument will be the result encoded with encode_value(), which can be stored and later used to populate an instance via set_from_cookie().