getAuthenticationExecution
This data source can be used to fetch the ID of an authentication execution within Keycloak.
Example Usage
using Pulumi;
using Keycloak = Pulumi.Keycloak;
class MyStack : Stack
{
public MyStack()
{
var realm = new Keycloak.Realm("realm", new Keycloak.RealmArgs
{
Realm = "my-realm",
Enabled = true,
});
var browserAuthCookie = realm.Id.Apply(id => Keycloak.GetAuthenticationExecution.InvokeAsync(new Keycloak.GetAuthenticationExecutionArgs
{
RealmId = id,
ParentFlowAlias = "browser",
ProviderId = "auth-cookie",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-keycloak/sdk/v3/go/keycloak"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
realm, err := keycloak.NewRealm(ctx, "realm", &keycloak.RealmArgs{
Realm: pulumi.String("my-realm"),
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_keycloak as keycloak
realm = keycloak.Realm("realm",
realm="my-realm",
enabled=True)
browser_auth_cookie = realm.id.apply(lambda id: keycloak.get_authentication_execution(realm_id=id,
parent_flow_alias="browser",
provider_id="auth-cookie"))
import * as pulumi from "@pulumi/pulumi";
import * as keycloak from "@pulumi/keycloak";
const realm = new keycloak.Realm("realm", {
realm: "my-realm",
enabled: true,
});
const browserAuthCookie = realm.id.apply(id => keycloak.getAuthenticationExecution({
realmId: id,
parentFlowAlias: "browser",
providerId: "auth-cookie",
}));
Using getAuthenticationExecution
function getAuthenticationExecution(args: GetAuthenticationExecutionArgs, opts?: InvokeOptions): Promise<GetAuthenticationExecutionResult>
def get_authentication_execution(parent_flow_alias: Optional[str] = None, provider_id: Optional[str] = None, realm_id: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetAuthenticationExecutionResult
func GetAuthenticationExecution(ctx *Context, args *GetAuthenticationExecutionArgs, opts ...InvokeOption) (*GetAuthenticationExecutionResult, error)
Note: This function is named
GetAuthenticationExecution
in the Go SDK.
public static class GetAuthenticationExecution {
public static Task<GetAuthenticationExecutionResult> InvokeAsync(GetAuthenticationExecutionArgs args, InvokeOptions? opts = null)
}
The following arguments are supported:
- Parent
Flow stringAlias The alias of the flow this execution is attached to.
- Provider
Id string The name of the provider. This can be found by experimenting with the GUI and looking at HTTP requests within the network tab of your browser’s development tools. This was previously known as the “authenticator”.
- Realm
Id string The realm the authentication execution exists in.
- Parent
Flow stringAlias The alias of the flow this execution is attached to.
- Provider
Id string The name of the provider. This can be found by experimenting with the GUI and looking at HTTP requests within the network tab of your browser’s development tools. This was previously known as the “authenticator”.
- Realm
Id string The realm the authentication execution exists in.
- parent
Flow stringAlias The alias of the flow this execution is attached to.
- provider
Id string The name of the provider. This can be found by experimenting with the GUI and looking at HTTP requests within the network tab of your browser’s development tools. This was previously known as the “authenticator”.
- realm
Id string The realm the authentication execution exists in.
- parent_
flow_ stralias The alias of the flow this execution is attached to.
- provider_
id str The name of the provider. This can be found by experimenting with the GUI and looking at HTTP requests within the network tab of your browser’s development tools. This was previously known as the “authenticator”.
- realm_
id str The realm the authentication execution exists in.
getAuthenticationExecution Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Parent
Flow stringAlias - Provider
Id string - Realm
Id string
- Id string
The provider-assigned unique ID for this managed resource.
- Parent
Flow stringAlias - Provider
Id string - Realm
Id string
- id string
The provider-assigned unique ID for this managed resource.
- parent
Flow stringAlias - provider
Id string - realm
Id string
- id str
The provider-assigned unique ID for this managed resource.
- parent_
flow_ stralias - provider_
id str - realm_
id str
Package Details
- Repository
- https://github.com/pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloak
Terraform Provider.