Hi, I am trying to understand whether the oauth mo...
# http4k
m
Hi, I am trying to understand whether the oauth module does provide a way to fetch the authenticated user information somehow (e.g.
<http://whatever/me>
) or propagate the token down the handlers chain/stack once the authFilter is satisfied.
s
You can use
OAuthPersistence.retrieveToken
to get the token after the authorisation flow. If you don't want to expose that persistence in various places, you can use a filter + request contexts to store the token directly in the in-flight request
m
Ok that’s what I thought, so there isn’t a filter or anything built-in, I have to provide one. Thanks for the suggestions @s4nchez, I think the filter + context is prob what I would go for.
👍 1