BlazorState icon indicating copy to clipboard operation
BlazorState copied to clipboard

Initializing State After Authenticating From OpenId Connect Events

Open RobinDavisNotts opened this issue 4 years ago • 1 comments

How would I initialize props from OpenId Connected Events?

From start up we need to show Tenant Id / Tenant Name which comes from the Identity Token, but can't seem to find a way to initialize that prop / state from when the token is successfully validated.

Thanks

RobinDavisNotts avatar Jun 10 '21 16:06 RobinDavisNotts

Hi @SeeSharpy, I don't have much experience with OpenID, do you have a sample solution I can take a look at. My thought would be that OpenID would be registered with DI and that you can inject something into the ConnectedComponent, but again, I'd need a sample to say for sure.

BerserkerDotNet avatar Jun 12 '21 17:06 BerserkerDotNet