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

Deployed with App registrations, getting 401 responses (not authorized) #1593

Open
AyTonyM opened this issue Oct 18, 2024 · 8 comments
Open

Comments

@AyTonyM
Copy link

AyTonyM commented Oct 18, 2024

We deployed the application following the deployment guide. It was successfully deployed, however, we're seeing:
image"

GET /api/sentnotifications
Response code | 401

I have:

  • verified the secrets in the key vault are correct
  • re-synced the function apps and app service
  • added the six graph api permissions and granted admin consent
  • configured the scope for the graph api as well (api://redacted.azurefd.net/access_as_user)

image
image
image

App Service:
image

@peddivyshnavi peddivyshnavi self-assigned this Oct 21, 2024
@peddivyshnavi
Copy link
Collaborator

Hi @AyTonyM
Thanks for reaching out to us
sorry for delay in response we will get back to you ASAP

@peddivyshnavi
Copy link
Collaborator

Hi @AyTonyM
Upon review, we have see that the supported account type for the graph app registration is currently set to multi-tenant. Could you please update it to single-tenant
for reference :
image
deployment guide

@AyTonyM
Copy link
Author

AyTonyM commented Oct 21, 2024

We flipped that earlier in the troubleshooting process, however we see the same results:

image

@AyTonyM
Copy link
Author

AyTonyM commented Oct 21, 2024

Here's another screenshot of App Insights:
image

@peddivyshnavi
Copy link
Collaborator

peddivyshnavi commented Oct 21, 2024

Hi @AyTonyM
we will get back to you ASAP

@peddivyshnavi
Copy link
Collaborator

Hi @AyTonyM
Could you please check whether secrets got updated correctly in all app functions and app service
as well as could you please validate app domain value in manifest file

@AyTonyM
Copy link
Author

AyTonyM commented Oct 22, 2024

The manifest files for both the users and author files match the output from from the deployment:
image
image

Additionally, all of the connection strings point to valid key vault secrets, and I confirmed that those secrets correspond to the correct app registrations.

Does the user or author app registration need any api permissions like the graph app registration?

@peddivyshnavi
Copy link
Collaborator

peddivyshnavi commented Oct 23, 2024

Hi @AyTonyM
could you please check whether manifest section which is under manage in graph app registration is updated.

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

No branches or pull requests

2 participants