Integrate Azure App Service authentication with React frontend#57
Integrate Azure App Service authentication with React frontend#57
Conversation
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
…ation Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
|
Seems ok |
|
@copilot deployment caused the following error : Run azure/webapps-deploy@v2 Number of files: 1 (reg: 1) sent 533 bytes received 35 bytes 162.29 bytes/sec Number of files: 2 (reg: 2) sent 652 bytes received 54 bytes 201.71 bytes/sec Number of files: 4 (reg: 2, dir: 2) sent 2.59K bytes received 60 bytes 756.57 bytes/sec Number of files: 4 (reg: 2, dir: 2) sent 48.47K bytes received 60 bytes 13.86K bytes/sec Number of files: 5 (reg: 2, dir: 3) sent 1.44M bytes received 63 bytes 262.29K bytes/sec |
The deployed app returns "Unauthorized client" because Azure App Service auth is enabled but the React frontend doesn't integrate with the infrastructure-level authentication endpoints.
Changes
Frontend Authentication Flow
/.auth/login/google,/.auth/login/aad)/.auth/me, conditionally render LoginPage or HomePage/.auth/logoutDeployment Pipeline
OAuth Configuration Required
Authentication requires OAuth apps configured with redirect URIs:
https://{env}-alpinebot-as.azurewebsites.net/.auth/login/google/callbackhttps://{env}-alpinebot-as.azurewebsites.net/.auth/login/aad/callbackSee
OAUTH_SETUP.mdfor complete setup instructions. GitHub secrets must be set:GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET,MICROSOFT_CLIENT_ID,MICROSOFT_CLIENT_SECRET.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.