InvocationContext Enum

The context in which the connected app is invoked, such as the protocol flow used and the token type issued, if any. Developers can use the context information to write code that is unique to the type of invocation.

The following are the values of the Auth.InvocationContext enum.

ValueDescription
ASSET_TOKENReserved for future use.
OAUTH1Context used when authentication is through ​an OAuth 1.0A flow.
OAUTH2_JWT_BEARER_TOKENContext used when authentication is through a JSON-based Web Token (JWT) bearer token flow.
OAUTH2_SAML_ASSERTIONContext used when authentication is through an OAuth 2.0 SAML assertion flow.
OAUTH2_SAML_BEARER_ASSERTIONContext used when authentication is through an OAuth 2.0 SAML bearer assertion flow.
OAUTH2_USERNAME_PASSWORDContext used when authentication is through an OAuth 2.0 username-password flow.
OAUTH2_USER_AGENT_ID_TOKENContext used when issuing an ID token through an OAuth 2.0 user-agent flow.
OAUTH2_USER_AGENT_TOKENContext used when authentication is through an OAuth 2.0 user agent flow.
OAUTH2_WEB_SERVERContext used when authentication is through a web server authentication flow.
OPENIDCONNECTContext used when authentication is through an OpenID Connect authentication flow.
REFRESH_TOKENContext used when renewing tokens issued by a web server or user-agent flow.
SAML_ASSERTIONContext used when authentication is through a SAML assertion flow.
UNKNOWNContext is unknown.
USERID_ENDPOINTContext used when issuing an access token through a UserInfo endpoint.

See Also