Class OAuth2Config
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.oauth2.v3.OAuth2Config
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,OAuth2ConfigOrBuilder,Serializable
public final class OAuth2Config
extends com.google.protobuf.GeneratedMessageV3
implements OAuth2ConfigOrBuilder
OAuth config [#next-free-field: 27]Protobuf type
envoy.extensions.filters.http.oauth2.v3.OAuth2Config- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumProtobuf enumenvoy.extensions.filters.http.oauth2.v3.OAuth2Config.AuthTypestatic final classOAuth config [#next-free-field: 27]Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe endpoint redirect to for authorization in response to unauthorized requests.com.google.protobuf.ByteStringThe endpoint redirect to for authorization in response to unauthorized requests.getAuthScopes(int index) Optional list of OAuth scopes to be claimed in the authorization request.com.google.protobuf.ByteStringgetAuthScopesBytes(int index) Optional list of OAuth scopes to be claimed in the authorization request.intOptional list of OAuth scopes to be claimed in the authorization request.com.google.protobuf.ProtocolStringListOptional list of OAuth scopes to be claimed in the authorization request.Defines how ``client_id`` and ``client_secret`` are sent in OAuth client to OAuth server requests.intDefines how ``client_id`` and ``client_secret`` are sent in OAuth client to OAuth server requests.com.google.protobuf.DurationOptional expiration time for the code verifier cookie.com.google.protobuf.DurationOrBuilderOptional expiration time for the code verifier cookie.Controls for attributes that can be set on the cookies.Controls for attributes that can be set on the cookies.Credentials used for OAuth.Credentials used for OAuth.com.google.protobuf.DurationOptional expiration time for the CSRF protection token cookie.com.google.protobuf.DurationOrBuilderOptional expiration time for the CSRF protection token cookie.com.google.protobuf.DurationThe default lifetime in seconds of the access token, if omitted by the authorization server.com.google.protobuf.DurationOrBuilderThe default lifetime in seconds of the access token, if omitted by the authorization server.static OAuth2Configcom.google.protobuf.DurationThe default lifetime in seconds of the refresh token, if the exp (expiration time) claim is omitted in the refresh token or the refresh token is not JWT.com.google.protobuf.DurationOrBuilderThe default lifetime in seconds of the refresh token, if the exp (expiration time) claim is omitted in the refresh token or the refresh token is not JWT.getDenyRedirectMatcher(int index) Any request that matches any of the provided matchers won't be redirected to OAuth server when tokens are not valid.intAny request that matches any of the provided matchers won't be redirected to OAuth server when tokens are not valid.Any request that matches any of the provided matchers won't be redirected to OAuth server when tokens are not valid.getDenyRedirectMatcherOrBuilder(int index) Any request that matches any of the provided matchers won't be redirected to OAuth server when tokens are not valid.List<? extends HeaderMatcherOrBuilder>Any request that matches any of the provided matchers won't be redirected to OAuth server when tokens are not valid.static final com.google.protobuf.Descriptors.DescriptorbooleanIf set to true, the client will not set a cookie for Access Token even if one is received from the Identity Provider.booleanIf set to true, the client will not set a cookie for ID Token even if one is received from the Identity Provider.booleanIf set to true, the client will not set a cookie for Refresh Token even if one is received from the Identity Provider.booleanDisable token encryption.The endpoint at the authorization server to request the user be logged out of the Authorization server.com.google.protobuf.ByteStringThe endpoint at the authorization server to request the user be logged out of the Authorization server.booleanForward the OAuth token as a Bearer to upstream web service.com.google.protobuf.Parser<OAuth2Config>getPassThroughMatcher(int index) Any request that matches any of the provided matchers will be passed through without OAuth validation.intAny request that matches any of the provided matchers will be passed through without OAuth validation.Any request that matches any of the provided matchers will be passed through without OAuth validation.getPassThroughMatcherOrBuilder(int index) Any request that matches any of the provided matchers will be passed through without OAuth validation.List<? extends HeaderMatcherOrBuilder>Any request that matches any of the provided matchers will be passed through without OAuth validation.booleanIf set to true, preserve the existing authorization header.Matching criteria used to determine whether a path appears to be the result of a redirect from the authorization server.Matching criteria used to determine whether a path appears to be the result of a redirect from the authorization server.The redirect URI passed to the authorization endpoint.com.google.protobuf.ByteStringThe redirect URI passed to the authorization endpoint.getResources(int index) Optional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707com.google.protobuf.ByteStringgetResourcesBytes(int index) Optional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707intOptional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707com.google.protobuf.ProtocolStringListOptional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707Specifies the retry policy for requests to the OAuth server.Specifies the retry policy for requests to the OAuth server.intThe path to sign a user out, clearing their credential cookies.The path to sign a user out, clearing their credential cookies.Optional additional prefix to use when emitting statistics.com.google.protobuf.ByteStringOptional additional prefix to use when emitting statistics.Endpoint on the authorization server to retrieve the access token from.Endpoint on the authorization server to retrieve the access token from.com.google.protobuf.BoolValueIf set to true, allows automatic access token refresh using the associated refresh token (see `RFC 6749 section 6 <https://datatracker.ietf.org/doc/html/rfc6749#section-6>`_), provided that the OAuth server supports that.com.google.protobuf.BoolValueOrBuilderIf set to true, allows automatic access token refresh using the associated refresh token (see `RFC 6749 section 6 <https://datatracker.ietf.org/doc/html/rfc6749#section-6>`_), provided that the OAuth server supports that.booleanOptional expiration time for the code verifier cookie.booleanControls for attributes that can be set on the cookies.booleanCredentials used for OAuth.booleanOptional expiration time for the CSRF protection token cookie.booleanThe default lifetime in seconds of the access token, if omitted by the authorization server.booleanThe default lifetime in seconds of the refresh token, if the exp (expiration time) claim is omitted in the refresh token or the refresh token is not JWT.inthashCode()booleanMatching criteria used to determine whether a path appears to be the result of a redirect from the authorization server.booleanSpecifies the retry policy for requests to the OAuth server.booleanThe path to sign a user out, clearing their credential cookies.booleanEndpoint on the authorization server to retrieve the access token from.booleanIf set to true, allows automatic access token refresh using the associated refresh token (see `RFC 6749 section 6 <https://datatracker.ietf.org/doc/html/rfc6749#section-6>`_), provided that the OAuth server supports that.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic OAuth2Config.Builderstatic OAuth2Config.BuildernewBuilder(OAuth2Config prototype) protected OAuth2Config.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static OAuth2ConfigparseDelimitedFrom(InputStream input) static OAuth2ConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OAuth2ConfigparseFrom(byte[] data) static OAuth2ConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OAuth2ConfigparseFrom(com.google.protobuf.ByteString data) static OAuth2ConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OAuth2ConfigparseFrom(com.google.protobuf.CodedInputStream input) static OAuth2ConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OAuth2ConfigparseFrom(InputStream input) static OAuth2ConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OAuth2ConfigparseFrom(ByteBuffer data) static OAuth2ConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<OAuth2Config>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TOKEN_ENDPOINT_FIELD_NUMBER
public static final int TOKEN_ENDPOINT_FIELD_NUMBER- See Also:
-
RETRY_POLICY_FIELD_NUMBER
public static final int RETRY_POLICY_FIELD_NUMBER- See Also:
-
AUTHORIZATION_ENDPOINT_FIELD_NUMBER
public static final int AUTHORIZATION_ENDPOINT_FIELD_NUMBER- See Also:
-
END_SESSION_ENDPOINT_FIELD_NUMBER
public static final int END_SESSION_ENDPOINT_FIELD_NUMBER- See Also:
-
CREDENTIALS_FIELD_NUMBER
public static final int CREDENTIALS_FIELD_NUMBER- See Also:
-
REDIRECT_URI_FIELD_NUMBER
public static final int REDIRECT_URI_FIELD_NUMBER- See Also:
-
REDIRECT_PATH_MATCHER_FIELD_NUMBER
public static final int REDIRECT_PATH_MATCHER_FIELD_NUMBER- See Also:
-
SIGNOUT_PATH_FIELD_NUMBER
public static final int SIGNOUT_PATH_FIELD_NUMBER- See Also:
-
FORWARD_BEARER_TOKEN_FIELD_NUMBER
public static final int FORWARD_BEARER_TOKEN_FIELD_NUMBER- See Also:
-
PRESERVE_AUTHORIZATION_HEADER_FIELD_NUMBER
public static final int PRESERVE_AUTHORIZATION_HEADER_FIELD_NUMBER- See Also:
-
PASS_THROUGH_MATCHER_FIELD_NUMBER
public static final int PASS_THROUGH_MATCHER_FIELD_NUMBER- See Also:
-
AUTH_SCOPES_FIELD_NUMBER
public static final int AUTH_SCOPES_FIELD_NUMBER- See Also:
-
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER- See Also:
-
AUTH_TYPE_FIELD_NUMBER
public static final int AUTH_TYPE_FIELD_NUMBER- See Also:
-
USE_REFRESH_TOKEN_FIELD_NUMBER
public static final int USE_REFRESH_TOKEN_FIELD_NUMBER- See Also:
-
DEFAULT_EXPIRES_IN_FIELD_NUMBER
public static final int DEFAULT_EXPIRES_IN_FIELD_NUMBER- See Also:
-
DENY_REDIRECT_MATCHER_FIELD_NUMBER
public static final int DENY_REDIRECT_MATCHER_FIELD_NUMBER- See Also:
-
DEFAULT_REFRESH_TOKEN_EXPIRES_IN_FIELD_NUMBER
public static final int DEFAULT_REFRESH_TOKEN_EXPIRES_IN_FIELD_NUMBER- See Also:
-
DISABLE_ID_TOKEN_SET_COOKIE_FIELD_NUMBER
public static final int DISABLE_ID_TOKEN_SET_COOKIE_FIELD_NUMBER- See Also:
-
DISABLE_ACCESS_TOKEN_SET_COOKIE_FIELD_NUMBER
public static final int DISABLE_ACCESS_TOKEN_SET_COOKIE_FIELD_NUMBER- See Also:
-
DISABLE_REFRESH_TOKEN_SET_COOKIE_FIELD_NUMBER
public static final int DISABLE_REFRESH_TOKEN_SET_COOKIE_FIELD_NUMBER- See Also:
-
COOKIE_CONFIGS_FIELD_NUMBER
public static final int COOKIE_CONFIGS_FIELD_NUMBER- See Also:
-
STAT_PREFIX_FIELD_NUMBER
public static final int STAT_PREFIX_FIELD_NUMBER- See Also:
-
CSRF_TOKEN_EXPIRES_IN_FIELD_NUMBER
public static final int CSRF_TOKEN_EXPIRES_IN_FIELD_NUMBER- See Also:
-
CODE_VERIFIER_TOKEN_EXPIRES_IN_FIELD_NUMBER
public static final int CODE_VERIFIER_TOKEN_EXPIRES_IN_FIELD_NUMBER- See Also:
-
DISABLE_TOKEN_ENCRYPTION_FIELD_NUMBER
public static final int DISABLE_TOKEN_ENCRYPTION_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasTokenEndpoint
public boolean hasTokenEndpoint()Endpoint on the authorization server to retrieve the access token from.
.envoy.config.core.v3.HttpUri token_endpoint = 1;- Specified by:
hasTokenEndpointin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the tokenEndpoint field is set.
-
getTokenEndpoint
Endpoint on the authorization server to retrieve the access token from.
.envoy.config.core.v3.HttpUri token_endpoint = 1;- Specified by:
getTokenEndpointin interfaceOAuth2ConfigOrBuilder- Returns:
- The tokenEndpoint.
-
getTokenEndpointOrBuilder
Endpoint on the authorization server to retrieve the access token from.
.envoy.config.core.v3.HttpUri token_endpoint = 1;- Specified by:
getTokenEndpointOrBuilderin interfaceOAuth2ConfigOrBuilder
-
hasRetryPolicy
public boolean hasRetryPolicy()Specifies the retry policy for requests to the OAuth server. If not specified, then no retries will be performed.
.envoy.config.core.v3.RetryPolicy retry_policy = 18;- Specified by:
hasRetryPolicyin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the retryPolicy field is set.
-
getRetryPolicy
Specifies the retry policy for requests to the OAuth server. If not specified, then no retries will be performed.
.envoy.config.core.v3.RetryPolicy retry_policy = 18;- Specified by:
getRetryPolicyin interfaceOAuth2ConfigOrBuilder- Returns:
- The retryPolicy.
-
getRetryPolicyOrBuilder
Specifies the retry policy for requests to the OAuth server. If not specified, then no retries will be performed.
.envoy.config.core.v3.RetryPolicy retry_policy = 18;- Specified by:
getRetryPolicyOrBuilderin interfaceOAuth2ConfigOrBuilder
-
getAuthorizationEndpoint
The endpoint redirect to for authorization in response to unauthorized requests.
string authorization_endpoint = 2 [(.validate.rules) = { ... }- Specified by:
getAuthorizationEndpointin interfaceOAuth2ConfigOrBuilder- Returns:
- The authorizationEndpoint.
-
getAuthorizationEndpointBytes
public com.google.protobuf.ByteString getAuthorizationEndpointBytes()The endpoint redirect to for authorization in response to unauthorized requests.
string authorization_endpoint = 2 [(.validate.rules) = { ... }- Specified by:
getAuthorizationEndpointBytesin interfaceOAuth2ConfigOrBuilder- Returns:
- The bytes for authorizationEndpoint.
-
getEndSessionEndpoint
The endpoint at the authorization server to request the user be logged out of the Authorization server. This field is optional and should be set only if openid is in the auth_scopes and the authorization server supports the OpenID Connect RP-Initiated Logout specification. For more information, see https://openid.net/specs/openid-connect-rpinitiated-1_0.html If configured, the OAuth2 filter will redirect users to this endpoint when they access the signout_path.
string end_session_endpoint = 23;- Specified by:
getEndSessionEndpointin interfaceOAuth2ConfigOrBuilder- Returns:
- The endSessionEndpoint.
-
getEndSessionEndpointBytes
public com.google.protobuf.ByteString getEndSessionEndpointBytes()The endpoint at the authorization server to request the user be logged out of the Authorization server. This field is optional and should be set only if openid is in the auth_scopes and the authorization server supports the OpenID Connect RP-Initiated Logout specification. For more information, see https://openid.net/specs/openid-connect-rpinitiated-1_0.html If configured, the OAuth2 filter will redirect users to this endpoint when they access the signout_path.
string end_session_endpoint = 23;- Specified by:
getEndSessionEndpointBytesin interfaceOAuth2ConfigOrBuilder- Returns:
- The bytes for endSessionEndpoint.
-
hasCredentials
public boolean hasCredentials()Credentials used for OAuth.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials credentials = 3 [(.validate.rules) = { ... }- Specified by:
hasCredentialsin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the credentials field is set.
-
getCredentials
Credentials used for OAuth.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials credentials = 3 [(.validate.rules) = { ... }- Specified by:
getCredentialsin interfaceOAuth2ConfigOrBuilder- Returns:
- The credentials.
-
getCredentialsOrBuilder
Credentials used for OAuth.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials credentials = 3 [(.validate.rules) = { ... }- Specified by:
getCredentialsOrBuilderin interfaceOAuth2ConfigOrBuilder
-
getRedirectUri
The redirect URI passed to the authorization endpoint. Supports header formatting tokens. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`. This URI should not contain any query parameters.
string redirect_uri = 4 [(.validate.rules) = { ... }- Specified by:
getRedirectUriin interfaceOAuth2ConfigOrBuilder- Returns:
- The redirectUri.
-
getRedirectUriBytes
public com.google.protobuf.ByteString getRedirectUriBytes()The redirect URI passed to the authorization endpoint. Supports header formatting tokens. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`. This URI should not contain any query parameters.
string redirect_uri = 4 [(.validate.rules) = { ... }- Specified by:
getRedirectUriBytesin interfaceOAuth2ConfigOrBuilder- Returns:
- The bytes for redirectUri.
-
hasRedirectPathMatcher
public boolean hasRedirectPathMatcher()Matching criteria used to determine whether a path appears to be the result of a redirect from the authorization server.
.envoy.type.matcher.v3.PathMatcher redirect_path_matcher = 5 [(.validate.rules) = { ... }- Specified by:
hasRedirectPathMatcherin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the redirectPathMatcher field is set.
-
getRedirectPathMatcher
Matching criteria used to determine whether a path appears to be the result of a redirect from the authorization server.
.envoy.type.matcher.v3.PathMatcher redirect_path_matcher = 5 [(.validate.rules) = { ... }- Specified by:
getRedirectPathMatcherin interfaceOAuth2ConfigOrBuilder- Returns:
- The redirectPathMatcher.
-
getRedirectPathMatcherOrBuilder
Matching criteria used to determine whether a path appears to be the result of a redirect from the authorization server.
.envoy.type.matcher.v3.PathMatcher redirect_path_matcher = 5 [(.validate.rules) = { ... }- Specified by:
getRedirectPathMatcherOrBuilderin interfaceOAuth2ConfigOrBuilder
-
hasSignoutPath
public boolean hasSignoutPath()The path to sign a user out, clearing their credential cookies.
.envoy.type.matcher.v3.PathMatcher signout_path = 6 [(.validate.rules) = { ... }- Specified by:
hasSignoutPathin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the signoutPath field is set.
-
getSignoutPath
The path to sign a user out, clearing their credential cookies.
.envoy.type.matcher.v3.PathMatcher signout_path = 6 [(.validate.rules) = { ... }- Specified by:
getSignoutPathin interfaceOAuth2ConfigOrBuilder- Returns:
- The signoutPath.
-
getSignoutPathOrBuilder
The path to sign a user out, clearing their credential cookies.
.envoy.type.matcher.v3.PathMatcher signout_path = 6 [(.validate.rules) = { ... }- Specified by:
getSignoutPathOrBuilderin interfaceOAuth2ConfigOrBuilder
-
getForwardBearerToken
public boolean getForwardBearerToken()Forward the OAuth token as a Bearer to upstream web service.
bool forward_bearer_token = 7;- Specified by:
getForwardBearerTokenin interfaceOAuth2ConfigOrBuilder- Returns:
- The forwardBearerToken.
-
getPreserveAuthorizationHeader
public boolean getPreserveAuthorizationHeader()If set to true, preserve the existing authorization header. By default the client strips the existing authorization header before forwarding upstream. Can not be set to true if forward_bearer_token is already set to true. Default value is false.
bool preserve_authorization_header = 16;- Specified by:
getPreserveAuthorizationHeaderin interfaceOAuth2ConfigOrBuilder- Returns:
- The preserveAuthorizationHeader.
-
getPassThroughMatcherList
Any request that matches any of the provided matchers will be passed through without OAuth validation.
repeated .envoy.config.route.v3.HeaderMatcher pass_through_matcher = 8;- Specified by:
getPassThroughMatcherListin interfaceOAuth2ConfigOrBuilder
-
getPassThroughMatcherOrBuilderList
Any request that matches any of the provided matchers will be passed through without OAuth validation.
repeated .envoy.config.route.v3.HeaderMatcher pass_through_matcher = 8;- Specified by:
getPassThroughMatcherOrBuilderListin interfaceOAuth2ConfigOrBuilder
-
getPassThroughMatcherCount
public int getPassThroughMatcherCount()Any request that matches any of the provided matchers will be passed through without OAuth validation.
repeated .envoy.config.route.v3.HeaderMatcher pass_through_matcher = 8;- Specified by:
getPassThroughMatcherCountin interfaceOAuth2ConfigOrBuilder
-
getPassThroughMatcher
Any request that matches any of the provided matchers will be passed through without OAuth validation.
repeated .envoy.config.route.v3.HeaderMatcher pass_through_matcher = 8;- Specified by:
getPassThroughMatcherin interfaceOAuth2ConfigOrBuilder
-
getPassThroughMatcherOrBuilder
Any request that matches any of the provided matchers will be passed through without OAuth validation.
repeated .envoy.config.route.v3.HeaderMatcher pass_through_matcher = 8;- Specified by:
getPassThroughMatcherOrBuilderin interfaceOAuth2ConfigOrBuilder
-
getAuthScopesList
public com.google.protobuf.ProtocolStringList getAuthScopesList()Optional list of OAuth scopes to be claimed in the authorization request. If not specified, defaults to "user" scope. OAuth RFC https://tools.ietf.org/html/rfc6749#section-3.3
repeated string auth_scopes = 9;- Specified by:
getAuthScopesListin interfaceOAuth2ConfigOrBuilder- Returns:
- A list containing the authScopes.
-
getAuthScopesCount
public int getAuthScopesCount()Optional list of OAuth scopes to be claimed in the authorization request. If not specified, defaults to "user" scope. OAuth RFC https://tools.ietf.org/html/rfc6749#section-3.3
repeated string auth_scopes = 9;- Specified by:
getAuthScopesCountin interfaceOAuth2ConfigOrBuilder- Returns:
- The count of authScopes.
-
getAuthScopes
Optional list of OAuth scopes to be claimed in the authorization request. If not specified, defaults to "user" scope. OAuth RFC https://tools.ietf.org/html/rfc6749#section-3.3
repeated string auth_scopes = 9;- Specified by:
getAuthScopesin interfaceOAuth2ConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The authScopes at the given index.
-
getAuthScopesBytes
public com.google.protobuf.ByteString getAuthScopesBytes(int index) Optional list of OAuth scopes to be claimed in the authorization request. If not specified, defaults to "user" scope. OAuth RFC https://tools.ietf.org/html/rfc6749#section-3.3
repeated string auth_scopes = 9;- Specified by:
getAuthScopesBytesin interfaceOAuth2ConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the authScopes at the given index.
-
getResourcesList
public com.google.protobuf.ProtocolStringList getResourcesList()Optional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707
repeated string resources = 10;- Specified by:
getResourcesListin interfaceOAuth2ConfigOrBuilder- Returns:
- A list containing the resources.
-
getResourcesCount
public int getResourcesCount()Optional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707
repeated string resources = 10;- Specified by:
getResourcesCountin interfaceOAuth2ConfigOrBuilder- Returns:
- The count of resources.
-
getResources
Optional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707
repeated string resources = 10;- Specified by:
getResourcesin interfaceOAuth2ConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resources at the given index.
-
getResourcesBytes
public com.google.protobuf.ByteString getResourcesBytes(int index) Optional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707
repeated string resources = 10;- Specified by:
getResourcesBytesin interfaceOAuth2ConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resources at the given index.
-
getAuthTypeValue
public int getAuthTypeValue()Defines how ``client_id`` and ``client_secret`` are sent in OAuth client to OAuth server requests. RFC https://datatracker.ietf.org/doc/html/rfc6749#section-2.3.1
.envoy.extensions.filters.http.oauth2.v3.OAuth2Config.AuthType auth_type = 11 [(.validate.rules) = { ... }- Specified by:
getAuthTypeValuein interfaceOAuth2ConfigOrBuilder- Returns:
- The enum numeric value on the wire for authType.
-
getAuthType
Defines how ``client_id`` and ``client_secret`` are sent in OAuth client to OAuth server requests. RFC https://datatracker.ietf.org/doc/html/rfc6749#section-2.3.1
.envoy.extensions.filters.http.oauth2.v3.OAuth2Config.AuthType auth_type = 11 [(.validate.rules) = { ... }- Specified by:
getAuthTypein interfaceOAuth2ConfigOrBuilder- Returns:
- The authType.
-
hasUseRefreshToken
public boolean hasUseRefreshToken()If set to true, allows automatic access token refresh using the associated refresh token (see `RFC 6749 section 6 <https://datatracker.ietf.org/doc/html/rfc6749#section-6>`_), provided that the OAuth server supports that. Default value is true.
.google.protobuf.BoolValue use_refresh_token = 12;- Specified by:
hasUseRefreshTokenin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the useRefreshToken field is set.
-
getUseRefreshToken
public com.google.protobuf.BoolValue getUseRefreshToken()If set to true, allows automatic access token refresh using the associated refresh token (see `RFC 6749 section 6 <https://datatracker.ietf.org/doc/html/rfc6749#section-6>`_), provided that the OAuth server supports that. Default value is true.
.google.protobuf.BoolValue use_refresh_token = 12;- Specified by:
getUseRefreshTokenin interfaceOAuth2ConfigOrBuilder- Returns:
- The useRefreshToken.
-
getUseRefreshTokenOrBuilder
public com.google.protobuf.BoolValueOrBuilder getUseRefreshTokenOrBuilder()If set to true, allows automatic access token refresh using the associated refresh token (see `RFC 6749 section 6 <https://datatracker.ietf.org/doc/html/rfc6749#section-6>`_), provided that the OAuth server supports that. Default value is true.
.google.protobuf.BoolValue use_refresh_token = 12;- Specified by:
getUseRefreshTokenOrBuilderin interfaceOAuth2ConfigOrBuilder
-
hasDefaultExpiresIn
public boolean hasDefaultExpiresIn()The default lifetime in seconds of the access token, if omitted by the authorization server. If this value is not set, it will default to ``0s``. In this case, the expiry must be set by the authorization server or the OAuth flow will fail.
.google.protobuf.Duration default_expires_in = 13;- Specified by:
hasDefaultExpiresInin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the defaultExpiresIn field is set.
-
getDefaultExpiresIn
public com.google.protobuf.Duration getDefaultExpiresIn()The default lifetime in seconds of the access token, if omitted by the authorization server. If this value is not set, it will default to ``0s``. In this case, the expiry must be set by the authorization server or the OAuth flow will fail.
.google.protobuf.Duration default_expires_in = 13;- Specified by:
getDefaultExpiresInin interfaceOAuth2ConfigOrBuilder- Returns:
- The defaultExpiresIn.
-
getDefaultExpiresInOrBuilder
public com.google.protobuf.DurationOrBuilder getDefaultExpiresInOrBuilder()The default lifetime in seconds of the access token, if omitted by the authorization server. If this value is not set, it will default to ``0s``. In this case, the expiry must be set by the authorization server or the OAuth flow will fail.
.google.protobuf.Duration default_expires_in = 13;- Specified by:
getDefaultExpiresInOrBuilderin interfaceOAuth2ConfigOrBuilder
-
getDenyRedirectMatcherList
Any request that matches any of the provided matchers won't be redirected to OAuth server when tokens are not valid. Automatic access token refresh will be performed for these requests, if enabled. This behavior can be useful for AJAX requests.
repeated .envoy.config.route.v3.HeaderMatcher deny_redirect_matcher = 14;- Specified by:
getDenyRedirectMatcherListin interfaceOAuth2ConfigOrBuilder
-
getDenyRedirectMatcherOrBuilderList
Any request that matches any of the provided matchers won't be redirected to OAuth server when tokens are not valid. Automatic access token refresh will be performed for these requests, if enabled. This behavior can be useful for AJAX requests.
repeated .envoy.config.route.v3.HeaderMatcher deny_redirect_matcher = 14;- Specified by:
getDenyRedirectMatcherOrBuilderListin interfaceOAuth2ConfigOrBuilder
-
getDenyRedirectMatcherCount
public int getDenyRedirectMatcherCount()Any request that matches any of the provided matchers won't be redirected to OAuth server when tokens are not valid. Automatic access token refresh will be performed for these requests, if enabled. This behavior can be useful for AJAX requests.
repeated .envoy.config.route.v3.HeaderMatcher deny_redirect_matcher = 14;- Specified by:
getDenyRedirectMatcherCountin interfaceOAuth2ConfigOrBuilder
-
getDenyRedirectMatcher
Any request that matches any of the provided matchers won't be redirected to OAuth server when tokens are not valid. Automatic access token refresh will be performed for these requests, if enabled. This behavior can be useful for AJAX requests.
repeated .envoy.config.route.v3.HeaderMatcher deny_redirect_matcher = 14;- Specified by:
getDenyRedirectMatcherin interfaceOAuth2ConfigOrBuilder
-
getDenyRedirectMatcherOrBuilder
Any request that matches any of the provided matchers won't be redirected to OAuth server when tokens are not valid. Automatic access token refresh will be performed for these requests, if enabled. This behavior can be useful for AJAX requests.
repeated .envoy.config.route.v3.HeaderMatcher deny_redirect_matcher = 14;- Specified by:
getDenyRedirectMatcherOrBuilderin interfaceOAuth2ConfigOrBuilder
-
hasDefaultRefreshTokenExpiresIn
public boolean hasDefaultRefreshTokenExpiresIn()The default lifetime in seconds of the refresh token, if the exp (expiration time) claim is omitted in the refresh token or the refresh token is not JWT. If this value is not set, it will default to ``604800s``. In this case, the cookie with the refresh token will be expired in a week. This setting is only considered if ``use_refresh_token`` is set to true, otherwise the authorization server expiration or ``default_expires_in`` is used.
.google.protobuf.Duration default_refresh_token_expires_in = 15;- Specified by:
hasDefaultRefreshTokenExpiresInin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the defaultRefreshTokenExpiresIn field is set.
-
getDefaultRefreshTokenExpiresIn
public com.google.protobuf.Duration getDefaultRefreshTokenExpiresIn()The default lifetime in seconds of the refresh token, if the exp (expiration time) claim is omitted in the refresh token or the refresh token is not JWT. If this value is not set, it will default to ``604800s``. In this case, the cookie with the refresh token will be expired in a week. This setting is only considered if ``use_refresh_token`` is set to true, otherwise the authorization server expiration or ``default_expires_in`` is used.
.google.protobuf.Duration default_refresh_token_expires_in = 15;- Specified by:
getDefaultRefreshTokenExpiresInin interfaceOAuth2ConfigOrBuilder- Returns:
- The defaultRefreshTokenExpiresIn.
-
getDefaultRefreshTokenExpiresInOrBuilder
public com.google.protobuf.DurationOrBuilder getDefaultRefreshTokenExpiresInOrBuilder()The default lifetime in seconds of the refresh token, if the exp (expiration time) claim is omitted in the refresh token or the refresh token is not JWT. If this value is not set, it will default to ``604800s``. In this case, the cookie with the refresh token will be expired in a week. This setting is only considered if ``use_refresh_token`` is set to true, otherwise the authorization server expiration or ``default_expires_in`` is used.
.google.protobuf.Duration default_refresh_token_expires_in = 15;- Specified by:
getDefaultRefreshTokenExpiresInOrBuilderin interfaceOAuth2ConfigOrBuilder
-
getDisableIdTokenSetCookie
public boolean getDisableIdTokenSetCookie()If set to true, the client will not set a cookie for ID Token even if one is received from the Identity Provider. This may be useful in cases where the ID Token is too large for HTTP cookies (longer than 4096 characters). Enabling this option will only disable setting the cookie response header, the filter will still process incoming ID Tokens as part of the HMAC if they are there. This is to ensure compatibility while switching this setting on. Future sessions would not set the IdToken cookie header.
bool disable_id_token_set_cookie = 17;- Specified by:
getDisableIdTokenSetCookiein interfaceOAuth2ConfigOrBuilder- Returns:
- The disableIdTokenSetCookie.
-
getDisableAccessTokenSetCookie
public boolean getDisableAccessTokenSetCookie()If set to true, the client will not set a cookie for Access Token even if one is received from the Identity Provider. Enabling this option will only disable setting the cookie response header, the filter will still process incoming Access Tokens as part of the HMAC if they are there. This is to ensure compatibility while switching this setting on. Future sessions would not set the Access Token cookie header.
bool disable_access_token_set_cookie = 19;- Specified by:
getDisableAccessTokenSetCookiein interfaceOAuth2ConfigOrBuilder- Returns:
- The disableAccessTokenSetCookie.
-
getDisableRefreshTokenSetCookie
public boolean getDisableRefreshTokenSetCookie()If set to true, the client will not set a cookie for Refresh Token even if one is received from the Identity Provider. Enabling this option will only disable setting the cookie response header, the filter will still process incoming Refresh Tokens as part of the HMAC if they are there. This is to ensure compatibility while switching this setting on. Future sessions would not set the Refresh Token cookie header.
bool disable_refresh_token_set_cookie = 20;- Specified by:
getDisableRefreshTokenSetCookiein interfaceOAuth2ConfigOrBuilder- Returns:
- The disableRefreshTokenSetCookie.
-
hasCookieConfigs
public boolean hasCookieConfigs()Controls for attributes that can be set on the cookies.
.envoy.extensions.filters.http.oauth2.v3.CookieConfigs cookie_configs = 21;- Specified by:
hasCookieConfigsin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the cookieConfigs field is set.
-
getCookieConfigs
Controls for attributes that can be set on the cookies.
.envoy.extensions.filters.http.oauth2.v3.CookieConfigs cookie_configs = 21;- Specified by:
getCookieConfigsin interfaceOAuth2ConfigOrBuilder- Returns:
- The cookieConfigs.
-
getCookieConfigsOrBuilder
Controls for attributes that can be set on the cookies.
.envoy.extensions.filters.http.oauth2.v3.CookieConfigs cookie_configs = 21;- Specified by:
getCookieConfigsOrBuilderin interfaceOAuth2ConfigOrBuilder
-
getStatPrefix
Optional additional prefix to use when emitting statistics.
string stat_prefix = 22;- Specified by:
getStatPrefixin interfaceOAuth2ConfigOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public com.google.protobuf.ByteString getStatPrefixBytes()Optional additional prefix to use when emitting statistics.
string stat_prefix = 22;- Specified by:
getStatPrefixBytesin interfaceOAuth2ConfigOrBuilder- Returns:
- The bytes for statPrefix.
-
hasCsrfTokenExpiresIn
public boolean hasCsrfTokenExpiresIn()Optional expiration time for the CSRF protection token cookie. The CSRF token prevents cross-site request forgery attacks during the OAuth2 flow. If not specified, defaults to ``600s`` (10 minutes), which should provide sufficient time for users to complete the OAuth2 authorization flow.
.google.protobuf.Duration csrf_token_expires_in = 24;- Specified by:
hasCsrfTokenExpiresInin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the csrfTokenExpiresIn field is set.
-
getCsrfTokenExpiresIn
public com.google.protobuf.Duration getCsrfTokenExpiresIn()Optional expiration time for the CSRF protection token cookie. The CSRF token prevents cross-site request forgery attacks during the OAuth2 flow. If not specified, defaults to ``600s`` (10 minutes), which should provide sufficient time for users to complete the OAuth2 authorization flow.
.google.protobuf.Duration csrf_token_expires_in = 24;- Specified by:
getCsrfTokenExpiresInin interfaceOAuth2ConfigOrBuilder- Returns:
- The csrfTokenExpiresIn.
-
getCsrfTokenExpiresInOrBuilder
public com.google.protobuf.DurationOrBuilder getCsrfTokenExpiresInOrBuilder()Optional expiration time for the CSRF protection token cookie. The CSRF token prevents cross-site request forgery attacks during the OAuth2 flow. If not specified, defaults to ``600s`` (10 minutes), which should provide sufficient time for users to complete the OAuth2 authorization flow.
.google.protobuf.Duration csrf_token_expires_in = 24;- Specified by:
getCsrfTokenExpiresInOrBuilderin interfaceOAuth2ConfigOrBuilder
-
hasCodeVerifierTokenExpiresIn
public boolean hasCodeVerifierTokenExpiresIn()Optional expiration time for the code verifier cookie. The code verifier is stored in a secure, HTTP-only cookie during the OAuth2 authorization process. If not specified, defaults to ``600s`` (10 minutes), which should provide sufficient time for users to complete the OAuth2 authorization flow.
.google.protobuf.Duration code_verifier_token_expires_in = 25;- Specified by:
hasCodeVerifierTokenExpiresInin interfaceOAuth2ConfigOrBuilder- Returns:
- Whether the codeVerifierTokenExpiresIn field is set.
-
getCodeVerifierTokenExpiresIn
public com.google.protobuf.Duration getCodeVerifierTokenExpiresIn()Optional expiration time for the code verifier cookie. The code verifier is stored in a secure, HTTP-only cookie during the OAuth2 authorization process. If not specified, defaults to ``600s`` (10 minutes), which should provide sufficient time for users to complete the OAuth2 authorization flow.
.google.protobuf.Duration code_verifier_token_expires_in = 25;- Specified by:
getCodeVerifierTokenExpiresInin interfaceOAuth2ConfigOrBuilder- Returns:
- The codeVerifierTokenExpiresIn.
-
getCodeVerifierTokenExpiresInOrBuilder
public com.google.protobuf.DurationOrBuilder getCodeVerifierTokenExpiresInOrBuilder()Optional expiration time for the code verifier cookie. The code verifier is stored in a secure, HTTP-only cookie during the OAuth2 authorization process. If not specified, defaults to ``600s`` (10 minutes), which should provide sufficient time for users to complete the OAuth2 authorization flow.
.google.protobuf.Duration code_verifier_token_expires_in = 25;- Specified by:
getCodeVerifierTokenExpiresInOrBuilderin interfaceOAuth2ConfigOrBuilder
-
getDisableTokenEncryption
public boolean getDisableTokenEncryption()Disable token encryption. When set to true, both the access token and the ID token will be stored in plain text. This option should only be used in secure environments where token encryption is not required. Default is false (tokens are encrypted).
bool disable_token_encryption = 26;- Specified by:
getDisableTokenEncryptionin interfaceOAuth2ConfigOrBuilder- Returns:
- The disableTokenEncryption.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static OAuth2Config parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OAuth2Config parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OAuth2Config parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OAuth2Config parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OAuth2Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OAuth2Config parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static OAuth2Config parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static OAuth2Config parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static OAuth2Config parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OAuth2Config.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-