-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
401 Unauthorized on api/UrlList #82
Comments
Hi, did you resolve this? I'm can't login using azure ad, how did you get it working? I'm getting an issue similar to #80. Thanks in advance |
Okay so have the AD auth working but now getting same error An unhandled error has occurred. |
So im now getting something similar to this crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] |
did you manage to fix it? what we did was to edit the AzFuncAuthorizationMessageHandler.cs to look like this (adding the API endpoint to the handler): after that you need to change the appsettings.json to include the API endpoint: |
When I try to access the "URLs Manager" I'm getting 401 Unauthorized from the service -- but I don't understand why, and I'm hoping someone can give me a nudge in the right direction.
The service is running (no problem there, of course)...
I temporarily disabled the authentication check on
UrlShortener
and added a few URLs and tested them, so I'm sure the actual function app is working, I just can't figure out how to authenticate to it.I eventually got my AAD apps and custom domains and CORS all working -- and was able to log in with the TinyBlazorAdmin pointing at my function app... but every attempt to actually use the admin app is resulting in those "An unhandled error has occurred. Reload" error bars, and showing up in the logs for UrlList or UrlClickStatsByDay as "Request was not authenticated."
Browser debug tools shows I'm sending an
authorization: Bearer ....
token in the request, but I don't understand where I went wrong.The text was updated successfully, but these errors were encountered: