Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feedback After adding google Authentication in Azure Functions app i get Encountered an error (Forbidden) from extensions API in azure #124954

Open
Sampath280 opened this issue Nov 27, 2024 · 2 comments

Comments

@Sampath280
Copy link

Sampath280 commented Nov 27, 2024

Type of issue

Other (describe below)

Feedback

I have created a sample Azure Function locally and deployed it to Azure. The function is working correctly, and I have tested it using the URL: https://<your-function-app>.azurewebsites.net/api/<your-function>?code=<your-function-key> and code+test.

I added Google authentication to the Azure Function App as shown below:

image

While accessing https://<your-function-app>.azurewebsites.net/, I encountered an error. I resolved this issue by using the URL https://<app-name>.azurewebsites.net/.auth/#/google/callback. After that, I was able to access the URL: https://<your-function-app>.azurewebsites.net/api/<your-function>. The Function App URL is now working as expected, and here are the logs:

image

However, in the Azure portal, under Code + Test, Get Function URL, and Integration, I am encountering the following error:
Encountered an error (Forbidden) from extensions API.

How can I resolve this issue?
image

Page URL

https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/app-service/configure-authentication-provider-google.md

Content source URL

https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-google

Author

Rageking8

Document Id

2b2f9abf-9120-4aac-ac5b-4a268d9b6e2b

ms.topic: article
ms.date: 03/29/2021
ms.custom: fasttrack-edit, AppServiceIdentity
author: cephalin
ms.author: cephalin

@PesalaPavan
Copy link
Contributor

@Sampath280
Thanks for your feedback! We will investigate and update as appropriate.

@Sampath280
Copy link
Author

Sampath280 commented Nov 28, 2024

@PesalaPavan In the Azure portal, under Code + Test, Get Function URL, and Integration, I am encountering the following error:
Encountered an error (Forbidden) from extensions API.

But by using the URL this https://.azurewebsites.net/.auth/#/google/callback Outside the azure. After that, I was able to access the URL: https://.azurewebsites.net/api/your-function . I need to resolve the error in Code + Test, Get Function URL, and Integration.

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

No branches or pull requests

3 participants