Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

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:

ParentFlowAlias string

The alias of the flow this execution is attached to.

ProviderId 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”.

RealmId string

The realm the authentication execution exists in.

ParentFlowAlias string

The alias of the flow this execution is attached to.

ProviderId 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”.

RealmId string

The realm the authentication execution exists in.

parentFlowAlias string

The alias of the flow this execution is attached to.

providerId 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”.

realmId string

The realm the authentication execution exists in.

parent_flow_alias str

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.

ParentFlowAlias string
ProviderId string
RealmId string
Id string

The provider-assigned unique ID for this managed resource.

ParentFlowAlias string
ProviderId string
RealmId string
id string

The provider-assigned unique ID for this managed resource.

parentFlowAlias string
providerId string
realmId string
id str

The provider-assigned unique ID for this managed resource.

parent_flow_alias str
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.