| java.lang.Object | ||
| ↳ | com.google.firebase.auth.ProviderConfig.AbstractCreateRequest<T extends com.google.firebase.auth.ProviderConfig.AbstractCreateRequest<T>> | |
| ↳ | com.google.firebase.auth.OidcProviderConfig.CreateRequest | |
A specification class for creating a new OIDC Auth provider.
Set the initial attributes of the new provider by calling various setter methods available in this class.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
CreateRequest()
Creates a new
OidcProviderConfig.CreateRequest, which can be used to create a new OIDC Auth provider. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| OidcProviderConfig.CreateRequest |
setClientId(String clientId)
Sets the client ID for the new provider.
| ||||||||||
| OidcProviderConfig.CreateRequest |
setClientSecret(String clientSecret)
Sets the client secret for the new provider.
| ||||||||||
| OidcProviderConfig.CreateRequest |
setCodeResponseType(boolean enabled)
Sets whether to enable the code response flow for the new provider.
| ||||||||||
| OidcProviderConfig.CreateRequest |
setIdTokenResponseType(boolean enabled)
Sets whether to enable the ID token response flow for the new provider.
| ||||||||||
| OidcProviderConfig.CreateRequest |
setIssuer(String issuer)
Sets the issuer for the new provider.
| ||||||||||
| OidcProviderConfig.CreateRequest |
setProviderId(String providerId)
Sets the ID for the new provider.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.firebase.auth.ProviderConfig.AbstractCreateRequest
| |||||||||||
From class
java.lang.Object
| |||||||||||
Creates a new OidcProviderConfig.CreateRequest, which can be used to create a new OIDC Auth provider.
The returned object should be passed to
createOidcProviderConfig(CreateRequest) to save the config.
Sets the client ID for the new provider.
| clientId | A non-null, non-empty client ID string. |
|---|
| IllegalArgumentException | If the client ID is null or empty. |
|---|
Sets the client secret for the new provider. This is required for the code flow.
| clientSecret | A non-null, non-empty client secret string. |
|---|
| IllegalArgumentException | If the client secret is null or empty. |
|---|
Sets whether to enable the code response flow for the new provider. By default, this is not enabled if no response type is specified.
A client secret must be set for this response type.
Having both the code and ID token response flows is currently not supported.
| enabled | A boolean signifying whether the code response type is supported. |
|---|
Sets whether to enable the ID token response flow for the new provider. By default, this is enabled if no response type is specified.
Having both the code and ID token response flows is currently not supported.
| enabled | A boolean signifying whether the ID token response type is supported. |
|---|
Sets the issuer for the new provider.
| issuer | A non-null, non-empty issuer URL string. |
|---|
| IllegalArgumentException | If the issuer URL is null or empty, or if the format is invalid. |
|---|
Sets the ID for the new provider.
| providerId | A non-null, non-empty provider ID string. |
|---|
| IllegalArgumentException | If the provider ID is null or empty, or is not prefixed with 'oidc.'. |
|---|