Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

OAuthSettings

import type { OAuthSettings } from "https://googleapis.deno.dev/v1/iap:v1.ts";

Configuration for OAuth login&consent flow behavior as well as for OAuth Credentials.

interface OAuthSettings {
clientId?: string;
clientSecret?: string;
readonly clientSecretSha256?: string;
loginHint?: string;
programmaticClients?: string[];
}

§Properties

§
clientId?: string
[src]

Optional. OAuth 2.0 client ID used in the OAuth flow. This allows for client sharing. The risks of client sharing are outlined here: https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.

§
clientSecret?: string
[src]

Optional. Input only. OAuth secret paired with client ID.

§
readonly clientSecretSha256?: string
[src]

Output only. OAuth secret SHA256 paired with client ID.

§
loginHint?: string
[src]

Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by skipping Google's login screen. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that the id token's hd claim matches this value since access behavior is managed by IAM policies.

§
programmaticClients?: string[]
[src]

Optional. List of client ids allowed to use IAP programmatically.