ITfoxtec / ITfoxtec.Identity.BlazorWebAssembly.OpenidConnect

ITfoxtec Identity for Blazor WebAssembly add support for OpenID Connect with PKCE.
BSD 3-Clause "New" or "Revised" License
19 stars 5 forks source link

Disabling request to userinfo endpoint #26

Open aikoven opened 5 months ago

aikoven commented 5 months ago

Hi and thanks for this library!

In our setup we authenticate in OP with specified resource parameter to get an access token suited for particular audience. But the OP does not allow to use such tokens for userinfo endpoint — and it seems correct since the audience is an external API, not the OP itself.

The OP documentation suggests to use id_token claims instead of userinfo endpoint in this case.

Is it possible to add an option do disable userinfo request? Or maybe disable it implicitly if Resources is supplied.