1. Packages
  2. Okta Provider
  3. API Docs
  4. getAuthServerClaims
Okta v4.16.0 published on Wednesday, Apr 9, 2025 by Pulumi

okta.getAuthServerClaims

Explore with Pulumi AI

Get a list of authorization server claims from Okta.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const test = okta.getAuthServerClaims({
    authServerId: "default",
});
Copy
import pulumi
import pulumi_okta as okta

test = okta.get_auth_server_claims(auth_server_id="default")
Copy
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.GetAuthServerClaims(ctx, &okta.GetAuthServerClaimsArgs{
			AuthServerId: "default",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;

return await Deployment.RunAsync(() => 
{
    var test = Okta.GetAuthServerClaims.Invoke(new()
    {
        AuthServerId = "default",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.OktaFunctions;
import com.pulumi.okta.inputs.GetAuthServerClaimsArgs;
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 test = OktaFunctions.getAuthServerClaims(GetAuthServerClaimsArgs.builder()
            .authServerId("default")
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: okta:getAuthServerClaims
      arguments:
        authServerId: default
Copy

Using getAuthServerClaims

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 getAuthServerClaims(args: GetAuthServerClaimsArgs, opts?: InvokeOptions): Promise<GetAuthServerClaimsResult>
function getAuthServerClaimsOutput(args: GetAuthServerClaimsOutputArgs, opts?: InvokeOptions): Output<GetAuthServerClaimsResult>
Copy
def get_auth_server_claims(auth_server_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetAuthServerClaimsResult
def get_auth_server_claims_output(auth_server_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetAuthServerClaimsResult]
Copy
func GetAuthServerClaims(ctx *Context, args *GetAuthServerClaimsArgs, opts ...InvokeOption) (*GetAuthServerClaimsResult, error)
func GetAuthServerClaimsOutput(ctx *Context, args *GetAuthServerClaimsOutputArgs, opts ...InvokeOption) GetAuthServerClaimsResultOutput
Copy

> Note: This function is named GetAuthServerClaims in the Go SDK.

public static class GetAuthServerClaims 
{
    public static Task<GetAuthServerClaimsResult> InvokeAsync(GetAuthServerClaimsArgs args, InvokeOptions? opts = null)
    public static Output<GetAuthServerClaimsResult> Invoke(GetAuthServerClaimsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAuthServerClaimsResult> getAuthServerClaims(GetAuthServerClaimsArgs args, InvokeOptions options)
public static Output<GetAuthServerClaimsResult> getAuthServerClaims(GetAuthServerClaimsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: okta:index/getAuthServerClaims:getAuthServerClaims
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AuthServerId This property is required. string
Auth server ID
AuthServerId This property is required. string
Auth server ID
authServerId This property is required. String
Auth server ID
authServerId This property is required. string
Auth server ID
auth_server_id This property is required. str
Auth server ID
authServerId This property is required. String
Auth server ID

getAuthServerClaims Result

The following output properties are available:

AuthServerId string
Auth server ID
Claims List<GetAuthServerClaimsClaim>
Collection of authorization server claims retrieved from Okta with the following properties.
Id string
The provider-assigned unique ID for this managed resource.
AuthServerId string
Auth server ID
Claims []GetAuthServerClaimsClaim
Collection of authorization server claims retrieved from Okta with the following properties.
Id string
The provider-assigned unique ID for this managed resource.
authServerId String
Auth server ID
claims List<GetAuthServerClaimsClaim>
Collection of authorization server claims retrieved from Okta with the following properties.
id String
The provider-assigned unique ID for this managed resource.
authServerId string
Auth server ID
claims GetAuthServerClaimsClaim[]
Collection of authorization server claims retrieved from Okta with the following properties.
id string
The provider-assigned unique ID for this managed resource.
auth_server_id str
Auth server ID
claims Sequence[GetAuthServerClaimsClaim]
Collection of authorization server claims retrieved from Okta with the following properties.
id str
The provider-assigned unique ID for this managed resource.
authServerId String
Auth server ID
claims List<Property Map>
Collection of authorization server claims retrieved from Okta with the following properties.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

GetAuthServerClaimsClaim

AlwaysIncludeInToken This property is required. bool
Specifies whether to include Claims in the token.
ClaimType This property is required. string
Specifies whether the Claim is for an access token (RESOURCE) or ID token (IDENTITY).
Id This property is required. string
ID of the claim.
Name This property is required. string
Name of the claim.
Scopes This property is required. List<string>
Specifies the scopes for this Claim.
Status This property is required. string
Status of the claim.
Value This property is required. string
Value of the claim.
ValueType This property is required. string
Specifies whether the Claim is an Okta EL expression (EXPRESSION), a set of groups (GROUPS), or a system claim (SYSTEM)
AlwaysIncludeInToken This property is required. bool
Specifies whether to include Claims in the token.
ClaimType This property is required. string
Specifies whether the Claim is for an access token (RESOURCE) or ID token (IDENTITY).
Id This property is required. string
ID of the claim.
Name This property is required. string
Name of the claim.
Scopes This property is required. []string
Specifies the scopes for this Claim.
Status This property is required. string
Status of the claim.
Value This property is required. string
Value of the claim.
ValueType This property is required. string
Specifies whether the Claim is an Okta EL expression (EXPRESSION), a set of groups (GROUPS), or a system claim (SYSTEM)
alwaysIncludeInToken This property is required. Boolean
Specifies whether to include Claims in the token.
claimType This property is required. String
Specifies whether the Claim is for an access token (RESOURCE) or ID token (IDENTITY).
id This property is required. String
ID of the claim.
name This property is required. String
Name of the claim.
scopes This property is required. List<String>
Specifies the scopes for this Claim.
status This property is required. String
Status of the claim.
value This property is required. String
Value of the claim.
valueType This property is required. String
Specifies whether the Claim is an Okta EL expression (EXPRESSION), a set of groups (GROUPS), or a system claim (SYSTEM)
alwaysIncludeInToken This property is required. boolean
Specifies whether to include Claims in the token.
claimType This property is required. string
Specifies whether the Claim is for an access token (RESOURCE) or ID token (IDENTITY).
id This property is required. string
ID of the claim.
name This property is required. string
Name of the claim.
scopes This property is required. string[]
Specifies the scopes for this Claim.
status This property is required. string
Status of the claim.
value This property is required. string
Value of the claim.
valueType This property is required. string
Specifies whether the Claim is an Okta EL expression (EXPRESSION), a set of groups (GROUPS), or a system claim (SYSTEM)
always_include_in_token This property is required. bool
Specifies whether to include Claims in the token.
claim_type This property is required. str
Specifies whether the Claim is for an access token (RESOURCE) or ID token (IDENTITY).
id This property is required. str
ID of the claim.
name This property is required. str
Name of the claim.
scopes This property is required. Sequence[str]
Specifies the scopes for this Claim.
status This property is required. str
Status of the claim.
value This property is required. str
Value of the claim.
value_type This property is required. str
Specifies whether the Claim is an Okta EL expression (EXPRESSION), a set of groups (GROUPS), or a system claim (SYSTEM)
alwaysIncludeInToken This property is required. Boolean
Specifies whether to include Claims in the token.
claimType This property is required. String
Specifies whether the Claim is for an access token (RESOURCE) or ID token (IDENTITY).
id This property is required. String
ID of the claim.
name This property is required. String
Name of the claim.
scopes This property is required. List<String>
Specifies the scopes for this Claim.
status This property is required. String
Status of the claim.
value This property is required. String
Value of the claim.
valueType This property is required. String
Specifies whether the Claim is an Okta EL expression (EXPRESSION), a set of groups (GROUPS), or a system claim (SYSTEM)

Package Details

Repository
Okta pulumi/pulumi-okta
License
Apache-2.0
Notes
This Pulumi package is based on the okta Terraform Provider.