Get OAuth 2.0 refresh token information for an authorization server client from Okta.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = okta.auth.getServerClients({
id: "oar123456abcdefghijklm",
authServerId: "aus123456abcdefghijklm",
clientId: "0oa123456abcdefghijklm",
});
import pulumi
import pulumi_okta as okta
example = okta.auth.get_server_clients(id="oar123456abcdefghijklm",
auth_server_id="aus123456abcdefghijklm",
client_id="0oa123456abcdefghijklm")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v6/go/okta/auth"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := auth.GetServerClients(ctx, &auth.GetServerClientsArgs{
Id: "oar123456abcdefghijklm",
AuthServerId: "aus123456abcdefghijklm",
ClientId: "0oa123456abcdefghijklm",
}, nil)
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 = Okta.Auth.GetServerClients.Invoke(new()
{
Id = "oar123456abcdefghijklm",
AuthServerId = "aus123456abcdefghijklm",
ClientId = "0oa123456abcdefghijklm",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.auth.AuthFunctions;
import com.pulumi.okta.auth.inputs.GetServerClientsArgs;
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 example = AuthFunctions.getServerClients(GetServerClientsArgs.builder()
.id("oar123456abcdefghijklm")
.authServerId("aus123456abcdefghijklm")
.clientId("0oa123456abcdefghijklm")
.build());
}
}
variables:
example:
fn::invoke:
function: okta:auth:getServerClients
arguments:
id: oar123456abcdefghijklm
authServerId: aus123456abcdefghijklm
clientId: 0oa123456abcdefghijklm
Using getServerClients
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 getServerClients(args: GetServerClientsArgs, opts?: InvokeOptions): Promise<GetServerClientsResult>
function getServerClientsOutput(args: GetServerClientsOutputArgs, opts?: InvokeOptions): Output<GetServerClientsResult>def get_server_clients(auth_server_id: Optional[str] = None,
client_id: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServerClientsResult
def get_server_clients_output(auth_server_id: Optional[pulumi.Input[str]] = None,
client_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServerClientsResult]func GetServerClients(ctx *Context, args *GetServerClientsArgs, opts ...InvokeOption) (*GetServerClientsResult, error)
func GetServerClientsOutput(ctx *Context, args *GetServerClientsOutputArgs, opts ...InvokeOption) GetServerClientsResultOutput> Note: This function is named GetServerClients in the Go SDK.
public static class GetServerClients
{
public static Task<GetServerClientsResult> InvokeAsync(GetServerClientsArgs args, InvokeOptions? opts = null)
public static Output<GetServerClientsResult> Invoke(GetServerClientsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServerClientsResult> getServerClients(GetServerClientsArgs args, InvokeOptions options)
public static Output<GetServerClientsResult> getServerClients(GetServerClientsArgs args, InvokeOptions options)
fn::invoke:
function: okta:auth/getServerClients:getServerClients
arguments:
# arguments dictionaryThe following arguments are supported:
- Auth
Server stringId - The ID of the authorization server.
- Client
Id string - The client ID of the app.
- Id string
- The ID of the token.
- Auth
Server stringId - The ID of the authorization server.
- Client
Id string - The client ID of the app.
- Id string
- The ID of the token.
- auth
Server StringId - The ID of the authorization server.
- client
Id String - The client ID of the app.
- id String
- The ID of the token.
- auth
Server stringId - The ID of the authorization server.
- client
Id string - The client ID of the app.
- id string
- The ID of the token.
- auth_
server_ strid - The ID of the authorization server.
- client_
id str - The client ID of the app.
- id str
- The ID of the token.
- auth
Server StringId - The ID of the authorization server.
- client
Id String - The client ID of the app.
- id String
- The ID of the token.
getServerClients Result
The following output properties are available:
- Auth
Server stringId - The ID of the authorization server.
- Client
Id string - The client ID of the app.
- Created string
- Timestamp when the object was created.
- Expires
At string - Expiration time of the OAuth 2.0 Token.
- Id string
- The ID of the token.
- Issuer string
- The complete URL of the authorization server that issued the Token
- Last
Updated string - Timestamp when the object was last updated.
- Scopes List<string>
- The scope names attached to the Token.
- Status string
- The status URI of the OAuth 2.0 application.
- User
Id string - The ID of the user associated with the Token.
- Auth
Server stringId - The ID of the authorization server.
- Client
Id string - The client ID of the app.
- Created string
- Timestamp when the object was created.
- Expires
At string - Expiration time of the OAuth 2.0 Token.
- Id string
- The ID of the token.
- Issuer string
- The complete URL of the authorization server that issued the Token
- Last
Updated string - Timestamp when the object was last updated.
- Scopes []string
- The scope names attached to the Token.
- Status string
- The status URI of the OAuth 2.0 application.
- User
Id string - The ID of the user associated with the Token.
- auth
Server StringId - The ID of the authorization server.
- client
Id String - The client ID of the app.
- created String
- Timestamp when the object was created.
- expires
At String - Expiration time of the OAuth 2.0 Token.
- id String
- The ID of the token.
- issuer String
- The complete URL of the authorization server that issued the Token
- last
Updated String - Timestamp when the object was last updated.
- scopes List<String>
- The scope names attached to the Token.
- status String
- The status URI of the OAuth 2.0 application.
- user
Id String - The ID of the user associated with the Token.
- auth
Server stringId - The ID of the authorization server.
- client
Id string - The client ID of the app.
- created string
- Timestamp when the object was created.
- expires
At string - Expiration time of the OAuth 2.0 Token.
- id string
- The ID of the token.
- issuer string
- The complete URL of the authorization server that issued the Token
- last
Updated string - Timestamp when the object was last updated.
- scopes string[]
- The scope names attached to the Token.
- status string
- The status URI of the OAuth 2.0 application.
- user
Id string - The ID of the user associated with the Token.
- auth_
server_ strid - The ID of the authorization server.
- client_
id str - The client ID of the app.
- created str
- Timestamp when the object was created.
- expires_
at str - Expiration time of the OAuth 2.0 Token.
- id str
- The ID of the token.
- issuer str
- The complete URL of the authorization server that issued the Token
- last_
updated str - Timestamp when the object was last updated.
- scopes Sequence[str]
- The scope names attached to the Token.
- status str
- The status URI of the OAuth 2.0 application.
- user_
id str - The ID of the user associated with the Token.
- auth
Server StringId - The ID of the authorization server.
- client
Id String - The client ID of the app.
- created String
- Timestamp when the object was created.
- expires
At String - Expiration time of the OAuth 2.0 Token.
- id String
- The ID of the token.
- issuer String
- The complete URL of the authorization server that issued the Token
- last
Updated String - Timestamp when the object was last updated.
- scopes List<String>
- The scope names attached to the Token.
- status String
- The status URI of the OAuth 2.0 application.
- user
Id String - The ID of the user associated with the Token.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.
