Package com.ngrok.definitions
Class EndpointOidc
java.lang.Object
com.ngrok.definitions.EndpointOidc
A class encapsulating the
EndpointOidc
resource.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The OIDC app's client ID and OIDC audience.The OIDC app's client secret.the prefix of the session cookie that ngrok sets on the http client to cache authentication.true
if the module will be applied to traffic,false
to disable.long
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".Integer number of seconds of the maximum duration of an authenticated session.boolean
Do not enforce authentication on HTTP OPTIONS requests.The set of scopes to request from the OIDC identity provider.int
hashCode()
static EndpointOidc.Builder
Creates a new builder for theEndpointOidc
type.toString()
-
Method Details
-
newBuilder
Creates a new builder for theEndpointOidc
type.- Returns:
- a new
EndpointOidc.Builder
-
getEnabled
true
if the module will be applied to traffic,false
to disable. defaulttrue
if unspecified- Returns:
- the value of the property as a
boolean
wrapped in anOptional
-
getOptionsPassthrough
public boolean getOptionsPassthrough()Do not enforce authentication on HTTP OPTIONS requests. necessary if you are supporting CORS.- Returns:
- the value of the property as a
boolean
-
getCookiePrefix
the prefix of the session cookie that ngrok sets on the http client to cache authentication. default is 'ngrok.'- Returns:
- the value of the property as a
String
-
getInactivityTimeout
public long getInactivityTimeout()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.- Returns:
- the value of the property as a
long
-
getMaximumDuration
Integer number of seconds of the maximum duration of an authenticated session. After this period is exceeded, a user must reauthenticate.- Returns:
- the value of the property as a
Duration
-
getIssuer
URL of the OIDC "OpenID provider". This is the base URL used for discovery.- Returns:
- the value of the property as a
String
-
getClientId
The OIDC app's client ID and OIDC audience.- Returns:
- the value of the property as a
String
-
getClientSecret
The OIDC app's client secret.- Returns:
- the value of the property as a
String
-
getScopes
The set of scopes to request from the OIDC identity provider. -
equals
-
hashCode
public int hashCode() -
toString
-