Interface OAuth2ConfigOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    OAuth2Config, OAuth2Config.Builder

    public interface OAuth2ConfigOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getAuthorizationEndpoint()
      The endpoint redirect to for authorization in response to unauthorized requests.
      com.google.protobuf.ByteString getAuthorizationEndpointBytes()
      The endpoint redirect to for authorization in response to unauthorized requests.
      java.lang.String getAuthScopes​(int index)
      Optional list of OAuth scopes to be claimed in the authorization request.
      com.google.protobuf.ByteString getAuthScopesBytes​(int index)
      Optional list of OAuth scopes to be claimed in the authorization request.
      int getAuthScopesCount()
      Optional list of OAuth scopes to be claimed in the authorization request.
      java.util.List<java.lang.String> getAuthScopesList()
      Optional list of OAuth scopes to be claimed in the authorization request.
      OAuth2Config.AuthType getAuthType()
      Defines how ``client_id`` and ``client_secret`` are sent in OAuth client to OAuth server requests.
      int getAuthTypeValue()
      Defines how ``client_id`` and ``client_secret`` are sent in OAuth client to OAuth server requests.
      OAuth2Credentials getCredentials()
      Credentials used for OAuth.
      OAuth2CredentialsOrBuilder getCredentialsOrBuilder()
      Credentials used for OAuth.
      boolean getForwardBearerToken()
      Forward the OAuth token as a Bearer to upstream web service.
      HeaderMatcher getPassThroughMatcher​(int index)
      Any request that matches any of the provided matchers will be passed through without OAuth validation.
      int getPassThroughMatcherCount()
      Any request that matches any of the provided matchers will be passed through without OAuth validation.
      java.util.List<HeaderMatcher> getPassThroughMatcherList()
      Any request that matches any of the provided matchers will be passed through without OAuth validation.
      HeaderMatcherOrBuilder getPassThroughMatcherOrBuilder​(int index)
      Any request that matches any of the provided matchers will be passed through without OAuth validation.
      java.util.List<? extends HeaderMatcherOrBuilder> getPassThroughMatcherOrBuilderList()
      Any request that matches any of the provided matchers will be passed through without OAuth validation.
      PathMatcher getRedirectPathMatcher()
      Matching criteria used to determine whether a path appears to be the result of a redirect from the authorization server.
      PathMatcherOrBuilder getRedirectPathMatcherOrBuilder()
      Matching criteria used to determine whether a path appears to be the result of a redirect from the authorization server.
      java.lang.String getRedirectUri()
      The redirect URI passed to the authorization endpoint.
      com.google.protobuf.ByteString getRedirectUriBytes()
      The redirect URI passed to the authorization endpoint.
      java.lang.String getResources​(int index)
      Optional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707
      com.google.protobuf.ByteString getResourcesBytes​(int index)
      Optional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707
      int getResourcesCount()
      Optional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707
      java.util.List<java.lang.String> getResourcesList()
      Optional resource parameter for authorization request RFC: https://tools.ietf.org/html/rfc8707
      PathMatcher getSignoutPath()
      The path to sign a user out, clearing their credential cookies.
      PathMatcherOrBuilder getSignoutPathOrBuilder()
      The path to sign a user out, clearing their credential cookies.
      HttpUri getTokenEndpoint()
      Endpoint on the authorization server to retrieve the access token from.
      HttpUriOrBuilder getTokenEndpointOrBuilder()
      Endpoint on the authorization server to retrieve the access token from.
      boolean hasCredentials()
      Credentials used for OAuth.
      boolean hasRedirectPathMatcher()
      Matching criteria used to determine whether a path appears to be the result of a redirect from the authorization server.
      boolean hasSignoutPath()
      The path to sign a user out, clearing their credential cookies.
      boolean hasTokenEndpoint()
      Endpoint on the authorization server to retrieve the access token from.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasTokenEndpoint

        boolean hasTokenEndpoint()
         Endpoint on the authorization server to retrieve the access token from.
         
        .envoy.config.core.v3.HttpUri token_endpoint = 1;
        Returns:
        Whether the tokenEndpoint field is set.
      • getTokenEndpoint

        HttpUri getTokenEndpoint()
         Endpoint on the authorization server to retrieve the access token from.
         
        .envoy.config.core.v3.HttpUri token_endpoint = 1;
        Returns:
        The tokenEndpoint.
      • getTokenEndpointOrBuilder

        HttpUriOrBuilder getTokenEndpointOrBuilder()
         Endpoint on the authorization server to retrieve the access token from.
         
        .envoy.config.core.v3.HttpUri token_endpoint = 1;
      • getAuthorizationEndpoint

        java.lang.String getAuthorizationEndpoint()
         The endpoint redirect to for authorization in response to unauthorized requests.
         
        string authorization_endpoint = 2 [(.validate.rules) = { ... }
        Returns:
        The authorizationEndpoint.
      • getAuthorizationEndpointBytes

        com.google.protobuf.ByteString getAuthorizationEndpointBytes()
         The endpoint redirect to for authorization in response to unauthorized requests.
         
        string authorization_endpoint = 2 [(.validate.rules) = { ... }
        Returns:
        The bytes for authorizationEndpoint.
      • hasCredentials

        boolean hasCredentials()
         Credentials used for OAuth.
         
        .envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials credentials = 3 [(.validate.rules) = { ... }
        Returns:
        Whether the credentials field is set.
      • getCredentials

        OAuth2Credentials getCredentials()
         Credentials used for OAuth.
         
        .envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials credentials = 3 [(.validate.rules) = { ... }
        Returns:
        The credentials.
      • getCredentialsOrBuilder

        OAuth2CredentialsOrBuilder getCredentialsOrBuilder()
         Credentials used for OAuth.
         
        .envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials credentials = 3 [(.validate.rules) = { ... }
      • getRedirectUri

        java.lang.String 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) = { ... }
        Returns:
        The redirectUri.
      • getRedirectUriBytes

        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) = { ... }
        Returns:
        The bytes for redirectUri.
      • hasRedirectPathMatcher

        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) = { ... }
        Returns:
        Whether the redirectPathMatcher field is set.
      • getRedirectPathMatcher

        PathMatcher 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) = { ... }
        Returns:
        The redirectPathMatcher.
      • getRedirectPathMatcherOrBuilder

        PathMatcherOrBuilder 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) = { ... }
      • hasSignoutPath

        boolean hasSignoutPath()
         The path to sign a user out, clearing their credential cookies.
         
        .envoy.type.matcher.v3.PathMatcher signout_path = 6 [(.validate.rules) = { ... }
        Returns:
        Whether the signoutPath field is set.
      • getSignoutPath

        PathMatcher getSignoutPath()
         The path to sign a user out, clearing their credential cookies.
         
        .envoy.type.matcher.v3.PathMatcher signout_path = 6 [(.validate.rules) = { ... }
        Returns:
        The signoutPath.
      • getSignoutPathOrBuilder

        PathMatcherOrBuilder getSignoutPathOrBuilder()
         The path to sign a user out, clearing their credential cookies.
         
        .envoy.type.matcher.v3.PathMatcher signout_path = 6 [(.validate.rules) = { ... }
      • getForwardBearerToken

        boolean getForwardBearerToken()
         Forward the OAuth token as a Bearer to upstream web service.
         
        bool forward_bearer_token = 7;
        Returns:
        The forwardBearerToken.
      • getPassThroughMatcherList

        java.util.List<HeaderMatcher> 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;
      • getPassThroughMatcher

        HeaderMatcher getPassThroughMatcher​(int index)
         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;
      • getPassThroughMatcherCount

        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;
      • getPassThroughMatcherOrBuilderList

        java.util.List<? extends HeaderMatcherOrBuilder> 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;
      • getPassThroughMatcherOrBuilder

        HeaderMatcherOrBuilder getPassThroughMatcherOrBuilder​(int index)
         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;
      • getAuthScopesList

        java.util.List<java.lang.String> 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;
        Returns:
        A list containing the authScopes.
      • getAuthScopesCount

        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;
        Returns:
        The count of authScopes.
      • getAuthScopes

        java.lang.String getAuthScopes​(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;
        Parameters:
        index - The index of the element to return.
        Returns:
        The authScopes at the given index.
      • getAuthScopesBytes

        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;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the authScopes at the given index.
      • getResourcesList

        java.util.List<java.lang.String> getResourcesList()
         Optional resource parameter for authorization request
         RFC: https://tools.ietf.org/html/rfc8707
         
        repeated string resources = 10;
        Returns:
        A list containing the resources.
      • getResourcesCount

        int getResourcesCount()
         Optional resource parameter for authorization request
         RFC: https://tools.ietf.org/html/rfc8707
         
        repeated string resources = 10;
        Returns:
        The count of resources.
      • getResources

        java.lang.String getResources​(int index)
         Optional resource parameter for authorization request
         RFC: https://tools.ietf.org/html/rfc8707
         
        repeated string resources = 10;
        Parameters:
        index - The index of the element to return.
        Returns:
        The resources at the given index.
      • getResourcesBytes

        com.google.protobuf.ByteString getResourcesBytes​(int index)
         Optional resource parameter for authorization request
         RFC: https://tools.ietf.org/html/rfc8707
         
        repeated string resources = 10;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the resources at the given index.
      • getAuthTypeValue

        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) = { ... }
        Returns:
        The enum numeric value on the wire for authType.
      • getAuthType

        OAuth2Config.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) = { ... }
        Returns:
        The authType.