Method Web.Auth.OAuth2.Base()->get_token_from_jwt()
- Method get_token_from_jwt
stringget_token_from_jwt(stringjwt,stringtoken_endpoint,string|voidsub,void|function(,boolstring: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().