Interface MCPServerOAuth3LOConfig.Builder

  • Method Details

    • clientName

      MCPServerOAuth3LOConfig.Builder clientName(String clientName)

      User friendly OAuth client name specified by end user.

      Parameters:
      clientName - User friendly OAuth client name specified by end user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientId

      OAuth client ID for authenticating with the service.

      Parameters:
      clientId - OAuth client ID for authenticating with the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exchangeParameters

      MCPServerOAuth3LOConfig.Builder exchangeParameters(Map<String,String> exchangeParameters)

      OAuth token exchange parameters for authenticating with the service.

      Parameters:
      exchangeParameters - OAuth token exchange parameters for authenticating with the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • returnToEndpoint

      MCPServerOAuth3LOConfig.Builder returnToEndpoint(String returnToEndpoint)

      The endpoint to return to after OAuth flow completes (must be AWS console domain)

      Parameters:
      returnToEndpoint - The endpoint to return to after OAuth flow completes (must be AWS console domain)
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authorizationUrl

      MCPServerOAuth3LOConfig.Builder authorizationUrl(String authorizationUrl)

      OAuth authorization URL for 3LO authentication.

      Parameters:
      authorizationUrl - OAuth authorization URL for 3LO authentication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exchangeUrl

      MCPServerOAuth3LOConfig.Builder exchangeUrl(String exchangeUrl)

      OAuth token exchange URL.

      Parameters:
      exchangeUrl - OAuth token exchange URL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientSecret

      MCPServerOAuth3LOConfig.Builder clientSecret(String clientSecret)

      OAuth client secret for authenticating with the service. Required for confidential clients or when PKCE is not supported. Optional for public clients using PKCE.

      Parameters:
      clientSecret - OAuth client secret for authenticating with the service. Required for confidential clients or when PKCE is not supported. Optional for public clients using PKCE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportCodeChallenge

      MCPServerOAuth3LOConfig.Builder supportCodeChallenge(Boolean supportCodeChallenge)

      Whether the service supports PKCE (Proof Key for Code Exchange) for enhanced security during the OAuth flow.

      Parameters:
      supportCodeChallenge - Whether the service supports PKCE (Proof Key for Code Exchange) for enhanced security during the OAuth flow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopes

      OAuth scopes for 3LO authentication. The service will always request scope offline_access.

      Parameters:
      scopes - OAuth scopes for 3LO authentication. The service will always request scope offline_access.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopes

      OAuth scopes for 3LO authentication. The service will always request scope offline_access.

      Parameters:
      scopes - OAuth scopes for 3LO authentication. The service will always request scope offline_access.
      Returns:
      Returns a reference to this object so that method calls can be chained together.