OAuthResponseType interface

The interface representing OIDC provider's response object for OAuth authorization flow. One of the following settings is required:

  • Setcode totrue for the code flow.
  • SetidToken totrue for the ID token flow.

Signature:

exportinterfaceOAuthResponseType

Properties

PropertyTypeDescription
codebooleanWhether authorization code is returned from IdP's authorization endpoint.
idTokenbooleanWhether ID token is returned from IdP's authorization endpoint.

OAuthResponseType.code

Whether authorization code is returned from IdP's authorization endpoint.

Signature:

code?:boolean;

OAuthResponseType.idToken

Whether ID token is returned from IdP's authorization endpoint.

Signature:

idToken?:boolean;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-29 UTC.