Last post May 15, 2021 05:29 PM by mgebhard
May 15, 2021 01:35 PM|wavemaster|LINK
Halfway through a lengthy
writeup from MSFT about Identity Server (IS) and hosted Blazor WASM apps.
At this point I need your guidance as the writer's choice of words has become imprecise. There is a clue maybe in the bolding of
one in "use one of the following approaches"? Approaches are: API Authorization options and Profile Service
Options in my mind optional and why would they pertain only to API Authorization and not the rest of the WASM app?
Is this really a one or the other case?
Are both options equal?
Which one is easier to read and maintain down the road?
Will either option preclude me from adding a Blazor Server app to this solution that utilizes the Controllers from the WASM.Server project?
May 15, 2021 05:29 PM|mgebhard|LINK
IdnetityServer4 returns a standard (default) set of claims. IProfileService is an extension point that lets you write code to add whatever claim(s) you like to the access token. The authorization options is another way to do the same.
I use the IProfileService approach.