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 theEndpointOidcinstance.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) trueif the module will be applied to traffic,falseto disable.trueif the module will be applied to traffic,falseto 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
trueif the module will be applied to traffic,falseto disable. defaulttrueif unspecified- Parameters:
enabled- the value of theenabledparameter as aboolean- Returns:
- this builder instance
-
enabled
trueif the module will be applied to traffic,falseto disable. defaulttrueif unspecified- Parameters:
enabled- the value of theenabledparameter 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_passthroughparameter 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_passthroughparameter 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_prefixparameter 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_timeoutparameter 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_timeoutparameter 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_durationparameter 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 theissuerparameter 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_idparameter 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_secretparameter 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 theEndpointOidcinstance.- Returns:
- a new
EndpointOidc
-