While configuring Blazor Web Assembly Standalone, we have to specify the Oidc options using an Identity provider. For this we can use AddOidcAuthentication.
Now for configuring the AddOidcAuthentication we have to configure ProviderOptions and AuthenticationPaths.
AuthenticationPaths are the authentication path options as described in the Microsoft Documentation
RemoteAuthenticationApplicationPathsOptions have LogInPath, ProfilePath, RegisterPath. My understanding is that these are the actual remote login, profile and register paths as described by your Identity Provider documentation and our Web assembly will be redirected to authenticate, registry or modify user.
But I also see that there is an explicit RemoteProfilePath and RemoteRegisterPath.
So here are my confusions !
- What is the difference between ProfilePath and RemoteProfilePath and similarly difference between RegisterPath and RemoteRegisterPath?
- When we are using an IdentityProvider I thought the paths will always be remote, as they are not native to you web assembly application and they are provided by your Identity Provider (like Microsoft, Google etc.). We would do an authentication for user against these paths for a client Id. Is this not correct ?
- If there is difference between RegisterPath and RemoteRegisterPath, then why there is no RemoteLoginPath.
- And finally when do use which version of authentication path, is there any example or documentation that explains this ?
I tried searching for documentation or example but could not fine a clear explanation. Any thought and explanations to help clarify this from experts is really appreciated !
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…