AuthenticateOidcOptions Struct
Options for ListenerAction.authenciateOidc().
Example
declare const listener: elbv2.ApplicationListener;
declare const myTargetGroup: elbv2.ApplicationTargetGroup;
listener.addAction('DefaultAction', {
action: elbv2.ListenerAction.authenticateOidc({
authorizationEndpoint: 'https://example.com/openid',
// Other OIDC properties here
clientId: '...',
clientSecret: SecretValue.secretsManager('...'),
issuer: '...',
tokenEndpoint: '...',
userInfoEndpoint: '...',
// Next
next: elbv2.ListenerAction.forward([myTargetGroup]),
}),
});
Properties
allowHttpsOutboundbooleanallow_https_outboundboolallowHttpsOutboundBooleanAllowHttpsOutboundboolAllowHttpsOutbound*bool= true#Set this property to false if the IP address used for the IdP endpoint is identifiable and you want to control outbound traffic. Then allow HTTPS outbound traffic to the IdP's IP address using the listener's connections property.
authenticationRequestExtraParams{ [key: string]: string }authentication_request_extra_paramstyping.Mapping[str, str]authenticationRequestExtraParamsMap<String, String>AuthenticationRequestExtraParamsIDictionary<string, string>AuthenticationRequestExtraParams*map[string]*string= No extra parameters#authorizationEndpointstringauthorization_endpointstrauthorizationEndpointStringAuthorizationEndpointstringAuthorizationEndpoint*stringrequired#This must be a full URL, including the HTTPS protocol, the domain, and the path.
clientSecretSecretValueclient_secretSecretValueclientSecretSecretValueClientSecretSecretValueClientSecretSecretValuerequired#This must be a full URL, including the HTTPS protocol, the domain, and the path.
onUnauthenticatedRequestUnauthenticatedActionon_unauthenticated_requestUnauthenticatedActiononUnauthenticatedRequestUnauthenticatedActionOnUnauthenticatedRequestUnauthenticatedActionOnUnauthenticatedRequestUnauthenticatedAction= UnauthenticatedAction.AUTHENTICA…#default
Default: UnauthenticatedAction.AUTHENTICATE
To verify which scope values your IdP supports and how to separate multiple values, see the documentation for your IdP.
sessionCookieNamestringsession_cookie_namestrsessionCookieNameStringSessionCookieNamestringSessionCookieName*string= "AWSELBAuthSessionCookie"#sessionTimeoutDurationsession_timeoutDurationsessionTimeoutDurationSessionTimeoutDurationSessionTimeoutDuration= Duration.days(7)#tokenEndpointstringtoken_endpointstrtokenEndpointStringTokenEndpointstringTokenEndpoint*stringrequired#This must be a full URL, including the HTTPS protocol, the domain, and the path.
userInfoEndpointstringuser_info_endpointstruserInfoEndpointStringUserInfoEndpointstringUserInfoEndpoint*stringrequired#This must be a full URL, including the HTTPS protocol, the domain, and the path.