okta.AuthServerClaimDefault
Explore with Pulumi AI
Configures Default Authorization Server Claim. This resource allows you to configure Default Authorization Server Claims.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.AuthServerClaimDefault("example", {
authServerId: "<auth server id>",
name: "sub",
value: "(appuser != null) ? appuser.userName : app.clientId",
});
import pulumi
import pulumi_okta as okta
example = okta.AuthServerClaimDefault("example",
auth_server_id="<auth server id>",
name="sub",
value="(appuser != null) ? appuser.userName : app.clientId")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := okta.NewAuthServerClaimDefault(ctx, "example", &okta.AuthServerClaimDefaultArgs{
AuthServerId: pulumi.String("<auth server id>"),
Name: pulumi.String("sub"),
Value: pulumi.String("(appuser != null) ? appuser.userName : app.clientId"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var example = new Okta.AuthServerClaimDefault("example", new()
{
AuthServerId = "<auth server id>",
Name = "sub",
Value = "(appuser != null) ? appuser.userName : app.clientId",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.AuthServerClaimDefault;
import com.pulumi.okta.AuthServerClaimDefaultArgs;
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 example = new AuthServerClaimDefault("example", AuthServerClaimDefaultArgs.builder()
.authServerId("<auth server id>")
.name("sub")
.value("(appuser != null) ? appuser.userName : app.clientId")
.build());
}
}
resources:
example:
type: okta:AuthServerClaimDefault
properties:
authServerId: <auth server id>
name: sub
value: '(appuser != null) ? appuser.userName : app.clientId'
Create AuthServerClaimDefault Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthServerClaimDefault(name: string, args: AuthServerClaimDefaultArgs, opts?: CustomResourceOptions);
@overload
def AuthServerClaimDefault(resource_name: str,
args: AuthServerClaimDefaultArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AuthServerClaimDefault(resource_name: str,
opts: Optional[ResourceOptions] = None,
auth_server_id: Optional[str] = None,
always_include_in_token: Optional[bool] = None,
name: Optional[str] = None,
value: Optional[str] = None)
func NewAuthServerClaimDefault(ctx *Context, name string, args AuthServerClaimDefaultArgs, opts ...ResourceOption) (*AuthServerClaimDefault, error)
public AuthServerClaimDefault(string name, AuthServerClaimDefaultArgs args, CustomResourceOptions? opts = null)
public AuthServerClaimDefault(String name, AuthServerClaimDefaultArgs args)
public AuthServerClaimDefault(String name, AuthServerClaimDefaultArgs args, CustomResourceOptions options)
type: okta:AuthServerClaimDefault
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 AuthServerClaimDefaultArgs
- 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 AuthServerClaimDefaultArgs
- 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 AuthServerClaimDefaultArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthServerClaimDefaultArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthServerClaimDefaultArgs
- 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 authServerClaimDefaultResource = new Okta.AuthServerClaimDefault("authServerClaimDefaultResource", new()
{
AuthServerId = "string",
AlwaysIncludeInToken = false,
Name = "string",
Value = "string",
});
example, err := okta.NewAuthServerClaimDefault(ctx, "authServerClaimDefaultResource", &okta.AuthServerClaimDefaultArgs{
AuthServerId: pulumi.String("string"),
AlwaysIncludeInToken: pulumi.Bool(false),
Name: pulumi.String("string"),
Value: pulumi.String("string"),
})
var authServerClaimDefaultResource = new AuthServerClaimDefault("authServerClaimDefaultResource", AuthServerClaimDefaultArgs.builder()
.authServerId("string")
.alwaysIncludeInToken(false)
.name("string")
.value("string")
.build());
auth_server_claim_default_resource = okta.AuthServerClaimDefault("authServerClaimDefaultResource",
auth_server_id="string",
always_include_in_token=False,
name="string",
value="string")
const authServerClaimDefaultResource = new okta.AuthServerClaimDefault("authServerClaimDefaultResource", {
authServerId: "string",
alwaysIncludeInToken: false,
name: "string",
value: "string",
});
type: okta:AuthServerClaimDefault
properties:
alwaysIncludeInToken: false
authServerId: string
name: string
value: string
AuthServerClaimDefault 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 AuthServerClaimDefault resource accepts the following input properties:
- Auth
Server stringId - ID of the authorization server.
- Always
Include boolIn Token - Specifies whether to include claims in token.
- Name string
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- Value string
- The value of the claim. Only required for
sub
claim.
- Auth
Server stringId - ID of the authorization server.
- Always
Include boolIn Token - Specifies whether to include claims in token.
- Name string
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- Value string
- The value of the claim. Only required for
sub
claim.
- auth
Server StringId - ID of the authorization server.
- always
Include BooleanIn Token - Specifies whether to include claims in token.
- name String
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- value String
- The value of the claim. Only required for
sub
claim.
- auth
Server stringId - ID of the authorization server.
- always
Include booleanIn Token - Specifies whether to include claims in token.
- name string
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- value string
- The value of the claim. Only required for
sub
claim.
- auth_
server_ strid - ID of the authorization server.
- always_
include_ boolin_ token - Specifies whether to include claims in token.
- name str
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- value str
- The value of the claim. Only required for
sub
claim.
- auth
Server StringId - ID of the authorization server.
- always
Include BooleanIn Token - Specifies whether to include claims in token.
- name String
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- value String
- The value of the claim. Only required for
sub
claim.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthServerClaimDefault resource produces the following output properties:
- Claim
Type string - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - Id string
- The provider-assigned unique ID for this managed resource.
- Scopes List<string>
- Auth server claim list of scopes
- Status string
- The status of the application.
- Value
Type string - The type of value of the claim.
- Claim
Type string - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - Id string
- The provider-assigned unique ID for this managed resource.
- Scopes []string
- Auth server claim list of scopes
- Status string
- The status of the application.
- Value
Type string - The type of value of the claim.
- claim
Type String - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - id String
- The provider-assigned unique ID for this managed resource.
- scopes List<String>
- Auth server claim list of scopes
- status String
- The status of the application.
- value
Type String - The type of value of the claim.
- claim
Type string - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - id string
- The provider-assigned unique ID for this managed resource.
- scopes string[]
- Auth server claim list of scopes
- status string
- The status of the application.
- value
Type string - The type of value of the claim.
- claim_
type str - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - id str
- The provider-assigned unique ID for this managed resource.
- scopes Sequence[str]
- Auth server claim list of scopes
- status str
- The status of the application.
- value_
type str - The type of value of the claim.
- claim
Type String - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - id String
- The provider-assigned unique ID for this managed resource.
- scopes List<String>
- Auth server claim list of scopes
- status String
- The status of the application.
- value
Type String - The type of value of the claim.
Look up Existing AuthServerClaimDefault Resource
Get an existing AuthServerClaimDefault 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?: AuthServerClaimDefaultState, opts?: CustomResourceOptions): AuthServerClaimDefault
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
always_include_in_token: Optional[bool] = None,
auth_server_id: Optional[str] = None,
claim_type: Optional[str] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
status: Optional[str] = None,
value: Optional[str] = None,
value_type: Optional[str] = None) -> AuthServerClaimDefault
func GetAuthServerClaimDefault(ctx *Context, name string, id IDInput, state *AuthServerClaimDefaultState, opts ...ResourceOption) (*AuthServerClaimDefault, error)
public static AuthServerClaimDefault Get(string name, Input<string> id, AuthServerClaimDefaultState? state, CustomResourceOptions? opts = null)
public static AuthServerClaimDefault get(String name, Output<String> id, AuthServerClaimDefaultState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Always
Include boolIn Token - Specifies whether to include claims in token.
- Auth
Server stringId - ID of the authorization server.
- Claim
Type string - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - Name string
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- Scopes List<string>
- Auth server claim list of scopes
- Status string
- The status of the application.
- Value string
- The value of the claim. Only required for
sub
claim. - Value
Type string - The type of value of the claim.
- Always
Include boolIn Token - Specifies whether to include claims in token.
- Auth
Server stringId - ID of the authorization server.
- Claim
Type string - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - Name string
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- Scopes []string
- Auth server claim list of scopes
- Status string
- The status of the application.
- Value string
- The value of the claim. Only required for
sub
claim. - Value
Type string - The type of value of the claim.
- always
Include BooleanIn Token - Specifies whether to include claims in token.
- auth
Server StringId - ID of the authorization server.
- claim
Type String - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - name String
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- scopes List<String>
- Auth server claim list of scopes
- status String
- The status of the application.
- value String
- The value of the claim. Only required for
sub
claim. - value
Type String - The type of value of the claim.
- always
Include booleanIn Token - Specifies whether to include claims in token.
- auth
Server stringId - ID of the authorization server.
- claim
Type string - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - name string
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- scopes string[]
- Auth server claim list of scopes
- status string
- The status of the application.
- value string
- The value of the claim. Only required for
sub
claim. - value
Type string - The type of value of the claim.
- always_
include_ boolin_ token - Specifies whether to include claims in token.
- auth_
server_ strid - ID of the authorization server.
- claim_
type str - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - name str
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- scopes Sequence[str]
- Auth server claim list of scopes
- status str
- The status of the application.
- value str
- The value of the claim. Only required for
sub
claim. - value_
type str - The type of value of the claim.
- always
Include BooleanIn Token - Specifies whether to include claims in token.
- auth
Server StringId - ID of the authorization server.
- claim
Type String - Specifies whether the claim is for an access token
RESOURCE
or ID tokenIDENTITY
. - name String
- The name of the claim. Can be set to
sub
,address
,birthdate
,email
,email_verified
,family_name
,gender
,given_name
,locale
,middle_name
,name
,nickname
,phone_number
,picture
,preferred_username
,profile
,updated_at
,website
,zoneinfo
- scopes List<String>
- Auth server claim list of scopes
- status String
- The status of the application.
- value String
- The value of the claim. Only required for
sub
claim. - value
Type String - The type of value of the claim.
Import
$ pulumi import okta:index/authServerClaimDefault:AuthServerClaimDefault example <auth_server_id>/<claim_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.