export type OAuthGrantType = PasswordGrant | ClientCredentialsGrant; /** * ClientCredentialsGrant describes params needed for OAuth. */ export interface ClientCredentialsGrant { /** * OAuth scope parameter. Default to "trapi" */ scope?: string; /** * Takes control over any existing sign-on sessions. Default to false. */ takeSignOnControl?: boolean; /** * OAuth client id */ clientId: string; /** * OAuth client secret */ clientSecret: string; } /** * PasswordGrant describes params needed for OAuth. */ export interface PasswordGrant { /** * OAuth scope parameter. Default to "trapi" */ scope?: string; /** * Takes control over any existing sign-on sessions. Default to false. */ takeSignOnControl?: boolean; /** * OAuth username */ userName: string; /** * OAuth password */ password: string; }