authentik.StageIdentification
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as authentik from "@pulumi/authentik";
const default_authorization_flow = authentik.getFlow({
    slug: "default-provider-authorization-implicit-consent",
});
const nameSourceOauth = new authentik.SourceOauth("nameSourceOauth", {
    slug: "test",
    authenticationFlow: default_authorization_flow.then(default_authorization_flow => default_authorization_flow.id),
    enrollmentFlow: default_authorization_flow.then(default_authorization_flow => default_authorization_flow.id),
    providerType: "discord",
    consumerKey: "foo",
    consumerSecret: "bar",
});
const nameStagePassword = new authentik.StagePassword("nameStagePassword", {backends: ["authentik.core.auth.InbuiltBackend"]});
const nameStageIdentification = new authentik.StageIdentification("nameStageIdentification", {
    userFields: ["username"],
    sources: [nameSourceOauth.uuid],
    passwordStage: nameStagePassword.stagePasswordId,
});
import pulumi
import pulumi_authentik as authentik
default_authorization_flow = authentik.get_flow(slug="default-provider-authorization-implicit-consent")
name_source_oauth = authentik.SourceOauth("nameSourceOauth",
    slug="test",
    authentication_flow=default_authorization_flow.id,
    enrollment_flow=default_authorization_flow.id,
    provider_type="discord",
    consumer_key="foo",
    consumer_secret="bar")
name_stage_password = authentik.StagePassword("nameStagePassword", backends=["authentik.core.auth.InbuiltBackend"])
name_stage_identification = authentik.StageIdentification("nameStageIdentification",
    user_fields=["username"],
    sources=[name_source_oauth.uuid],
    password_stage=name_stage_password.stage_password_id)
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/authentik/v2025/authentik"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		default_authorization_flow, err := authentik.LookupFlow(ctx, &authentik.LookupFlowArgs{
			Slug: pulumi.StringRef("default-provider-authorization-implicit-consent"),
		}, nil)
		if err != nil {
			return err
		}
		nameSourceOauth, err := authentik.NewSourceOauth(ctx, "nameSourceOauth", &authentik.SourceOauthArgs{
			Slug:               pulumi.String("test"),
			AuthenticationFlow: pulumi.String(default_authorization_flow.Id),
			EnrollmentFlow:     pulumi.String(default_authorization_flow.Id),
			ProviderType:       pulumi.String("discord"),
			ConsumerKey:        pulumi.String("foo"),
			ConsumerSecret:     pulumi.String("bar"),
		})
		if err != nil {
			return err
		}
		nameStagePassword, err := authentik.NewStagePassword(ctx, "nameStagePassword", &authentik.StagePasswordArgs{
			Backends: pulumi.StringArray{
				pulumi.String("authentik.core.auth.InbuiltBackend"),
			},
		})
		if err != nil {
			return err
		}
		_, err = authentik.NewStageIdentification(ctx, "nameStageIdentification", &authentik.StageIdentificationArgs{
			UserFields: pulumi.StringArray{
				pulumi.String("username"),
			},
			Sources: pulumi.StringArray{
				nameSourceOauth.Uuid,
			},
			PasswordStage: nameStagePassword.StagePasswordId,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Authentik = Pulumi.Authentik;
return await Deployment.RunAsync(() => 
{
    var default_authorization_flow = Authentik.GetFlow.Invoke(new()
    {
        Slug = "default-provider-authorization-implicit-consent",
    });
    var nameSourceOauth = new Authentik.SourceOauth("nameSourceOauth", new()
    {
        Slug = "test",
        AuthenticationFlow = default_authorization_flow.Apply(default_authorization_flow => default_authorization_flow.Apply(getFlowResult => getFlowResult.Id)),
        EnrollmentFlow = default_authorization_flow.Apply(default_authorization_flow => default_authorization_flow.Apply(getFlowResult => getFlowResult.Id)),
        ProviderType = "discord",
        ConsumerKey = "foo",
        ConsumerSecret = "bar",
    });
    var nameStagePassword = new Authentik.StagePassword("nameStagePassword", new()
    {
        Backends = new[]
        {
            "authentik.core.auth.InbuiltBackend",
        },
    });
    var nameStageIdentification = new Authentik.StageIdentification("nameStageIdentification", new()
    {
        UserFields = new[]
        {
            "username",
        },
        Sources = new[]
        {
            nameSourceOauth.Uuid,
        },
        PasswordStage = nameStagePassword.StagePasswordId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.authentik.AuthentikFunctions;
import com.pulumi.authentik.inputs.GetFlowArgs;
import com.pulumi.authentik.SourceOauth;
import com.pulumi.authentik.SourceOauthArgs;
import com.pulumi.authentik.StagePassword;
import com.pulumi.authentik.StagePasswordArgs;
import com.pulumi.authentik.StageIdentification;
import com.pulumi.authentik.StageIdentificationArgs;
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) {
        final var default-authorization-flow = AuthentikFunctions.getFlow(GetFlowArgs.builder()
            .slug("default-provider-authorization-implicit-consent")
            .build());
        var nameSourceOauth = new SourceOauth("nameSourceOauth", SourceOauthArgs.builder()
            .slug("test")
            .authenticationFlow(default_authorization_flow.id())
            .enrollmentFlow(default_authorization_flow.id())
            .providerType("discord")
            .consumerKey("foo")
            .consumerSecret("bar")
            .build());
        var nameStagePassword = new StagePassword("nameStagePassword", StagePasswordArgs.builder()
            .backends("authentik.core.auth.InbuiltBackend")
            .build());
        var nameStageIdentification = new StageIdentification("nameStageIdentification", StageIdentificationArgs.builder()
            .userFields("username")
            .sources(nameSourceOauth.uuid())
            .passwordStage(nameStagePassword.stagePasswordId())
            .build());
    }
}
resources:
  nameSourceOauth:
    type: authentik:SourceOauth
    properties:
      slug: test
      authenticationFlow: ${["default-authorization-flow"].id}
      enrollmentFlow: ${["default-authorization-flow"].id}
      providerType: discord
      consumerKey: foo
      consumerSecret: bar
  nameStagePassword:
    type: authentik:StagePassword
    properties:
      backends:
        - authentik.core.auth.InbuiltBackend
  nameStageIdentification:
    type: authentik:StageIdentification
    properties:
      userFields:
        - username
      sources:
        - ${nameSourceOauth.uuid}
      passwordStage: ${nameStagePassword.stagePasswordId}
variables:
  default-authorization-flow:
    fn::invoke:
      function: authentik:getFlow
      arguments:
        slug: default-provider-authorization-implicit-consent
Create StageIdentification Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StageIdentification(name: string, args?: StageIdentificationArgs, opts?: CustomResourceOptions);@overload
def StageIdentification(resource_name: str,
                        args: Optional[StageIdentificationArgs] = None,
                        opts: Optional[ResourceOptions] = None)
@overload
def StageIdentification(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        captcha_stage: Optional[str] = None,
                        case_insensitive_matching: Optional[bool] = None,
                        enrollment_flow: Optional[str] = None,
                        name: Optional[str] = None,
                        password_stage: Optional[str] = None,
                        passwordless_flow: Optional[str] = None,
                        pretend_user_exists: Optional[bool] = None,
                        recovery_flow: Optional[str] = None,
                        show_matched_user: Optional[bool] = None,
                        show_source_labels: Optional[bool] = None,
                        sources: Optional[Sequence[str]] = None,
                        stage_identification_id: Optional[str] = None,
                        user_fields: Optional[Sequence[str]] = None)func NewStageIdentification(ctx *Context, name string, args *StageIdentificationArgs, opts ...ResourceOption) (*StageIdentification, error)public StageIdentification(string name, StageIdentificationArgs? args = null, CustomResourceOptions? opts = null)
public StageIdentification(String name, StageIdentificationArgs args)
public StageIdentification(String name, StageIdentificationArgs args, CustomResourceOptions options)
type: authentik:StageIdentification
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StageIdentificationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StageIdentificationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StageIdentificationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StageIdentificationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StageIdentificationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var stageIdentificationResource = new Authentik.StageIdentification("stageIdentificationResource", new()
{
    CaptchaStage = "string",
    CaseInsensitiveMatching = false,
    EnrollmentFlow = "string",
    Name = "string",
    PasswordStage = "string",
    PasswordlessFlow = "string",
    PretendUserExists = false,
    RecoveryFlow = "string",
    ShowMatchedUser = false,
    ShowSourceLabels = false,
    Sources = new[]
    {
        "string",
    },
    StageIdentificationId = "string",
    UserFields = new[]
    {
        "string",
    },
});
example, err := authentik.NewStageIdentification(ctx, "stageIdentificationResource", &authentik.StageIdentificationArgs{
	CaptchaStage:            pulumi.String("string"),
	CaseInsensitiveMatching: pulumi.Bool(false),
	EnrollmentFlow:          pulumi.String("string"),
	Name:                    pulumi.String("string"),
	PasswordStage:           pulumi.String("string"),
	PasswordlessFlow:        pulumi.String("string"),
	PretendUserExists:       pulumi.Bool(false),
	RecoveryFlow:            pulumi.String("string"),
	ShowMatchedUser:         pulumi.Bool(false),
	ShowSourceLabels:        pulumi.Bool(false),
	Sources: pulumi.StringArray{
		pulumi.String("string"),
	},
	StageIdentificationId: pulumi.String("string"),
	UserFields: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var stageIdentificationResource = new StageIdentification("stageIdentificationResource", StageIdentificationArgs.builder()
    .captchaStage("string")
    .caseInsensitiveMatching(false)
    .enrollmentFlow("string")
    .name("string")
    .passwordStage("string")
    .passwordlessFlow("string")
    .pretendUserExists(false)
    .recoveryFlow("string")
    .showMatchedUser(false)
    .showSourceLabels(false)
    .sources("string")
    .stageIdentificationId("string")
    .userFields("string")
    .build());
stage_identification_resource = authentik.StageIdentification("stageIdentificationResource",
    captcha_stage="string",
    case_insensitive_matching=False,
    enrollment_flow="string",
    name="string",
    password_stage="string",
    passwordless_flow="string",
    pretend_user_exists=False,
    recovery_flow="string",
    show_matched_user=False,
    show_source_labels=False,
    sources=["string"],
    stage_identification_id="string",
    user_fields=["string"])
const stageIdentificationResource = new authentik.StageIdentification("stageIdentificationResource", {
    captchaStage: "string",
    caseInsensitiveMatching: false,
    enrollmentFlow: "string",
    name: "string",
    passwordStage: "string",
    passwordlessFlow: "string",
    pretendUserExists: false,
    recoveryFlow: "string",
    showMatchedUser: false,
    showSourceLabels: false,
    sources: ["string"],
    stageIdentificationId: "string",
    userFields: ["string"],
});
type: authentik:StageIdentification
properties:
    captchaStage: string
    caseInsensitiveMatching: false
    enrollmentFlow: string
    name: string
    passwordStage: string
    passwordlessFlow: string
    pretendUserExists: false
    recoveryFlow: string
    showMatchedUser: false
    showSourceLabels: false
    sources:
        - string
    stageIdentificationId: string
    userFields:
        - string
StageIdentification Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The StageIdentification resource accepts the following input properties:
- CaptchaStage string
- CaseInsensitive boolMatching 
- EnrollmentFlow string
- Name string
- PasswordStage string
- PasswordlessFlow string
- PretendUser boolExists 
- Defaults to true.
- RecoveryFlow string
- ShowMatched boolUser 
- Defaults to true.
- ShowSource boolLabels 
- Defaults to false.
- Sources List<string>
- StageIdentification stringId 
- The ID of this resource.
- UserFields List<string>
- CaptchaStage string
- CaseInsensitive boolMatching 
- EnrollmentFlow string
- Name string
- PasswordStage string
- PasswordlessFlow string
- PretendUser boolExists 
- Defaults to true.
- RecoveryFlow string
- ShowMatched boolUser 
- Defaults to true.
- ShowSource boolLabels 
- Defaults to false.
- Sources []string
- StageIdentification stringId 
- The ID of this resource.
- UserFields []string
- captchaStage String
- caseInsensitive BooleanMatching 
- enrollmentFlow String
- name String
- passwordStage String
- passwordlessFlow String
- pretendUser BooleanExists 
- Defaults to true.
- recoveryFlow String
- showMatched BooleanUser 
- Defaults to true.
- showSource BooleanLabels 
- Defaults to false.
- sources List<String>
- stageIdentification StringId 
- The ID of this resource.
- userFields List<String>
- captchaStage string
- caseInsensitive booleanMatching 
- enrollmentFlow string
- name string
- passwordStage string
- passwordlessFlow string
- pretendUser booleanExists 
- Defaults to true.
- recoveryFlow string
- showMatched booleanUser 
- Defaults to true.
- showSource booleanLabels 
- Defaults to false.
- sources string[]
- stageIdentification stringId 
- The ID of this resource.
- userFields string[]
- captcha_stage str
- case_insensitive_ boolmatching 
- enrollment_flow str
- name str
- password_stage str
- passwordless_flow str
- pretend_user_ boolexists 
- Defaults to true.
- recovery_flow str
- show_matched_ booluser 
- Defaults to true.
- show_source_ boollabels 
- Defaults to false.
- sources Sequence[str]
- stage_identification_ strid 
- The ID of this resource.
- user_fields Sequence[str]
- captchaStage String
- caseInsensitive BooleanMatching 
- enrollmentFlow String
- name String
- passwordStage String
- passwordlessFlow String
- pretendUser BooleanExists 
- Defaults to true.
- recoveryFlow String
- showMatched BooleanUser 
- Defaults to true.
- showSource BooleanLabels 
- Defaults to false.
- sources List<String>
- stageIdentification StringId 
- The ID of this resource.
- userFields List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the StageIdentification resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing StageIdentification Resource
Get an existing StageIdentification resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: StageIdentificationState, opts?: CustomResourceOptions): StageIdentification@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        captcha_stage: Optional[str] = None,
        case_insensitive_matching: Optional[bool] = None,
        enrollment_flow: Optional[str] = None,
        name: Optional[str] = None,
        password_stage: Optional[str] = None,
        passwordless_flow: Optional[str] = None,
        pretend_user_exists: Optional[bool] = None,
        recovery_flow: Optional[str] = None,
        show_matched_user: Optional[bool] = None,
        show_source_labels: Optional[bool] = None,
        sources: Optional[Sequence[str]] = None,
        stage_identification_id: Optional[str] = None,
        user_fields: Optional[Sequence[str]] = None) -> StageIdentificationfunc GetStageIdentification(ctx *Context, name string, id IDInput, state *StageIdentificationState, opts ...ResourceOption) (*StageIdentification, error)public static StageIdentification Get(string name, Input<string> id, StageIdentificationState? state, CustomResourceOptions? opts = null)public static StageIdentification get(String name, Output<String> id, StageIdentificationState state, CustomResourceOptions options)resources:  _:    type: authentik:StageIdentification    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CaptchaStage string
- CaseInsensitive boolMatching 
- EnrollmentFlow string
- Name string
- PasswordStage string
- PasswordlessFlow string
- PretendUser boolExists 
- Defaults to true.
- RecoveryFlow string
- ShowMatched boolUser 
- Defaults to true.
- ShowSource boolLabels 
- Defaults to false.
- Sources List<string>
- StageIdentification stringId 
- The ID of this resource.
- UserFields List<string>
- CaptchaStage string
- CaseInsensitive boolMatching 
- EnrollmentFlow string
- Name string
- PasswordStage string
- PasswordlessFlow string
- PretendUser boolExists 
- Defaults to true.
- RecoveryFlow string
- ShowMatched boolUser 
- Defaults to true.
- ShowSource boolLabels 
- Defaults to false.
- Sources []string
- StageIdentification stringId 
- The ID of this resource.
- UserFields []string
- captchaStage String
- caseInsensitive BooleanMatching 
- enrollmentFlow String
- name String
- passwordStage String
- passwordlessFlow String
- pretendUser BooleanExists 
- Defaults to true.
- recoveryFlow String
- showMatched BooleanUser 
- Defaults to true.
- showSource BooleanLabels 
- Defaults to false.
- sources List<String>
- stageIdentification StringId 
- The ID of this resource.
- userFields List<String>
- captchaStage string
- caseInsensitive booleanMatching 
- enrollmentFlow string
- name string
- passwordStage string
- passwordlessFlow string
- pretendUser booleanExists 
- Defaults to true.
- recoveryFlow string
- showMatched booleanUser 
- Defaults to true.
- showSource booleanLabels 
- Defaults to false.
- sources string[]
- stageIdentification stringId 
- The ID of this resource.
- userFields string[]
- captcha_stage str
- case_insensitive_ boolmatching 
- enrollment_flow str
- name str
- password_stage str
- passwordless_flow str
- pretend_user_ boolexists 
- Defaults to true.
- recovery_flow str
- show_matched_ booluser 
- Defaults to true.
- show_source_ boollabels 
- Defaults to false.
- sources Sequence[str]
- stage_identification_ strid 
- The ID of this resource.
- user_fields Sequence[str]
- captchaStage String
- caseInsensitive BooleanMatching 
- enrollmentFlow String
- name String
- passwordStage String
- passwordlessFlow String
- pretendUser BooleanExists 
- Defaults to true.
- recoveryFlow String
- showMatched BooleanUser 
- Defaults to true.
- showSource BooleanLabels 
- Defaults to false.
- sources List<String>
- stageIdentification StringId 
- The ID of this resource.
- userFields List<String>
Package Details
- Repository
- authentik goauthentik/terraform-provider-authentik
- License
- Notes
- This Pulumi package is based on the authentikTerraform Provider.