-
I'm relatively new to this so please excuse my ignorance. I've been trying to figure out how to give a custom authority to the Uno.Extensions.Authentication.MSAL I've tried throwing various strings like B2CAuthority, Authority, etc, into the appsettings.json. I've tried this in the builder. If i leave in the appsettings, things work but it appears to not use the authority. if i remove appsettings, i get a error regarding the null client id. Thus, it appears to ignore this regardless.
I imagine I'm missing something obvious, but the builder lambdas are relatively new to me. How can I specify the authority for authentication to use? thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok. I figured it out. You have to add exactly one scope to the "MsalAuthentication" section of appsettings (at least for my case, using Azure B2C, I get an error otherwise). In case anyone else comes here looking for the solution, here's what i ended up using in app.cs:
|
Beta Was this translation helpful? Give feedback.
Ok. I figured it out. You have to add exactly one scope to the "MsalAuthentication" section of appsettings (at least for my case, using Azure B2C, I get an error otherwise).
In case anyone else comes here looking for the solution, here's what i ended up using in app.cs: