Class UserPoolIdentityProviderOidc
Represents a identity provider that integrates with OpenID Connect.
Inherited Members
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public class UserPoolIdentityProviderOidc : Resource, IUserPoolIdentityProvider, IResource, IConstruct, IDependable
Syntax (vb)
Public Class UserPoolIdentityProviderOidc
Inherits Resource
Implements IUserPoolIdentityProvider, IResource, IConstruct, IDependable
Remarks
Resource: AWS::Cognito::UserPoolIdentityProvider
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
ProviderAttribute providerAttribute;
UserPool userPool;
var userPoolIdentityProviderOidc = new UserPoolIdentityProviderOidc(this, "MyUserPoolIdentityProviderOidc", new UserPoolIdentityProviderOidcProps {
ClientId = "clientId",
ClientSecret = "clientSecret",
IssuerUrl = "issuerUrl",
UserPool = userPool,
// the properties below are optional
AttributeMapping = new AttributeMapping {
Address = providerAttribute,
Birthdate = providerAttribute,
Custom = new Dictionary<string, ProviderAttribute> {
{ "customKey", providerAttribute }
},
Email = providerAttribute,
FamilyName = providerAttribute,
Fullname = providerAttribute,
Gender = providerAttribute,
GivenName = providerAttribute,
LastUpdateTime = providerAttribute,
Locale = providerAttribute,
MiddleName = providerAttribute,
Nickname = providerAttribute,
PhoneNumber = providerAttribute,
PreferredUsername = providerAttribute,
ProfilePage = providerAttribute,
ProfilePicture = providerAttribute,
Timezone = providerAttribute,
Website = providerAttribute
},
AttributeRequestMethod = OidcAttributeRequestMethod.GET,
Endpoints = new OidcEndpoints {
Authorization = "authorization",
JwksUri = "jwksUri",
Token = "token",
UserInfo = "userInfo"
},
Identifiers = new [] { "identifiers" },
Name = "name",
Scopes = new [] { "scopes" }
});
Synopsis
Constructors
UserPoolIdentityProviderOidc(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
UserPoolIdentityProviderOidc(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
UserPoolIdentityProviderOidc(Construct, String, IUserPoolIdentityProviderOidcProps) |
Properties
ProviderName | The primary identifier of this identity provider. |
Methods
ConfigureAttributeMapping() |
Constructors
UserPoolIdentityProviderOidc(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected UserPoolIdentityProviderOidc(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
UserPoolIdentityProviderOidc(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected UserPoolIdentityProviderOidc(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
UserPoolIdentityProviderOidc(Construct, String, IUserPoolIdentityProviderOidcProps)
public UserPoolIdentityProviderOidc(Construct scope, string id, IUserPoolIdentityProviderOidcProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IUserPoolIdentityProviderOidcProps
Properties
ProviderName
The primary identifier of this identity provider.
public virtual string ProviderName { get; }
Property Value
System.String
Methods
ConfigureAttributeMapping()
protected virtual object ConfigureAttributeMapping()
Returns
System.Object
Implements
Constructs.IConstruct