Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra enhanced auth token to all APIs requests #790

Open
yinan-symphony opened this issue Feb 1, 2024 · 0 comments
Open

Add extra enhanced auth token to all APIs requests #790

yinan-symphony opened this issue Feb 1, 2024 · 0 comments
Assignees
Labels
[type] enhancement New feature or request

Comments

@yinan-symphony
Copy link
Contributor

yinan-symphony commented Feb 1, 2024

Feature Request

The requested feature would be provide a way to inject an extra auth token to all API requests' header,
along with a way to automatically refresh the token when it s expired.

Description of Problem:

Symphony APIs requires the session token and key manager token to authenticate the requests.
in BDK, once the bot authenticates itself, the retrieved tokens are systematically added to all APIs requests.

However in case where all Symphony components are behind a gateway, Apigee for instance, there is no
way to inject the extra auth token to all API requests, in order to authenticate the requests against Apigee,
therefore requests are rejected.

Potential Solutions:

A new interface allowing bdk bot developer to retrieve the token, also determine the expiration of the token
based on the exception.

     public interface CustomEnhancedAuthAuthenticator {
          
        /**
         * Authenticates.
         *
         * @return the authentication session.
         */
        @Nonnull
        String authenticate() throws AuthUnauthorizedException;
      
        boolean isAuthTokenExpired(ApiException exception);
     }
@yinan-symphony yinan-symphony self-assigned this Feb 1, 2024
@yinan-symphony yinan-symphony added the [type] enhancement New feature or request label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[type] enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant