Keycloak v5.3.5 published on Wednesday, Oct 16, 2024 by Pulumi
keycloak.getAuthenticationExecution
Explore with Pulumi AI
This data source can be used to fetch the ID of an authentication execution within Keycloak.
Example Usage
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 = keycloak.getAuthenticationExecutionOutput({
realmId: realm.id,
parentFlowAlias: "browser",
providerId: "auth-cookie",
});
import pulumi
import pulumi_keycloak as keycloak
realm = keycloak.Realm("realm",
realm="my-realm",
enabled=True)
browser_auth_cookie = keycloak.get_authentication_execution_output(realm_id=realm.id,
parent_flow_alias="browser",
provider_id="auth-cookie")
package main
import (
"github.com/pulumi/pulumi-keycloak/sdk/v5/go/keycloak"
"github.com/pulumi/pulumi/sdk/v3/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
}
_ = keycloak.GetAuthenticationExecutionOutput(ctx, keycloak.GetAuthenticationExecutionOutputArgs{
RealmId: realm.ID(),
ParentFlowAlias: pulumi.String("browser"),
ProviderId: pulumi.String("auth-cookie"),
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Keycloak = Pulumi.Keycloak;
return await Deployment.RunAsync(() =>
{
var realm = new Keycloak.Realm("realm", new()
{
RealmName = "my-realm",
Enabled = true,
});
var browserAuthCookie = Keycloak.GetAuthenticationExecution.Invoke(new()
{
RealmId = realm.Id,
ParentFlowAlias = "browser",
ProviderId = "auth-cookie",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.keycloak.Realm;
import com.pulumi.keycloak.RealmArgs;
import com.pulumi.keycloak.KeycloakFunctions;
import com.pulumi.keycloak.inputs.GetAuthenticationExecutionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var realm = new Realm("realm", RealmArgs.builder()
.realm("my-realm")
.enabled(true)
.build());
final var browserAuthCookie = KeycloakFunctions.getAuthenticationExecution(GetAuthenticationExecutionArgs.builder()
.realmId(realm.id())
.parentFlowAlias("browser")
.providerId("auth-cookie")
.build());
}
}
resources:
realm:
type: keycloak:Realm
properties:
realm: my-realm
enabled: true
variables:
browserAuthCookie:
fn::invoke:
Function: keycloak:getAuthenticationExecution
Arguments:
realmId: ${realm.id}
parentFlowAlias: browser
providerId: auth-cookie
Using getAuthenticationExecution
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAuthenticationExecution(args: GetAuthenticationExecutionArgs, opts?: InvokeOptions): Promise<GetAuthenticationExecutionResult>
function getAuthenticationExecutionOutput(args: GetAuthenticationExecutionOutputArgs, opts?: InvokeOptions): Output<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
def get_authentication_execution_output(parent_flow_alias: Optional[pulumi.Input[str]] = None,
provider_id: Optional[pulumi.Input[str]] = None,
realm_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuthenticationExecutionResult]
func GetAuthenticationExecution(ctx *Context, args *GetAuthenticationExecutionArgs, opts ...InvokeOption) (*GetAuthenticationExecutionResult, error)
func GetAuthenticationExecutionOutput(ctx *Context, args *GetAuthenticationExecutionOutputArgs, opts ...InvokeOption) GetAuthenticationExecutionResultOutput
> Note: This function is named GetAuthenticationExecution
in the Go SDK.
public static class GetAuthenticationExecution
{
public static Task<GetAuthenticationExecutionResult> InvokeAsync(GetAuthenticationExecutionArgs args, InvokeOptions? opts = null)
public static Output<GetAuthenticationExecutionResult> Invoke(GetAuthenticationExecutionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuthenticationExecutionResult> getAuthenticationExecution(GetAuthenticationExecutionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: keycloak:index/getAuthenticationExecution:getAuthenticationExecution
arguments:
# arguments dictionary
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 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.
- 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.
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 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
- id String
- The provider-assigned unique ID for this managed resource.
- parent
Flow StringAlias - provider
Id String - realm
Id String
Package Details
- Repository
- Keycloak pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloak
Terraform Provider.