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

CustomUserFederation

Import

Custom user federation providers can be imported using the format {{realm_id}}/{{custom_user_federation_id}}. The ID of the custom user federation provider can be found within the Keycloak GUI and is typically a GUIDbash

 $ pulumi import keycloak:index/customUserFederation:CustomUserFederation custom_user_federation my-realm/af2a6ca3-e4d7-49c3-b08b-1b3c70b4b860

Create a CustomUserFederation Resource

new CustomUserFederation(name: string, args: CustomUserFederationArgs, opts?: CustomResourceOptions);
def CustomUserFederation(resource_name: str, opts: Optional[ResourceOptions] = None, cache_policy: Optional[str] = None, config: Optional[Mapping[str, Any]] = None, enabled: Optional[bool] = None, name: Optional[str] = None, parent_id: Optional[str] = None, priority: Optional[int] = None, provider_id: Optional[str] = None, realm_id: Optional[str] = None)
func NewCustomUserFederation(ctx *Context, name string, args CustomUserFederationArgs, opts ...ResourceOption) (*CustomUserFederation, error)
public CustomUserFederation(string name, CustomUserFederationArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args CustomUserFederationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CustomUserFederationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CustomUserFederationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

CustomUserFederation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The CustomUserFederation resource accepts the following input properties:

ProviderId string

The unique ID of the custom provider, specified in the getId implementation for the UserStorageProviderFactory interface.

RealmId string

The realm that this provider will provide user federation for.

CachePolicy string

Can be one of DEFAULT, EVICT_DAILY, EVICT_WEEKLY, MAX_LIFESPAN, or NO_CACHE. Defaults to DEFAULT.

Config Dictionary<string, object>

The provider configuration handed over to your custom user federation provider.

Enabled bool

When false, this provider will not be used when performing queries for users. Defaults to true.

Name string

Display name of the provider when displayed in the console.

ParentId string

Must be set to the realms’ internal_id when it differs from the realm. This can happen when existing resources are imported into the state.

Priority int

Priority of this provider when looking up users. Lower values are first. Defaults to 0.

ProviderId string

The unique ID of the custom provider, specified in the getId implementation for the UserStorageProviderFactory interface.

RealmId string

The realm that this provider will provide user federation for.

CachePolicy string

Can be one of DEFAULT, EVICT_DAILY, EVICT_WEEKLY, MAX_LIFESPAN, or NO_CACHE. Defaults to DEFAULT.

Config map[string]interface{}

The provider configuration handed over to your custom user federation provider.

Enabled bool

When false, this provider will not be used when performing queries for users. Defaults to true.

Name string

Display name of the provider when displayed in the console.

ParentId string

Must be set to the realms’ internal_id when it differs from the realm. This can happen when existing resources are imported into the state.

Priority int

Priority of this provider when looking up users. Lower values are first. Defaults to 0.

providerId string

The unique ID of the custom provider, specified in the getId implementation for the UserStorageProviderFactory interface.

realmId string

The realm that this provider will provide user federation for.

cachePolicy string

Can be one of DEFAULT, EVICT_DAILY, EVICT_WEEKLY, MAX_LIFESPAN, or NO_CACHE. Defaults to DEFAULT.

config {[key: string]: any}

The provider configuration handed over to your custom user federation provider.

enabled boolean

When false, this provider will not be used when performing queries for users. Defaults to true.

name string

Display name of the provider when displayed in the console.

parentId string

Must be set to the realms’ internal_id when it differs from the realm. This can happen when existing resources are imported into the state.

priority number

Priority of this provider when looking up users. Lower values are first. Defaults to 0.

provider_id str

The unique ID of the custom provider, specified in the getId implementation for the UserStorageProviderFactory interface.

realm_id str

The realm that this provider will provide user federation for.

cache_policy str

Can be one of DEFAULT, EVICT_DAILY, EVICT_WEEKLY, MAX_LIFESPAN, or NO_CACHE. Defaults to DEFAULT.

config Mapping[str, Any]

The provider configuration handed over to your custom user federation provider.

enabled bool

When false, this provider will not be used when performing queries for users. Defaults to true.

name str

Display name of the provider when displayed in the console.

parent_id str

Must be set to the realms’ internal_id when it differs from the realm. This can happen when existing resources are imported into the state.

priority int

Priority of this provider when looking up users. Lower values are first. Defaults to 0.

Outputs

All input properties are implicitly available as output properties. Additionally, the CustomUserFederation 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing CustomUserFederation Resource

Get an existing CustomUserFederation 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?: CustomUserFederationState, opts?: CustomResourceOptions): CustomUserFederation
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, cache_policy: Optional[str] = None, config: Optional[Mapping[str, Any]] = None, enabled: Optional[bool] = None, name: Optional[str] = None, parent_id: Optional[str] = None, priority: Optional[int] = None, provider_id: Optional[str] = None, realm_id: Optional[str] = None) -> CustomUserFederation
func GetCustomUserFederation(ctx *Context, name string, id IDInput, state *CustomUserFederationState, opts ...ResourceOption) (*CustomUserFederation, error)
public static CustomUserFederation Get(string name, Input<string> id, CustomUserFederationState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

CachePolicy string

Can be one of DEFAULT, EVICT_DAILY, EVICT_WEEKLY, MAX_LIFESPAN, or NO_CACHE. Defaults to DEFAULT.

Config Dictionary<string, object>

The provider configuration handed over to your custom user federation provider.

Enabled bool

When false, this provider will not be used when performing queries for users. Defaults to true.

Name string

Display name of the provider when displayed in the console.

ParentId string

Must be set to the realms’ internal_id when it differs from the realm. This can happen when existing resources are imported into the state.

Priority int

Priority of this provider when looking up users. Lower values are first. Defaults to 0.

ProviderId string

The unique ID of the custom provider, specified in the getId implementation for the UserStorageProviderFactory interface.

RealmId string

The realm that this provider will provide user federation for.

CachePolicy string

Can be one of DEFAULT, EVICT_DAILY, EVICT_WEEKLY, MAX_LIFESPAN, or NO_CACHE. Defaults to DEFAULT.

Config map[string]interface{}

The provider configuration handed over to your custom user federation provider.

Enabled bool

When false, this provider will not be used when performing queries for users. Defaults to true.

Name string

Display name of the provider when displayed in the console.

ParentId string

Must be set to the realms’ internal_id when it differs from the realm. This can happen when existing resources are imported into the state.

Priority int

Priority of this provider when looking up users. Lower values are first. Defaults to 0.

ProviderId string

The unique ID of the custom provider, specified in the getId implementation for the UserStorageProviderFactory interface.

RealmId string

The realm that this provider will provide user federation for.

cachePolicy string

Can be one of DEFAULT, EVICT_DAILY, EVICT_WEEKLY, MAX_LIFESPAN, or NO_CACHE. Defaults to DEFAULT.

config {[key: string]: any}

The provider configuration handed over to your custom user federation provider.

enabled boolean

When false, this provider will not be used when performing queries for users. Defaults to true.

name string

Display name of the provider when displayed in the console.

parentId string

Must be set to the realms’ internal_id when it differs from the realm. This can happen when existing resources are imported into the state.

priority number

Priority of this provider when looking up users. Lower values are first. Defaults to 0.

providerId string

The unique ID of the custom provider, specified in the getId implementation for the UserStorageProviderFactory interface.

realmId string

The realm that this provider will provide user federation for.

cache_policy str

Can be one of DEFAULT, EVICT_DAILY, EVICT_WEEKLY, MAX_LIFESPAN, or NO_CACHE. Defaults to DEFAULT.

config Mapping[str, Any]

The provider configuration handed over to your custom user federation provider.

enabled bool

When false, this provider will not be used when performing queries for users. Defaults to true.

name str

Display name of the provider when displayed in the console.

parent_id str

Must be set to the realms’ internal_id when it differs from the realm. This can happen when existing resources are imported into the state.

priority int

Priority of this provider when looking up users. Lower values are first. Defaults to 0.

provider_id str

The unique ID of the custom provider, specified in the getId implementation for the UserStorageProviderFactory interface.

realm_id str

The realm that this provider will provide user federation for.

Package Details

Repository
https://github.com/pulumi/pulumi-keycloak
License
Apache-2.0
Notes
This Pulumi package is based on the keycloak Terraform Provider.