Package com.ngrok.definitions
Class EndpointOidc
java.lang.Object
com.ngrok.definitions.EndpointOidc
A class encapsulating the
EndpointOidc resource.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe 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.trueif the module will be applied to traffic,falseto disable.longInteger 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.booleanDo not enforce authentication on HTTP OPTIONS requests.The set of scopes to request from the OIDC identity provider.inthashCode()static EndpointOidc.BuilderCreates a new builder for theEndpointOidctype.toString()
-
Method Details
-
newBuilder
Creates a new builder for theEndpointOidctype.- Returns:
- a new
EndpointOidc.Builder
-
getEnabled
trueif the module will be applied to traffic,falseto disable. defaulttrueif unspecified- Returns:
- the value of the property as a
booleanwrapped 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
-