Okta v4.11.0 published on Tuesday, Sep 17, 2024 by Pulumi
okta.app.getOauth
Explore with Pulumi AI
Get a OIDC application from Okta.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const test = okta.app.getOauth({
label: "Example App",
});
import pulumi
import pulumi_okta as okta
test = okta.app.get_oauth(label="Example App")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/app"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := app.GetOauth(ctx, &app.GetOauthArgs{
Label: pulumi.StringRef("Example App"),
}, 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 test = Okta.App.GetOauth.Invoke(new()
{
Label = "Example App",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.app.AppFunctions;
import com.pulumi.okta.app.inputs.GetOauthArgs;
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 = AppFunctions.getOauth(GetOauthArgs.builder()
.label("Example App")
.build());
}
}
variables:
test:
fn::invoke:
Function: okta:app:getOauth
Arguments:
label: Example App
Using getOauth
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 getOauth(args: GetOauthArgs, opts?: InvokeOptions): Promise<GetOauthResult>
function getOauthOutput(args: GetOauthOutputArgs, opts?: InvokeOptions): Output<GetOauthResult>
def get_oauth(active_only: Optional[bool] = None,
id: Optional[str] = None,
label: Optional[str] = None,
label_prefix: Optional[str] = None,
skip_groups: Optional[bool] = None,
skip_users: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetOauthResult
def get_oauth_output(active_only: Optional[pulumi.Input[bool]] = None,
id: Optional[pulumi.Input[str]] = None,
label: Optional[pulumi.Input[str]] = None,
label_prefix: Optional[pulumi.Input[str]] = None,
skip_groups: Optional[pulumi.Input[bool]] = None,
skip_users: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOauthResult]
func GetOauth(ctx *Context, args *GetOauthArgs, opts ...InvokeOption) (*GetOauthResult, error)
func GetOauthOutput(ctx *Context, args *GetOauthOutputArgs, opts ...InvokeOption) GetOauthResultOutput
> Note: This function is named GetOauth
in the Go SDK.
public static class GetOauth
{
public static Task<GetOauthResult> InvokeAsync(GetOauthArgs args, InvokeOptions? opts = null)
public static Output<GetOauthResult> Invoke(GetOauthInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOauthResult> getOauth(GetOauthArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: okta:app/getOauth:getOauth
arguments:
# arguments dictionary
The following arguments are supported:
- Active
Only bool - Search only ACTIVE applications.
- Id string
- Id of application to retrieve, conflicts with label and label_prefix.
- Label string
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- Label
Prefix string - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- Skip
Groups bool - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- Skip
Users bool - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
- Active
Only bool - Search only ACTIVE applications.
- Id string
- Id of application to retrieve, conflicts with label and label_prefix.
- Label string
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- Label
Prefix string - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- Skip
Groups bool - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- Skip
Users bool - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
- active
Only Boolean - Search only ACTIVE applications.
- id String
- Id of application to retrieve, conflicts with label and label_prefix.
- label String
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- label
Prefix String - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- skip
Groups Boolean - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- skip
Users Boolean - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
- active
Only boolean - Search only ACTIVE applications.
- id string
- Id of application to retrieve, conflicts with label and label_prefix.
- label string
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- label
Prefix string - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- skip
Groups boolean - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- skip
Users boolean - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
- active_
only bool - Search only ACTIVE applications.
- id str
- Id of application to retrieve, conflicts with label and label_prefix.
- label str
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- label_
prefix str - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- skip_
groups bool - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- skip_
users bool - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
- active
Only Boolean - Search only ACTIVE applications.
- id String
- Id of application to retrieve, conflicts with label and label_prefix.
- label String
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- label
Prefix String - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- skip
Groups Boolean - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- skip
Users Boolean - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
getOauth Result
The following output properties are available:
- Auto
Submit boolToolbar - Display auto submit toolbar
- Client
Id string - OAuth client ID
- Client
Secret string - OAuth client secret
- Client
Uri string - URI to a web page providing information about the client.
- Grant
Types List<string> - List of OAuth 2.0 grant types
- Hide
Ios bool - Do not display application icon on mobile app
- Hide
Web bool - Do not display application icon to users
- Links string
- Discoverable resources related to the app
- Login
Mode string - The type of Idp-Initiated login that the client supports, if any
- Login
Scopes List<string> - List of scopes to use for the request when 'login_mode' == OKTA
- Login
Uri string - URI that initiates login.
- Logo
Uri string - URI that references a logo for the client.
- Name string
- Name of application.
- Policy
Uri string - URI to web page providing client policy document.
- Post
Logout List<string>Redirect Uris - List of URIs for redirection after logout
- Redirect
Uris List<string> - List of URIs for use in the redirect-based flow.
- Response
Types List<string> - List of OAuth 2.0 response type strings.
- Status string
- Status of application.
- Type string
- The type of OAuth application.
- Wildcard
Redirect string - Indicates if the client is allowed to use wildcard matching of redirect_uris
- Active
Only bool - Search only ACTIVE applications.
- Id string
- Id of application to retrieve, conflicts with label and label_prefix.
- Label string
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- Label
Prefix string - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- Skip
Groups bool - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- Skip
Users bool - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
- Auto
Submit boolToolbar - Display auto submit toolbar
- Client
Id string - OAuth client ID
- Client
Secret string - OAuth client secret
- Client
Uri string - URI to a web page providing information about the client.
- Grant
Types []string - List of OAuth 2.0 grant types
- Hide
Ios bool - Do not display application icon on mobile app
- Hide
Web bool - Do not display application icon to users
- Links string
- Discoverable resources related to the app
- Login
Mode string - The type of Idp-Initiated login that the client supports, if any
- Login
Scopes []string - List of scopes to use for the request when 'login_mode' == OKTA
- Login
Uri string - URI that initiates login.
- Logo
Uri string - URI that references a logo for the client.
- Name string
- Name of application.
- Policy
Uri string - URI to web page providing client policy document.
- Post
Logout []stringRedirect Uris - List of URIs for redirection after logout
- Redirect
Uris []string - List of URIs for use in the redirect-based flow.
- Response
Types []string - List of OAuth 2.0 response type strings.
- Status string
- Status of application.
- Type string
- The type of OAuth application.
- Wildcard
Redirect string - Indicates if the client is allowed to use wildcard matching of redirect_uris
- Active
Only bool - Search only ACTIVE applications.
- Id string
- Id of application to retrieve, conflicts with label and label_prefix.
- Label string
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- Label
Prefix string - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- Skip
Groups bool - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- Skip
Users bool - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
- auto
Submit BooleanToolbar - Display auto submit toolbar
- client
Id String - OAuth client ID
- client
Secret String - OAuth client secret
- client
Uri String - URI to a web page providing information about the client.
- grant
Types List<String> - List of OAuth 2.0 grant types
- hide
Ios Boolean - Do not display application icon on mobile app
- hide
Web Boolean - Do not display application icon to users
- links String
- Discoverable resources related to the app
- login
Mode String - The type of Idp-Initiated login that the client supports, if any
- login
Scopes List<String> - List of scopes to use for the request when 'login_mode' == OKTA
- login
Uri String - URI that initiates login.
- logo
Uri String - URI that references a logo for the client.
- name String
- Name of application.
- policy
Uri String - URI to web page providing client policy document.
- post
Logout List<String>Redirect Uris - List of URIs for redirection after logout
- redirect
Uris List<String> - List of URIs for use in the redirect-based flow.
- response
Types List<String> - List of OAuth 2.0 response type strings.
- status String
- Status of application.
- type String
- The type of OAuth application.
- wildcard
Redirect String - Indicates if the client is allowed to use wildcard matching of redirect_uris
- active
Only Boolean - Search only ACTIVE applications.
- id String
- Id of application to retrieve, conflicts with label and label_prefix.
- label String
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- label
Prefix String - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- skip
Groups Boolean - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- skip
Users Boolean - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
- auto
Submit booleanToolbar - Display auto submit toolbar
- client
Id string - OAuth client ID
- client
Secret string - OAuth client secret
- client
Uri string - URI to a web page providing information about the client.
- grant
Types string[] - List of OAuth 2.0 grant types
- hide
Ios boolean - Do not display application icon on mobile app
- hide
Web boolean - Do not display application icon to users
- links string
- Discoverable resources related to the app
- login
Mode string - The type of Idp-Initiated login that the client supports, if any
- login
Scopes string[] - List of scopes to use for the request when 'login_mode' == OKTA
- login
Uri string - URI that initiates login.
- logo
Uri string - URI that references a logo for the client.
- name string
- Name of application.
- policy
Uri string - URI to web page providing client policy document.
- post
Logout string[]Redirect Uris - List of URIs for redirection after logout
- redirect
Uris string[] - List of URIs for use in the redirect-based flow.
- response
Types string[] - List of OAuth 2.0 response type strings.
- status string
- Status of application.
- type string
- The type of OAuth application.
- wildcard
Redirect string - Indicates if the client is allowed to use wildcard matching of redirect_uris
- active
Only boolean - Search only ACTIVE applications.
- id string
- Id of application to retrieve, conflicts with label and label_prefix.
- label string
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- label
Prefix string - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- skip
Groups boolean - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- skip
Users boolean - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
- auto_
submit_ booltoolbar - Display auto submit toolbar
- client_
id str - OAuth client ID
- client_
secret str - OAuth client secret
- client_
uri str - URI to a web page providing information about the client.
- grant_
types Sequence[str] - List of OAuth 2.0 grant types
- hide_
ios bool - Do not display application icon on mobile app
- hide_
web bool - Do not display application icon to users
- links str
- Discoverable resources related to the app
- login_
mode str - The type of Idp-Initiated login that the client supports, if any
- login_
scopes Sequence[str] - List of scopes to use for the request when 'login_mode' == OKTA
- login_
uri str - URI that initiates login.
- logo_
uri str - URI that references a logo for the client.
- name str
- Name of application.
- policy_
uri str - URI to web page providing client policy document.
- post_
logout_ Sequence[str]redirect_ uris - List of URIs for redirection after logout
- redirect_
uris Sequence[str] - List of URIs for use in the redirect-based flow.
- response_
types Sequence[str] - List of OAuth 2.0 response type strings.
- status str
- Status of application.
- type str
- The type of OAuth application.
- wildcard_
redirect str - Indicates if the client is allowed to use wildcard matching of redirect_uris
- active_
only bool - Search only ACTIVE applications.
- id str
- Id of application to retrieve, conflicts with label and label_prefix.
- label str
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- label_
prefix str - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- skip_
groups bool - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- skip_
users bool - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
- auto
Submit BooleanToolbar - Display auto submit toolbar
- client
Id String - OAuth client ID
- client
Secret String - OAuth client secret
- client
Uri String - URI to a web page providing information about the client.
- grant
Types List<String> - List of OAuth 2.0 grant types
- hide
Ios Boolean - Do not display application icon on mobile app
- hide
Web Boolean - Do not display application icon to users
- links String
- Discoverable resources related to the app
- login
Mode String - The type of Idp-Initiated login that the client supports, if any
- login
Scopes List<String> - List of scopes to use for the request when 'login_mode' == OKTA
- login
Uri String - URI that initiates login.
- logo
Uri String - URI that references a logo for the client.
- name String
- Name of application.
- policy
Uri String - URI to web page providing client policy document.
- post
Logout List<String>Redirect Uris - List of URIs for redirection after logout
- redirect
Uris List<String> - List of URIs for use in the redirect-based flow.
- response
Types List<String> - List of OAuth 2.0 response type strings.
- status String
- Status of application.
- type String
- The type of OAuth application.
- wildcard
Redirect String - Indicates if the client is allowed to use wildcard matching of redirect_uris
- active
Only Boolean - Search only ACTIVE applications.
- id String
- Id of application to retrieve, conflicts with label and label_prefix.
- label String
- The label of the app to retrieve, conflicts with label_prefix and id. Label uses the ?q=\n\n query parameter exposed by Okta's List Apps API. The API will search both name and label using that query. Therefore similarily named and labeled apps may be returned in the query and have the unitended result of associating the wrong app with this data source. See: https://developer.okta.com/docs/reference/api/apps/#list-applications
- label
Prefix String - Label prefix of the app to retrieve, conflicts with label and id. This will tell the provider to do a starts with query as opposed to an equals query.
- skip
Groups Boolean - Ignore groups sync. This is a temporary solution until 'groups' field is supported in all the app-like resources
- skip
Users Boolean - Ignore users sync. This is a temporary solution until 'users' field is supported in all the app-like resources
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.