1. Packages
  2. Konnect Provider
  3. API Docs
  4. getGatewayPluginOauth2
konnect 2.5.0 published on Tuesday, Apr 15, 2025 by kong

konnect.getGatewayPluginOauth2

Explore with Pulumi AI

Using getGatewayPluginOauth2

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 getGatewayPluginOauth2(args: GetGatewayPluginOauth2Args, opts?: InvokeOptions): Promise<GetGatewayPluginOauth2Result>
function getGatewayPluginOauth2Output(args: GetGatewayPluginOauth2OutputArgs, opts?: InvokeOptions): Output<GetGatewayPluginOauth2Result>
Copy
def get_gateway_plugin_oauth2(control_plane_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetGatewayPluginOauth2Result
def get_gateway_plugin_oauth2_output(control_plane_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetGatewayPluginOauth2Result]
Copy
func LookupGatewayPluginOauth2(ctx *Context, args *LookupGatewayPluginOauth2Args, opts ...InvokeOption) (*LookupGatewayPluginOauth2Result, error)
func LookupGatewayPluginOauth2Output(ctx *Context, args *LookupGatewayPluginOauth2OutputArgs, opts ...InvokeOption) LookupGatewayPluginOauth2ResultOutput
Copy

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

public static class GetGatewayPluginOauth2 
{
    public static Task<GetGatewayPluginOauth2Result> InvokeAsync(GetGatewayPluginOauth2Args args, InvokeOptions? opts = null)
    public static Output<GetGatewayPluginOauth2Result> Invoke(GetGatewayPluginOauth2InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetGatewayPluginOauth2Result> getGatewayPluginOauth2(GetGatewayPluginOauth2Args args, InvokeOptions options)
public static Output<GetGatewayPluginOauth2Result> getGatewayPluginOauth2(GetGatewayPluginOauth2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: konnect:index/getGatewayPluginOauth2:getGatewayPluginOauth2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ControlPlaneId This property is required. string
ControlPlaneId This property is required. string
controlPlaneId This property is required. String
controlPlaneId This property is required. string
control_plane_id This property is required. str
controlPlaneId This property is required. String

getGatewayPluginOauth2 Result

The following output properties are available:

Supporting Types

GetGatewayPluginOauth2Config

AcceptHttpIfAlreadyTerminated This property is required. bool
Accepts HTTPs requests that have already been terminated by a proxy or load balancer.
Anonymous This property is required. string
An optional string (consumer UUID or username) value to use as an “anonymous” consumer if authentication fails.
AuthHeaderName This property is required. string
The name of the header that is supposed to carry the access token.
EnableAuthorizationCode This property is required. bool
An optional boolean value to enable the three-legged Authorization Code flow (RFC 6742 Section 4.1).
EnableClientCredentials This property is required. bool
An optional boolean value to enable the Client Credentials Grant flow (RFC 6742 Section 4.4).
EnableImplicitGrant This property is required. bool
An optional boolean value to enable the Implicit Grant flow which allows to provision a token as a result of the authorization process (RFC 6742 Section 4.2).
EnablePasswordGrant This property is required. bool
An optional boolean value to enable the Resource Owner Password Credentials Grant flow (RFC 6742 Section 4.3).
GlobalCredentials This property is required. bool
An optional boolean value that allows using the same OAuth credentials generated by the plugin with any other service whose OAuth 2.0 plugin configuration also has config.global_credentials=true.
HideCredentials This property is required. bool
An optional boolean value telling the plugin to show or hide the credential from the upstream service.
MandatoryScope This property is required. bool
An optional boolean value telling the plugin to require at least one scope to be authorized by the end user.
PersistentRefreshToken This property is required. bool
Pkce This property is required. string
Specifies a mode of how the Proof Key for Code Exchange (PKCE) should be handled by the plugin.
ProvisionKey This property is required. string
The unique key the plugin has generated when it has been added to the Service.
Realm This property is required. string
When authentication fails the plugin sends WWW-Authenticate header with realm attribute value.
RefreshTokenTtl This property is required. double
Time-to-live value for data
ReuseRefreshToken This property is required. bool
An optional boolean value that indicates whether an OAuth refresh token is reused when refreshing an access token.
Scopes This property is required. List<string>
Describes an array of scope names that will be available to the end user. If mandatory_scope is set to true, then scopes are required.
TokenExpiration This property is required. double
An optional integer value telling the plugin how many seconds a token should last, after which the client will need to refresh the token. Set to 0 to disable the expiration.
AcceptHttpIfAlreadyTerminated This property is required. bool
Accepts HTTPs requests that have already been terminated by a proxy or load balancer.
Anonymous This property is required. string
An optional string (consumer UUID or username) value to use as an “anonymous” consumer if authentication fails.
AuthHeaderName This property is required. string
The name of the header that is supposed to carry the access token.
EnableAuthorizationCode This property is required. bool
An optional boolean value to enable the three-legged Authorization Code flow (RFC 6742 Section 4.1).
EnableClientCredentials This property is required. bool
An optional boolean value to enable the Client Credentials Grant flow (RFC 6742 Section 4.4).
EnableImplicitGrant This property is required. bool
An optional boolean value to enable the Implicit Grant flow which allows to provision a token as a result of the authorization process (RFC 6742 Section 4.2).
EnablePasswordGrant This property is required. bool
An optional boolean value to enable the Resource Owner Password Credentials Grant flow (RFC 6742 Section 4.3).
GlobalCredentials This property is required. bool
An optional boolean value that allows using the same OAuth credentials generated by the plugin with any other service whose OAuth 2.0 plugin configuration also has config.global_credentials=true.
HideCredentials This property is required. bool
An optional boolean value telling the plugin to show or hide the credential from the upstream service.
MandatoryScope This property is required. bool
An optional boolean value telling the plugin to require at least one scope to be authorized by the end user.
PersistentRefreshToken This property is required. bool
Pkce This property is required. string
Specifies a mode of how the Proof Key for Code Exchange (PKCE) should be handled by the plugin.
ProvisionKey This property is required. string
The unique key the plugin has generated when it has been added to the Service.
Realm This property is required. string
When authentication fails the plugin sends WWW-Authenticate header with realm attribute value.
RefreshTokenTtl This property is required. float64
Time-to-live value for data
ReuseRefreshToken This property is required. bool
An optional boolean value that indicates whether an OAuth refresh token is reused when refreshing an access token.
Scopes This property is required. []string
Describes an array of scope names that will be available to the end user. If mandatory_scope is set to true, then scopes are required.
TokenExpiration This property is required. float64
An optional integer value telling the plugin how many seconds a token should last, after which the client will need to refresh the token. Set to 0 to disable the expiration.
acceptHttpIfAlreadyTerminated This property is required. Boolean
Accepts HTTPs requests that have already been terminated by a proxy or load balancer.
anonymous This property is required. String
An optional string (consumer UUID or username) value to use as an “anonymous” consumer if authentication fails.
authHeaderName This property is required. String
The name of the header that is supposed to carry the access token.
enableAuthorizationCode This property is required. Boolean
An optional boolean value to enable the three-legged Authorization Code flow (RFC 6742 Section 4.1).
enableClientCredentials This property is required. Boolean
An optional boolean value to enable the Client Credentials Grant flow (RFC 6742 Section 4.4).
enableImplicitGrant This property is required. Boolean
An optional boolean value to enable the Implicit Grant flow which allows to provision a token as a result of the authorization process (RFC 6742 Section 4.2).
enablePasswordGrant This property is required. Boolean
An optional boolean value to enable the Resource Owner Password Credentials Grant flow (RFC 6742 Section 4.3).
globalCredentials This property is required. Boolean
An optional boolean value that allows using the same OAuth credentials generated by the plugin with any other service whose OAuth 2.0 plugin configuration also has config.global_credentials=true.
hideCredentials This property is required. Boolean
An optional boolean value telling the plugin to show or hide the credential from the upstream service.
mandatoryScope This property is required. Boolean
An optional boolean value telling the plugin to require at least one scope to be authorized by the end user.
persistentRefreshToken This property is required. Boolean
pkce This property is required. String
Specifies a mode of how the Proof Key for Code Exchange (PKCE) should be handled by the plugin.
provisionKey This property is required. String
The unique key the plugin has generated when it has been added to the Service.
realm This property is required. String
When authentication fails the plugin sends WWW-Authenticate header with realm attribute value.
refreshTokenTtl This property is required. Double
Time-to-live value for data
reuseRefreshToken This property is required. Boolean
An optional boolean value that indicates whether an OAuth refresh token is reused when refreshing an access token.
scopes This property is required. List<String>
Describes an array of scope names that will be available to the end user. If mandatory_scope is set to true, then scopes are required.
tokenExpiration This property is required. Double
An optional integer value telling the plugin how many seconds a token should last, after which the client will need to refresh the token. Set to 0 to disable the expiration.
acceptHttpIfAlreadyTerminated This property is required. boolean
Accepts HTTPs requests that have already been terminated by a proxy or load balancer.
anonymous This property is required. string
An optional string (consumer UUID or username) value to use as an “anonymous” consumer if authentication fails.
authHeaderName This property is required. string
The name of the header that is supposed to carry the access token.
enableAuthorizationCode This property is required. boolean
An optional boolean value to enable the three-legged Authorization Code flow (RFC 6742 Section 4.1).
enableClientCredentials This property is required. boolean
An optional boolean value to enable the Client Credentials Grant flow (RFC 6742 Section 4.4).
enableImplicitGrant This property is required. boolean
An optional boolean value to enable the Implicit Grant flow which allows to provision a token as a result of the authorization process (RFC 6742 Section 4.2).
enablePasswordGrant This property is required. boolean
An optional boolean value to enable the Resource Owner Password Credentials Grant flow (RFC 6742 Section 4.3).
globalCredentials This property is required. boolean
An optional boolean value that allows using the same OAuth credentials generated by the plugin with any other service whose OAuth 2.0 plugin configuration also has config.global_credentials=true.
hideCredentials This property is required. boolean
An optional boolean value telling the plugin to show or hide the credential from the upstream service.
mandatoryScope This property is required. boolean
An optional boolean value telling the plugin to require at least one scope to be authorized by the end user.
persistentRefreshToken This property is required. boolean
pkce This property is required. string
Specifies a mode of how the Proof Key for Code Exchange (PKCE) should be handled by the plugin.
provisionKey This property is required. string
The unique key the plugin has generated when it has been added to the Service.
realm This property is required. string
When authentication fails the plugin sends WWW-Authenticate header with realm attribute value.
refreshTokenTtl This property is required. number
Time-to-live value for data
reuseRefreshToken This property is required. boolean
An optional boolean value that indicates whether an OAuth refresh token is reused when refreshing an access token.
scopes This property is required. string[]
Describes an array of scope names that will be available to the end user. If mandatory_scope is set to true, then scopes are required.
tokenExpiration This property is required. number
An optional integer value telling the plugin how many seconds a token should last, after which the client will need to refresh the token. Set to 0 to disable the expiration.
accept_http_if_already_terminated This property is required. bool
Accepts HTTPs requests that have already been terminated by a proxy or load balancer.
anonymous This property is required. str
An optional string (consumer UUID or username) value to use as an “anonymous” consumer if authentication fails.
auth_header_name This property is required. str
The name of the header that is supposed to carry the access token.
enable_authorization_code This property is required. bool
An optional boolean value to enable the three-legged Authorization Code flow (RFC 6742 Section 4.1).
enable_client_credentials This property is required. bool
An optional boolean value to enable the Client Credentials Grant flow (RFC 6742 Section 4.4).
enable_implicit_grant This property is required. bool
An optional boolean value to enable the Implicit Grant flow which allows to provision a token as a result of the authorization process (RFC 6742 Section 4.2).
enable_password_grant This property is required. bool
An optional boolean value to enable the Resource Owner Password Credentials Grant flow (RFC 6742 Section 4.3).
global_credentials This property is required. bool
An optional boolean value that allows using the same OAuth credentials generated by the plugin with any other service whose OAuth 2.0 plugin configuration also has config.global_credentials=true.
hide_credentials This property is required. bool
An optional boolean value telling the plugin to show or hide the credential from the upstream service.
mandatory_scope This property is required. bool
An optional boolean value telling the plugin to require at least one scope to be authorized by the end user.
persistent_refresh_token This property is required. bool
pkce This property is required. str
Specifies a mode of how the Proof Key for Code Exchange (PKCE) should be handled by the plugin.
provision_key This property is required. str
The unique key the plugin has generated when it has been added to the Service.
realm This property is required. str
When authentication fails the plugin sends WWW-Authenticate header with realm attribute value.
refresh_token_ttl This property is required. float
Time-to-live value for data
reuse_refresh_token This property is required. bool
An optional boolean value that indicates whether an OAuth refresh token is reused when refreshing an access token.
scopes This property is required. Sequence[str]
Describes an array of scope names that will be available to the end user. If mandatory_scope is set to true, then scopes are required.
token_expiration This property is required. float
An optional integer value telling the plugin how many seconds a token should last, after which the client will need to refresh the token. Set to 0 to disable the expiration.
acceptHttpIfAlreadyTerminated This property is required. Boolean
Accepts HTTPs requests that have already been terminated by a proxy or load balancer.
anonymous This property is required. String
An optional string (consumer UUID or username) value to use as an “anonymous” consumer if authentication fails.
authHeaderName This property is required. String
The name of the header that is supposed to carry the access token.
enableAuthorizationCode This property is required. Boolean
An optional boolean value to enable the three-legged Authorization Code flow (RFC 6742 Section 4.1).
enableClientCredentials This property is required. Boolean
An optional boolean value to enable the Client Credentials Grant flow (RFC 6742 Section 4.4).
enableImplicitGrant This property is required. Boolean
An optional boolean value to enable the Implicit Grant flow which allows to provision a token as a result of the authorization process (RFC 6742 Section 4.2).
enablePasswordGrant This property is required. Boolean
An optional boolean value to enable the Resource Owner Password Credentials Grant flow (RFC 6742 Section 4.3).
globalCredentials This property is required. Boolean
An optional boolean value that allows using the same OAuth credentials generated by the plugin with any other service whose OAuth 2.0 plugin configuration also has config.global_credentials=true.
hideCredentials This property is required. Boolean
An optional boolean value telling the plugin to show or hide the credential from the upstream service.
mandatoryScope This property is required. Boolean
An optional boolean value telling the plugin to require at least one scope to be authorized by the end user.
persistentRefreshToken This property is required. Boolean
pkce This property is required. String
Specifies a mode of how the Proof Key for Code Exchange (PKCE) should be handled by the plugin.
provisionKey This property is required. String
The unique key the plugin has generated when it has been added to the Service.
realm This property is required. String
When authentication fails the plugin sends WWW-Authenticate header with realm attribute value.
refreshTokenTtl This property is required. Number
Time-to-live value for data
reuseRefreshToken This property is required. Boolean
An optional boolean value that indicates whether an OAuth refresh token is reused when refreshing an access token.
scopes This property is required. List<String>
Describes an array of scope names that will be available to the end user. If mandatory_scope is set to true, then scopes are required.
tokenExpiration This property is required. Number
An optional integer value telling the plugin how many seconds a token should last, after which the client will need to refresh the token. Set to 0 to disable the expiration.

GetGatewayPluginOauth2Ordering

After This property is required. GetGatewayPluginOauth2OrderingAfter
Before This property is required. GetGatewayPluginOauth2OrderingBefore
After This property is required. GetGatewayPluginOauth2OrderingAfter
Before This property is required. GetGatewayPluginOauth2OrderingBefore
after This property is required. GetGatewayPluginOauth2OrderingAfter
before This property is required. GetGatewayPluginOauth2OrderingBefore
after This property is required. GetGatewayPluginOauth2OrderingAfter
before This property is required. GetGatewayPluginOauth2OrderingBefore
after This property is required. GetGatewayPluginOauth2OrderingAfter
before This property is required. GetGatewayPluginOauth2OrderingBefore
after This property is required. Property Map
before This property is required. Property Map

GetGatewayPluginOauth2OrderingAfter

Accesses This property is required. List<string>
Accesses This property is required. []string
accesses This property is required. List<String>
accesses This property is required. string[]
accesses This property is required. Sequence[str]
accesses This property is required. List<String>

GetGatewayPluginOauth2OrderingBefore

Accesses This property is required. List<string>
Accesses This property is required. []string
accesses This property is required. List<String>
accesses This property is required. string[]
accesses This property is required. Sequence[str]
accesses This property is required. List<String>

GetGatewayPluginOauth2Route

Id This property is required. string
Id This property is required. string
id This property is required. String
id This property is required. string
id This property is required. str
id This property is required. String

GetGatewayPluginOauth2Service

Id This property is required. string
Id This property is required. string
id This property is required. String
id This property is required. string
id This property is required. str
id This property is required. String

Package Details

Repository
konnect kong/terraform-provider-konnect
License
Notes
This Pulumi package is based on the konnect Terraform Provider.