Closed danilocatapan closed 1 year ago
This can be done in 2 ways:
1) Expose method to obtain user via interface OAuth2WebClient (This is if we are going to mainstream the feature via public interface)
2) Change visibility of getUser()
method from package-protected to public in implementation https://github.com/vert-x3/vertx-web/blob/847b594b67f1f48778d14e18da62344bc3608aed/vertx-web-client/src/main/java/io/vertx/ext/web/client/impl/Oauth2WebClientAware.java#L63 (This would require to cast the interface to Implementation class and obtain like that, as a concealed feature)
@pmlopes would be the person to consult but I guess the correct way is option 1.
I will backport this to 4.x
Fixed in 4.x
by 82042d299
Describe the feature
Ability to introspect and log the OAuth token obtained by the OAuth2WebClient.
Use cases
Current Behavior
Currently, after setting up the OAuth2WebClient with the required configurations, there isn't a straightforward way to introspect or log the obtained OAuth token.
I would like to be able to consult/log the token after this configuration.
Contribution
While I am capable of drafting the feature request, I may not have the expertise to implement it. I'm hoping the Vertx team or someone familiar with the OAuth2WebClient internals can take this forward. However, if there are guidelines provided, I or other community members might be interested in contributing.