Class GetClientOpenIdUserInfo
Inheritance
System.Object
GetClientOpenIdUserInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Organizations
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetClientOpenIdUserInfo
Methods
View SourceInvokeAsync(InvokeOptions)
Get OpenID userinfo about the credentials used with the Google provider, specifically the email.
This datasource enables you to export the email of the account you've
authenticated the provider with; this can be used alongside
data.google_client_config's access_token to perform OpenID Connect
authentication with GKE and configure an RBAC role for the email used.
This resource will only work as expected if the provider is configured to use the
https://www.googleapis.com/auth/userinfo.emailscope! You will receive an error otherwise.
Example Usage - exporting an email
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var me = Output.Create(Gcp.Organizations.GetClientOpenIdUserInfo.InvokeAsync());
this.My_email = me.Apply(me => me.Email);
}
[Output("my-email")]
public Output<string> My_email { get; set; }
}
Declaration
public static Task<GetClientOpenIdUserInfoResult> InvokeAsync(InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetClientOpenIdUserInfoResult> |