You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No way to access a refresh_token in the oauth2 filter #17808
I am using OAuth2 filter to protect my microservices. Identity broker is Keycloak.
According Keycloak documentation many its REST API methods are required passing refresh_token instead of access_token.
For example to logout user from identity provider I need to pass the refresh_token to authentificate me on the server.
It's strange, but keycloak developers designed so.
Configuring OAuth2 filter I can specify token endpoint and whether to pass the recieved access_token to upstream ( forward_bearer_token parameter). But the received refresh_token just get lost by envoy. How can I get a refresh_token?
I am ready to make PR to save refresh_token somewhere in the OAuth2 filter. What do you think?
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
I found one more general case.
To logout user many OAuth provider receive id_token through id_token_hint query parameter. This is used as an indication of the identity of the End-User. Right now envoy doesn't save id_token anywhere, so I cannot get this parameter. So, it looks like I also need to save id_token.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
@rgs1 Could this issue be re-opened and tagged help-wanted? This feature would be valuable for me as well and I think it could be beneficial to more people.
Activity
phlax commentedon Aug 23, 2021
cc @rgs1 @asraa
rgs1 commentedon Aug 24, 2021
Thanks for reporting this @Alexcei88 – happy to help reviewing a PR if you want to start working on something.
github-actions commentedon Sep 23, 2021
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
Alexcei88 commentedon Sep 29, 2021
I found one more general case.
To logout user many OAuth provider receive id_token through id_token_hint query parameter. This is used as an indication of the identity of the End-User. Right now envoy doesn't save id_token anywhere, so I cannot get this parameter. So, it looks like I also need to save id_token.
I will take care it soon.
github-actions commentedon Oct 29, 2021
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
github-actions commentedon Nov 5, 2021
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
siepkes commentedon Nov 17, 2021
@rgs1 Could this issue be re-opened and tagged help-wanted? This feature would be valuable for me as well and I think it could be beneficial to more people.
Alexcei88 commentedon Nov 17, 2021
@siepkes , PR already approved some days ago and changes merged to the main branch. No need to re-open issue
phlax commentedon Nov 17, 2021
@Alexcei88 which PR -
shall i close this ticket again ?Alexcei88 commentedon Nov 17, 2021
#18353
siepkes commentedon Nov 17, 2021
@Alexcei88 Totally missed that one, sorry!