import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Data source to retrieve a specific Auth0 application client by `clientId` or `name`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // An Auth0 Client loaded using its name. * const some_client_by_name = auth0.getClient({ * name: "Name of my Application", * }); * // An Auth0 Client loaded using its ID. * const some_client_by_id = auth0.getClient({ * clientId: "abcdefghkijklmnopqrstuvwxyz0123456789", * }); * ``` */ export declare function getClient(args?: GetClientArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getClient. */ export interface GetClientArgs { /** * The ID of the client. If not provided, `name` must be set. */ clientId?: string; /** * Set this to avoid persisting the sensitive `clientSecret` value into state, in which case `clientSecret` will contain an empty string. */ hideClientSecret?: boolean; /** * The name of the client. If not provided, `clientId` must be set. */ name?: string; } /** * A collection of values returned by getClient. */ export interface GetClientResult { /** * Addons enabled for this client and their associated configurations. */ readonly addons: outputs.GetClientAddon[]; /** * The ID of the agent (`auth0.Agent`) this client is linked to (EA Only). Reference it as `auth0_agent..id` so that the client is unlinked before the agent is deleted. Removing the attribute unlinks the client, including a link made outside Terraform. Requires the `update:clients` and `update:agents` scopes. */ readonly agentId: string; /** * List of applications ID's that will be allowed to make delegation request. By default, all applications will be allowed. */ readonly allowedClients: string[]; /** * URLs that Auth0 may redirect to after logout. */ readonly allowedLogoutUrls: string[]; /** * URLs that represent valid origins for cross-origin resource sharing. By default, all your callback URLs will be allowed. */ readonly allowedOrigins: string[]; /** * Anonymous Sessions settings for the client. Removing this block clears the setting on the API. (EA only) */ readonly anonymousSessions: outputs.GetClientAnonymousSession[]; /** * Type of application the client represents. Possible values are: `native`, `spa`, `regularWeb`, `nonInteractive`, `resourceServer`,`ssoIntegration`. Specific SSO integrations types accepted as well are: `rms`, `box`, `cloudbees`, `concur`, `dropbox`, `mscrm`, `echosign`, `egnyte`, `newrelic`, `office365`, `salesforce`, `sentry`, `sharepoint`, `slack`, `springcm`, `zendesk`, `zoom`, `expressConfiguration` */ readonly appType: string; /** * List of notification channels enabled for CIBA (Client-Initiated Backchannel Authentication) requests initiated by this client. Valid values are `guardian-push`, `email`, and `my-account`.The order is significant as this is the order in which notification channels will be evaluated. */ readonly asyncApprovalNotificationChannels: string[]; /** * Configuration for B2B Integration (Enterprise Connect) clients. Contents can be updated in place, but adding or removing whole block forces client recreation. (EA only) */ readonly b2bIntegrationConfigurations: outputs.GetClientB2bIntegrationConfiguration[]; /** * URLs that Auth0 may call back to after a user authenticates for the client. Make sure to specify the protocol (https://) otherwise the callback may fail in some cases. With the exception of custom URI schemes for native clients, all callbacks should use protocol https://. */ readonly callbacks: string[]; /** * List of audiences/realms for SAML protocol. Used by the wsfed addon. */ readonly clientAliases: string[]; /** * Defines client authentication methods. */ readonly clientAuthenticationMethods: outputs.GetClientClientAuthenticationMethod[]; /** * The ID of the client. If not provided, `name` must be set. */ readonly clientId?: string; /** * Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: `:,-+=_*?"/\()<>@ [Tab] [Space]`. */ readonly clientMetadata: { [key: string]: string; }; /** * Secret for the client. Keep this private. To access this attribute you need to add the `read:client_keys` scope to the Terraform client. Otherwise, the attribute will contain an empty string. Set `hideClientSecret` to `true` to avoid persisting this value into Terraform state. */ readonly clientSecret: string; /** * Defines the compliance level for this client, which may restrict it's capabilities. Can be one of `none`, `fapi1AdvPkjPar`, `fapi1AdvMtlsPar`. */ readonly complianceLevel: string; /** * Whether this client can be used to make cross-origin authentication requests (`true`) or it is not allowed to make such requests (`false`). */ readonly crossOriginAuth: boolean; /** * URL of the location in your site where the cross-origin verification takes place for the cross-origin auth flow when performing authentication in your own domain instead of Auth0 Universal Login page. */ readonly crossOriginLoc: string; /** * The content (HTML, CSS, JS) of the custom login page. */ readonly customLoginPage: string; /** * Indicates whether a custom login page is to be used. */ readonly customLoginPageOn: boolean; /** * Configure and associate an organization with the Client */ readonly defaultOrganizations: outputs.GetClientDefaultOrganization[]; /** * Description of the purpose of the client. */ readonly description: string; /** * Encryption used for WS-Fed responses with this client. */ readonly encryptionKey: { [key: string]: string; }; /** * Express Configuration settings for the client. Used with OIN Express Configuration. */ readonly expressConfigurations: outputs.GetClientExpressConfiguration[]; /** * The URL of the Client ID Metadata Document. Only present for CIMD-registered clients. */ readonly externalClientId: string; /** * Who created the external metadata client: `admin` (via Management API), `client` (self-registered), or `unknown`. */ readonly externalMetadataCreatedBy: string; /** * Whether Auth0 can resolve the Client ID Metadata Document from its cache or the document URL: `available` or `unavailable` (EA only). Only present for CIMD-registered clients. */ readonly externalMetadataStatus: string; /** * Type of external metadata. Value is `cimd` for CIMD-registered clients. */ readonly externalMetadataType: string; /** * Federated Credential Management (FedCM) configuration. (EA only) */ readonly fedcmLogins: outputs.GetClientFedcmLogin[]; /** * HTML form template to be used for WS-Federation. */ readonly formTemplate: string; /** * Types of grants that this client is authorized to use. */ readonly grantTypes: string[]; /** * Set this to avoid persisting the sensitive `clientSecret` value into state, in which case `clientSecret` will contain an empty string. */ readonly hideClientSecret?: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Configures the client to participate in the Identity Assertion Authorization Grant (ID-JAG) exchange, used for Cross App Access (XAA). (EA only) */ readonly identityAssertionAuthorizationGrants: outputs.GetClientIdentityAssertionAuthorizationGrant[]; /** * Initiate login URI. Must be HTTPS or an empty string. May contain Auth0 dynamic login URI placeholders such as `{organization.metadata.public_login_host}` or `{custom_domain.metadata.public_app_host}`, which are resolved by Auth0 at request time. See https://auth0.com/docs/get-started/applications/application-settings. */ readonly initiateLoginUri: string; /** * Indicates whether this client is a first-party client. */ readonly isFirstParty: boolean; /** * Indicates whether the token endpoint IP header is trusted. Requires the authentication method to be set to `clientSecretPost` or `clientSecretBasic`. Setting this property when creating the resource, will default the authentication method to `clientSecretPost`. To change the authentication method to `clientSecretBasic` use the `auth0.ClientCredentials` resource. */ readonly isTokenEndpointIpHeaderTrusted: boolean; /** * URL for the JSON Web Key Set (JWKS) containing the public keys used for `privateKeyJwt` authentication. Only present for CIMD clients using `privateKeyJwt` authentication. */ readonly jwksUri: string; /** * Configuration settings for the JWTs issued for this client. */ readonly jwtConfigurations: outputs.GetClientJwtConfiguration[]; /** * URL of the logo for the client. Recommended size is 150px x 150px. If none is set, the default badge for the application type will be shown. */ readonly logoUri: string; /** * Additional configuration for native mobile apps. */ readonly mobiles: outputs.GetClientMobile[]; /** * Configuration for self-service organization features, controlling how organizations are created and managed for this client. */ readonly myOrganizationConfigurations: outputs.GetClientMyOrganizationConfiguration[]; /** * The name of the client. If not provided, `clientId` must be set. */ readonly name?: string; /** * Configuration settings to toggle native social login for mobile native applications. Once this is set it must stay set, with both resources set to `false` in order to change the `appType`. */ readonly nativeSocialLogins: outputs.GetClientNativeSocialLogin[]; /** * Set of URLs that are valid to call back from Auth0 for OIDC backchannel logout. Currently only one URL is allowed. */ readonly oidcBackchannelLogoutUrls: string[]; /** * Indicates whether this client will conform to strict OIDC specifications. */ readonly oidcConformant: boolean; /** * Configure OIDC logout for the Client */ readonly oidcLogouts: outputs.GetClientOidcLogout[]; /** * Methods for discovering organizations during the pre*login*prompt. Can include `email` (allows users to find their organization by entering their email address) and/or `organizationName` (requires users to enter the organization name directly). These methods can be combined. Setting this property requires that `organizationRequireBehavior` is set to `preLoginPrompt`. For clients that set `b2bIntegrationConfiguration`, server-side defaults the values when this is not specified; Set to `[]` (empty array) to clear the values. */ readonly organizationDiscoveryMethods: string[]; /** * Defines how to proceed during an authentication transaction when `organizationUsage = "require"`. Can be `noPrompt` (default), `preLoginPrompt` or `postLoginPrompt`. */ readonly organizationRequireBehavior: string; /** * Defines how to proceed during an authentication transaction with regards to an organization. Can be `deny` (default), `allow` or `require`. */ readonly organizationUsage: string; /** * Controls whether Auth0 redirects users to the application's callback URL on authentication errors or in email verification flows.Allowed values: `allowAlways` or `openRedirectProtection`. */ readonly redirectionPolicy: string; /** * Configuration settings for the refresh tokens issued for this client. */ readonly refreshTokens: outputs.GetClientRefreshToken[]; /** * Makes the use of Proof-of-Possession mandatory for this client. */ readonly requireProofOfPossession: boolean; /** * Makes the use of Pushed Authorization Requests mandatory for this client. This feature currently needs to be enabled on the tenant in order to make use of it. */ readonly requirePushedAuthorizationRequests: boolean; /** * The identifier of a resource server that client is associated withThis property can be sent only when app*type=resource*server.This property can not be changed, once the client is created. */ readonly resourceServerIdentifier: string; readonly sessionTransfers: outputs.GetClientSessionTransfer[]; /** * Configuration for JWT-secured Authorization Requests(JAR). */ readonly signedRequestObjects: outputs.GetClientSignedRequestObject[]; /** * List containing a map of the public cert of the signing key and the public cert of the signing key in PKCS7. */ readonly signingKeys: { [key: string]: string; }[]; /** * Indicates whether the confirmation prompt appears when using non-verifiable callback URIs. Set to true to skip the prompt, false to show it, or null to unset. Accepts (true/false/null) or ("true"/"false"/"null") */ readonly skipNonVerifiableCallbackUriConfirmationPrompt: string; /** * Applies only to SSO clients and determines whether Auth0 will handle Single Sign-On (true) or whether the identity provider will (false). */ readonly sso: boolean; /** * Indicates whether or not SSO is disabled. */ readonly ssoDisabled: boolean; /** * Security mode for third-party clients. Allowed values: `strict` or `permissive`. */ readonly thirdPartySecurityMode: string; /** * The authentication method for the token endpoint. Results include `none` (public client without a client secret), `clientSecretPost` (client uses HTTP POST parameters), `clientSecretBasic` (client uses HTTP Basic), Managing a client's authentication method can be done via the `auth0.ClientCredentials` resource. */ readonly tokenEndpointAuthMethod: string; /** * Allows configuration for token exchange */ readonly tokenExchanges: outputs.GetClientTokenExchange[]; /** * The token quota configuration. */ readonly tokenQuotas: outputs.GetClientTokenQuota[]; /** * URLs that represent valid web origins for use with web message response mode. */ readonly webOrigins: string[]; } /** * Data source to retrieve a specific Auth0 application client by `clientId` or `name`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // An Auth0 Client loaded using its name. * const some_client_by_name = auth0.getClient({ * name: "Name of my Application", * }); * // An Auth0 Client loaded using its ID. * const some_client_by_id = auth0.getClient({ * clientId: "abcdefghkijklmnopqrstuvwxyz0123456789", * }); * ``` */ export declare function getClientOutput(args?: GetClientOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getClient. */ export interface GetClientOutputArgs { /** * The ID of the client. If not provided, `name` must be set. */ clientId?: pulumi.Input; /** * Set this to avoid persisting the sensitive `clientSecret` value into state, in which case `clientSecret` will contain an empty string. */ hideClientSecret?: pulumi.Input; /** * The name of the client. If not provided, `clientId` must be set. */ name?: pulumi.Input; } //# sourceMappingURL=getClient.d.ts.map