@dataroadinc/setup-auth
Version:
CLI tool and programmatic API for automated OAuth setup across cloud platforms
25 lines (24 loc) • 800 B
TypeScript
import { protos } from "@google-cloud/iap";
import { GcpAuthenticatedIdentity } from "./creds/identity.js";
type IapBrand = protos.google.cloud.iap.v1.IBrand;
export declare class GcpOAuthBrandClient {
private projectId;
private identity;
private iapClient;
private initialized;
constructor(projectId: string, identity: GcpAuthenticatedIdentity);
initialize(): Promise<void>;
private formatProjectName;
private formatBrandName;
private findExistingBrand;
private createBrand;
createOrGetBrand(applicationTitle: string): Promise<string>;
getBrandByName(name: string): Promise<IapBrand | null>;
}
export declare function gcpCheckOauthBrandName(options: {
oauthBrandName: string;
}): Promise<{
success: boolean;
error?: string;
}>;
export {};