@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:24.876Z") @Stability(value=Experimental) public interface OpenIdConnectConfig extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;
OpenIdConnectConfig openIdConnectConfig = OpenIdConnectConfig.builder()
.oidcProvider("oidcProvider")
// the properties below are optional
.clientId("clientId")
.tokenExpiryFromAuth(123)
.tokenExpiryFromIssue(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
OpenIdConnectConfig.Builder
A builder for
OpenIdConnectConfig |
static class |
OpenIdConnectConfig.Jsii$Proxy
An implementation for
OpenIdConnectConfig |
| Modifier and Type | Method and Description |
|---|---|
static OpenIdConnectConfig.Builder |
builder() |
default String |
getClientId()
(experimental) The client identifier of the Relying party at the OpenID identity provider.
|
String |
getOidcProvider()
(experimental) The issuer for the OIDC configuration.
|
default Number |
getTokenExpiryFromAuth()
(experimental) The number of milliseconds an OIDC token is valid after being authenticated by OIDC provider.
|
default Number |
getTokenExpiryFromIssue()
(experimental) The number of milliseconds an OIDC token is valid after being issued to a user.
|
@Stability(value=Experimental) @NotNull String getOidcProvider()
The issuer returned by discovery must exactly match the value of iss in the OIDC token.
@Stability(value=Experimental) @Nullable default String getClientId()
A regular expression can be specified so AppSync can validate against multiple client identifiers at a time.
Default: - * (All)
Example:
-"ABCD|CDEF";
@Stability(value=Experimental) @Nullable default Number getTokenExpiryFromAuth()
auth_time claim in OIDC token is required for this validation to work.
Default: - no validation
@Stability(value=Experimental) @Nullable default Number getTokenExpiryFromIssue()
This validation uses iat claim of OIDC token.
Default: - no validation
@Stability(value=Experimental) static OpenIdConnectConfig.Builder builder()
OpenIdConnectConfig.Builder of OpenIdConnectConfigCopyright © 2022. All rights reserved.