ServerClaim
Creates an Authorization Server Claim.
This resource allows you to create and configure an Authorization Server Claim.
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = new Okta.Auth.ServerClaim("example", new Okta.Auth.ServerClaimArgs
{
AuthServerId = "<auth server id>",
ClaimType = "IDENTITY",
Scopes =
{
okta_auth_server_scope.Example.Name,
},
Value = "String.substringAfter(user.email, \"@\") == \"example.com\"",
});
}
}
Coming soon!
import pulumi
import pulumi_okta as okta
example = okta.auth.ServerClaim("example",
auth_server_id="<auth server id>",
claim_type="IDENTITY",
scopes=[okta_auth_server_scope["example"]["name"]],
value="String.substringAfter(user.email, \"@\") == \"example.com\"")import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.auth.ServerClaim("example", {
authServerId: "<auth server id>",
claimType: "IDENTITY",
scopes: [okta_auth_server_scope_example.name],
value: "String.substringAfter(user.email, \"@\") == \"example.com\"",
});Create a ServerClaim Resource
new ServerClaim(name: string, args: ServerClaimArgs, opts?: CustomResourceOptions);def ServerClaim(resource_name, opts=None, always_include_in_token=None, auth_server_id=None, claim_type=None, group_filter_type=None, name=None, scopes=None, status=None, value=None, value_type=None, __props__=None);func NewServerClaim(ctx *Context, name string, args ServerClaimArgs, opts ...ResourceOption) (*ServerClaim, error)public ServerClaim(string name, ServerClaimArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServerClaimArgs
- 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 ServerClaimArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerClaimArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ServerClaim Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ServerClaim resource accepts the following input properties:
- Auth
Server stringId The Application’s display name.
- Claim
Type string Specifies whether the claim is for an access token
"RESOURCE"or ID token"IDENTITY".- Value string
The value of the claim.
- Always
Include boolIn Token Specifies whether to include claims in token, by default is is set to
true.- Group
Filter stringType Specifies the type of group filter if
value_typeis"GROUPS". Can be set to one of the following"STARTS_WITH","EQUALS","CONTAINS","REGEX".- Name string
The name of the claim.
- Scopes List<string>
The list of scopes the auth server claim is tied to.
- Status string
The status of the application. It defaults to
"ACTIVE".- Value
Type string The type of value of the claim. It can be set to
"EXPRESSION"or"GROUPS". It defaults to"EXPRESSION".
- Auth
Server stringId The Application’s display name.
- Claim
Type string Specifies whether the claim is for an access token
"RESOURCE"or ID token"IDENTITY".- Value string
The value of the claim.
- Always
Include boolIn Token Specifies whether to include claims in token, by default is is set to
true.- Group
Filter stringType Specifies the type of group filter if
value_typeis"GROUPS". Can be set to one of the following"STARTS_WITH","EQUALS","CONTAINS","REGEX".- Name string
The name of the claim.
- Scopes []string
The list of scopes the auth server claim is tied to.
- Status string
The status of the application. It defaults to
"ACTIVE".- Value
Type string The type of value of the claim. It can be set to
"EXPRESSION"or"GROUPS". It defaults to"EXPRESSION".
- auth
Server stringId The Application’s display name.
- claim
Type string Specifies whether the claim is for an access token
"RESOURCE"or ID token"IDENTITY".- value string
The value of the claim.
- always
Include booleanIn Token Specifies whether to include claims in token, by default is is set to
true.- group
Filter stringType Specifies the type of group filter if
value_typeis"GROUPS". Can be set to one of the following"STARTS_WITH","EQUALS","CONTAINS","REGEX".- name string
The name of the claim.
- scopes string[]
The list of scopes the auth server claim is tied to.
- status string
The status of the application. It defaults to
"ACTIVE".- value
Type string The type of value of the claim. It can be set to
"EXPRESSION"or"GROUPS". It defaults to"EXPRESSION".
- auth_
server_ strid The Application’s display name.
- claim_
type str Specifies whether the claim is for an access token
"RESOURCE"or ID token"IDENTITY".- value str
The value of the claim.
- always_
include_ boolin_ token Specifies whether to include claims in token, by default is is set to
true.- group_
filter_ strtype Specifies the type of group filter if
value_typeis"GROUPS". Can be set to one of the following"STARTS_WITH","EQUALS","CONTAINS","REGEX".- name str
The name of the claim.
- scopes List[str]
The list of scopes the auth server claim is tied to.
- status str
The status of the application. It defaults to
"ACTIVE".- value_
type str The type of value of the claim. It can be set to
"EXPRESSION"or"GROUPS". It defaults to"EXPRESSION".
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerClaim resource produces the following output properties:
Look up an Existing ServerClaim Resource
Get an existing ServerClaim 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?: ServerClaimState, opts?: CustomResourceOptions): ServerClaimstatic get(resource_name, id, opts=None, always_include_in_token=None, auth_server_id=None, claim_type=None, group_filter_type=None, name=None, scopes=None, status=None, value=None, value_type=None, __props__=None);func GetServerClaim(ctx *Context, name string, id IDInput, state *ServerClaimState, opts ...ResourceOption) (*ServerClaim, error)public static ServerClaim Get(string name, Input<string> id, ServerClaimState? 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:
- Always
Include boolIn Token Specifies whether to include claims in token, by default is is set to
true.- Auth
Server stringId The Application’s display name.
- Claim
Type string Specifies whether the claim is for an access token
"RESOURCE"or ID token"IDENTITY".- Group
Filter stringType Specifies the type of group filter if
value_typeis"GROUPS". Can be set to one of the following"STARTS_WITH","EQUALS","CONTAINS","REGEX".- Name string
The name of the claim.
- Scopes List<string>
The list of scopes the auth server claim is tied to.
- Status string
The status of the application. It defaults to
"ACTIVE".- Value string
The value of the claim.
- Value
Type string The type of value of the claim. It can be set to
"EXPRESSION"or"GROUPS". It defaults to"EXPRESSION".
- Always
Include boolIn Token Specifies whether to include claims in token, by default is is set to
true.- Auth
Server stringId The Application’s display name.
- Claim
Type string Specifies whether the claim is for an access token
"RESOURCE"or ID token"IDENTITY".- Group
Filter stringType Specifies the type of group filter if
value_typeis"GROUPS". Can be set to one of the following"STARTS_WITH","EQUALS","CONTAINS","REGEX".- Name string
The name of the claim.
- Scopes []string
The list of scopes the auth server claim is tied to.
- Status string
The status of the application. It defaults to
"ACTIVE".- Value string
The value of the claim.
- Value
Type string The type of value of the claim. It can be set to
"EXPRESSION"or"GROUPS". It defaults to"EXPRESSION".
- always
Include booleanIn Token Specifies whether to include claims in token, by default is is set to
true.- auth
Server stringId The Application’s display name.
- claim
Type string Specifies whether the claim is for an access token
"RESOURCE"or ID token"IDENTITY".- group
Filter stringType Specifies the type of group filter if
value_typeis"GROUPS". Can be set to one of the following"STARTS_WITH","EQUALS","CONTAINS","REGEX".- name string
The name of the claim.
- scopes string[]
The list of scopes the auth server claim is tied to.
- status string
The status of the application. It defaults to
"ACTIVE".- value string
The value of the claim.
- value
Type string The type of value of the claim. It can be set to
"EXPRESSION"or"GROUPS". It defaults to"EXPRESSION".
- always_
include_ boolin_ token Specifies whether to include claims in token, by default is is set to
true.- auth_
server_ strid The Application’s display name.
- claim_
type str Specifies whether the claim is for an access token
"RESOURCE"or ID token"IDENTITY".- group_
filter_ strtype Specifies the type of group filter if
value_typeis"GROUPS". Can be set to one of the following"STARTS_WITH","EQUALS","CONTAINS","REGEX".- name str
The name of the claim.
- scopes List[str]
The list of scopes the auth server claim is tied to.
- status str
The status of the application. It defaults to
"ACTIVE".- value str
The value of the claim.
- value_
type str The type of value of the claim. It can be set to
"EXPRESSION"or"GROUPS". It defaults to"EXPRESSION".
Package Details
- Repository
- https://github.com/pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.