-
Notifications
You must be signed in to change notification settings - Fork 869
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
Unable to sign in when using existing app registration for authentication #108
Comments
There are no specific aspects of the Azure Naming Tool in regards to Azure App Service authentication. The challenge you experiencing is due to your registration not being configured correctly for the App Service. I usually recommend clients create a new app registration, however, an existing one works too. You just have to be sure to set all the correct settings in the registration itself. As a starting point, I would create the app registration and review all the registration settings it creates, then duplicate those within the existing registration you would like to use. Hope this helps!
|
Have experienced this same issue, webapp deployed via tf and gitlab runner using webapp deploy cli cmd. |
@Rod-Welsh did you manage to resolve this? |
@captainhook - Eventually yes we managed to get it working. |
Would you mind sharing what you did to resolve it? Thanks |
@Rod-Welsh Could you share how you managed to get it working? I am planning to deploy this tool in my organization. |
Hi @captainhook and @ebbypeter - apologies about the slow return. |
Legend - thank you! I will give this a try and then confirm/close this issue. |
Tool version
4.2.1
Describe the bug
In setting up authentication for the App Service, I would like to re-use an existing App Registration rather than create a new one. However when I do this, it shows a 'We couldn't sign you in. Please try again.' error message.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should login and make Az Naming Tool available for use.
Screenshots
![image](https://private-user-images.githubusercontent.com/16797541/342425374-e3bff669-54a9-4585-ad90-eb053aa81757.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODE1MTAsIm5iZiI6MTczOTA4MTIxMCwicGF0aCI6Ii8xNjc5NzU0MS8zNDI0MjUzNzQtZTNiZmY2NjktNTRhOS00NTg1LWFkOTAtZWIwNTNhYTgxNzU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA2MDY1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyOTNlZTkxOTFjMmIzOTViZGVkOGJjMTE2ZWYyN2U2NjgzN2EyODgwNDE5NTM0NDkzNTk3MTZmZTNjYjk0YmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-9Kt_lK_1_Xv8KH_UrfsAmh4zOBbjlzwXUqmwFOfgj4)
Installation Method
Azure App Service deployed using Terraform. Azure Naming Tool built and deployed using Azure DevOps CI/CD pipelines.
Additional context
When using the 'Create new app registration' option, it appears to work fine. If I disconnect from this app and then try to manually reconnect, it starts to fail again.
I have added the Redirect URI (https://app-appname-001.azurewebsites.net/.auth/login/aad/callback) and API scope on the App Registration so I can't see what I'm missing from the existing App Reg or why it stops working on the one which the App Service creates itself.
The text was updated successfully, but these errors were encountered: