IdentityServer / IdentityServer4

OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
https://identityserver.io
Apache License 2.0
9.23k stars 4.01k forks source link

How to access to the authorization context in a service #5352

Closed juanan closed 2 years ago

juanan commented 2 years ago

Hi,

I have my own RefreshTokenService service

internal class RefreshTokenService : DefaultRefreshTokenService

and I would like to access there to the authorization context (in the same way that I do it in a controller using _interaction.GetAuthorizationContextAsync(requestUrl)).

How can achieve that?

The SPA is using authorization code flow and passing me extra parameters and I want to take some of those parameters in my service.

If I can not get the auth context at least the original authorization request, is that possible?

Thanks a lot.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Questions are community supported only and the authors/maintainers may or may not have time to reply. If you or your company would like commercial support, please see here for more information.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.