Package com.ngrok.definitions
Class EndpointOidc.Builder
java.lang.Object
com.ngrok.definitions.EndpointOidc.Builder
- Enclosing class:
- EndpointOidc
Builder class for
EndpointOidc
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs theEndpointOidc
instance.The OIDC app's client ID and OIDC audience.The OIDC app's client ID and OIDC audience.clientSecret
(String clientSecret) The OIDC app's client secret.clientSecret
(Optional<String> clientSecret) The OIDC app's client secret.cookiePrefix
(String cookiePrefix) the prefix of the session cookie that ngrok sets on the http client to cache authentication.cookiePrefix
(Optional<String> cookiePrefix) the prefix of the session cookie that ngrok sets on the http client to cache authentication.enabled
(boolean enabled) true
if the module will be applied to traffic,false
to disable.true
if the module will be applied to traffic,false
to disable.inactivityTimeout
(long inactivityTimeout) Integer number of seconds of inactivity after which if the user has not accessed the endpoint, their session will time out and they will be forced to reauthenticate.inactivityTimeout
(Optional<Long> inactivityTimeout) Integer number of seconds of inactivity after which if the user has not accessed the endpoint, their session will time out and they will be forced to reauthenticate.URL of the OIDC "OpenID provider".URL of the OIDC "OpenID provider".maximumDuration
(Duration maximumDuration) Integer number of seconds of the maximum duration of an authenticated session.maximumDuration
(Optional<Duration> maximumDuration) Integer number of seconds of the maximum duration of an authenticated session.optionsPassthrough
(boolean optionsPassthrough) Do not enforce authentication on HTTP OPTIONS requests.optionsPassthrough
(Optional<Boolean> optionsPassthrough) Do not enforce authentication on HTTP OPTIONS requests.The set of scopes to request from the OIDC identity provider.The set of scopes to request from the OIDC identity provider.
-
Method Details
-
enabled
true
if the module will be applied to traffic,false
to disable. defaulttrue
if unspecified- Parameters:
enabled
- the value of theenabled
parameter as aboolean
- Returns:
- this builder instance
-
enabled
true
if the module will be applied to traffic,false
to disable. defaulttrue
if unspecified- Parameters:
enabled
- the value of theenabled
parameter as aboolean
, wrapped in anOptional
- Returns:
- this builder instance
-
optionsPassthrough
Do not enforce authentication on HTTP OPTIONS requests. necessary if you are supporting CORS.- Parameters:
optionsPassthrough
- the value of theoptions_passthrough
parameter as aboolean
- Returns:
- this builder instance
-
optionsPassthrough
Do not enforce authentication on HTTP OPTIONS requests. necessary if you are supporting CORS.- Parameters:
optionsPassthrough
- the value of theoptions_passthrough
parameter as aboolean
, wrapped in anOptional
- Returns:
- this builder instance
-
cookiePrefix
the prefix of the session cookie that ngrok sets on the http client to cache authentication. default is 'ngrok.'- Parameters:
cookiePrefix
- the value of thecookie_prefix
parameter as aString
- Returns:
- this builder instance
-
cookiePrefix
the prefix of the session cookie that ngrok sets on the http client to cache authentication. default is 'ngrok.' -
inactivityTimeout
Integer number of seconds of inactivity after which if the user has not accessed the endpoint, their session will time out and they will be forced to reauthenticate.- Parameters:
inactivityTimeout
- the value of theinactivity_timeout
parameter as along
- Returns:
- this builder instance
-
inactivityTimeout
Integer number of seconds of inactivity after which if the user has not accessed the endpoint, their session will time out and they will be forced to reauthenticate.- Parameters:
inactivityTimeout
- the value of theinactivity_timeout
parameter as along
, wrapped in anOptional
- Returns:
- this builder instance
-
maximumDuration
Integer number of seconds of the maximum duration of an authenticated session. After this period is exceeded, a user must reauthenticate.- Parameters:
maximumDuration
- the value of themaximum_duration
parameter as aDuration
- Returns:
- this builder instance
-
maximumDuration
Integer number of seconds of the maximum duration of an authenticated session. After this period is exceeded, a user must reauthenticate. -
issuer
URL of the OIDC "OpenID provider". This is the base URL used for discovery.- Parameters:
issuer
- the value of theissuer
parameter as aString
- Returns:
- this builder instance
-
issuer
URL of the OIDC "OpenID provider". This is the base URL used for discovery. -
clientId
The OIDC app's client ID and OIDC audience.- Parameters:
clientId
- the value of theclient_id
parameter as aString
- Returns:
- this builder instance
-
clientId
The OIDC app's client ID and OIDC audience. -
clientSecret
The OIDC app's client secret.- Parameters:
clientSecret
- the value of theclient_secret
parameter as aString
- Returns:
- this builder instance
-
clientSecret
The OIDC app's client secret. -
scopes
The set of scopes to request from the OIDC identity provider. -
scopes
The set of scopes to request from the OIDC identity provider. -
build
Constructs theEndpointOidc
instance.- Returns:
- a new
EndpointOidc
-