Class OpenIdConnectPrincipal
A principal that represents a federated identity provider as from a OpenID Connect provider.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class OpenIdConnectPrincipal : WebIdentityPrincipal, IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
Syntax (vb)
Public Class OpenIdConnectPrincipal
Inherits WebIdentityPrincipal
Implements IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
Remarks
ExampleMetadata: infused
Examples
var provider = new OpenIdConnectProvider(this, "MyProvider", new OpenIdConnectProviderProps {
Url = "https://openid/connect",
ClientIds = new [] { "myclient1", "myclient2" }
});
var principal = new OpenIdConnectPrincipal(provider);
Synopsis
Constructors
OpenIdConnectPrincipal(IOpenIdConnectProvider, IDictionary<String, Object>) | |
OpenIdConnectPrincipal(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
OpenIdConnectPrincipal(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
PolicyFragment | Return the policy fragment that identifies this principal in a Policy. |
Methods
ToString() | Returns a string representation of an object. |
Constructors
OpenIdConnectPrincipal(IOpenIdConnectProvider, IDictionary<String, Object>)
public OpenIdConnectPrincipal(IOpenIdConnectProvider openIdConnectProvider, IDictionary<string, object> conditions = null)
Parameters
- openIdConnectProvider IOpenIdConnectProvider
OpenID Connect provider.
- conditions System.Collections.Generic.IDictionary<System.String, System.Object>
The conditions under which the policy is in effect.
OpenIdConnectPrincipal(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected OpenIdConnectPrincipal(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
OpenIdConnectPrincipal(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected OpenIdConnectPrincipal(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
PolicyFragment
Return the policy fragment that identifies this principal in a Policy.
public override PrincipalPolicyFragment PolicyFragment { get; }
Property Value
Overrides
Methods
ToString()
Returns a string representation of an object.
public override string ToString()
Returns
System.String