Answered by:
Blazor Server Authentication not working after publishing to Azure (linux)

Question
-
https://site.azurewebsites.net/
signin-google
?state=xxx
&code=yyy
&scope=email+profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile
&authuser=0
&prompt=noneSorry, there is nothing at this address.
This error occurs after trying to log in to google in a blazor app after publishing in azure linux (the same did not happen in the windows environment).
logging in normally (user + password) works, but cannot communicate with the API.- Moved by Xingyu ZhaoMicrosoft contingent staff Monday, August 31, 2020 1:18 AM
Sunday, August 30, 2020 9:23 PM
Answers
-
If you have an Azure question I'd try asking for help over here.
https://docs.microsoft.com/en-us/answers/products/azure?product=all
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Guido Franzke Tuesday, September 1, 2020 7:15 AM
- Marked as answer by Dave PatrickMVP Tuesday, September 8, 2020 1:21 PM
Monday, August 31, 2020 1:56 AM -
Good day,
As much as I understand from other posts, Blazor Server is implemented in the Azure Web App or in Azure Virtual Machine. I assume your best option is to ask the question in the WebApp forum here:
https://docs.microsoft.com/en-us/answers/topics/azure-webapps.html
Ronen Ariely
[Personal Site] [Blog] [Facebook] [Linkedin]- Proposed as answer by Guido Franzke Tuesday, September 1, 2020 7:15 AM
- Marked as answer by Dave PatrickMVP Tuesday, September 8, 2020 1:21 PM
Monday, August 31, 2020 12:18 PM -
I just ran into the same issue. I solved it by use https as protocol for the /signin-oidc endpoint even for localhost. So make sure that you add https://localhost:[PORT_OF_YOUR_LOCAL_APP]/signin-oidc to the redirect-uris.
- Proposed as answer by pituachMVP Tuesday, September 1, 2020 8:36 AM
- Marked as answer by Dave PatrickMVP Tuesday, September 8, 2020 1:21 PM
Monday, August 31, 2020 12:42 PM
All replies
-
Hi Dhiogo Acioli,
Thank you for posting here.
In order to help you find the correct forum to go ask questions, I have moved the thread to 'Where is the forum for ?' forum.
Thank you for your understanding.
Best Regards,
Xingyu Zhao
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Monday, August 31, 2020 1:18 AM -
If you have an Azure question I'd try asking for help over here.
https://docs.microsoft.com/en-us/answers/products/azure?product=all
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Guido Franzke Tuesday, September 1, 2020 7:15 AM
- Marked as answer by Dave PatrickMVP Tuesday, September 8, 2020 1:21 PM
Monday, August 31, 2020 1:56 AM -
Good day,
As much as I understand from other posts, Blazor Server is implemented in the Azure Web App or in Azure Virtual Machine. I assume your best option is to ask the question in the WebApp forum here:
https://docs.microsoft.com/en-us/answers/topics/azure-webapps.html
Ronen Ariely
[Personal Site] [Blog] [Facebook] [Linkedin]- Proposed as answer by Guido Franzke Tuesday, September 1, 2020 7:15 AM
- Marked as answer by Dave PatrickMVP Tuesday, September 8, 2020 1:21 PM
Monday, August 31, 2020 12:18 PM -
I just ran into the same issue. I solved it by use https as protocol for the /signin-oidc endpoint even for localhost. So make sure that you add https://localhost:[PORT_OF_YOUR_LOCAL_APP]/signin-oidc to the redirect-uris.
- Proposed as answer by pituachMVP Tuesday, September 1, 2020 8:36 AM
- Marked as answer by Dave PatrickMVP Tuesday, September 8, 2020 1:21 PM
Monday, August 31, 2020 12:42 PM