Skip to content
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

Having trouble accessing UrlList API request #64

Open
Rcatalfu opened this issue Apr 3, 2021 · 3 comments
Open

Having trouble accessing UrlList API request #64

Rcatalfu opened this issue Apr 3, 2021 · 3 comments

Comments

@Rcatalfu
Copy link

Rcatalfu commented Apr 3, 2021

Hi,
When I try to deploy this on Azure, it successfully deploys, but I had to follow a slightly different process due to using two different tenants - one for Azure and one for Azure Active Directory. I couldn't use Express deployment.
My issue comes when I login - I am getting a 400 Bad Request with one of the POST requests - the one to get an OAuth2 token. The token scope is attempting to get a scope of https://shortenertoolsdl6rq.azurewebsites.netuser_impersonation. It doesn't add the '/' needed in this scope to allow it to work. I could get around this by modifying the Program.cs and AzFuncAuthorizationMessageHandler.cs file.
I then faced a 401 Not Authorized from UrlList. This seems to be due to the destination being the frontend? Can you please help to provide guidance? This might be something easy I missed (I am in school studying Computer Science, so I thought this might be a fun program to try to deploy to learn more on Azure).
Thank you!
Ryan

@neggles
Copy link

neggles commented Apr 28, 2021

In src/TinyBlazorAdmin/wwwroot/appsettings.json you have

[...]
  "UrlShortenerSecuredService": {
    "Endpoint": "https://shortenertoolsdl6rq.azurewebsites.net"
  },
[...]

It needs to be

[...]
  "UrlShortenerSecuredService": {
    "Endpoint": "https://shortenertoolsdl6rq.azurewebsites.net/"
  },
[...]

with the slash on the end, as per the docs ;)

@cryongen
Copy link

same problem form me, Endpoint already has h=the slash charcter.

@FBoucher
Copy link
Collaborator

Try again with v3 it should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants