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

Azure OAuth Authentication Issues in v 0.4.2 #1770

Open
reckart-everstream opened this issue Apr 24, 2024 Discussed in #1512 · 2 comments
Open

Azure OAuth Authentication Issues in v 0.4.2 #1770

reckart-everstream opened this issue Apr 24, 2024 Discussed in #1512 · 2 comments

Comments

@reckart-everstream
Copy link

I seam to be experiencing some Azure AD auth issues when setting things up, I've tried opening up the firewall and keeping it locked down to just Azure inbound data centers. Nothings seams to help.
Below is the error trace:
File "/opt/web/powerdns-admin/venv/lib/python3.10/site-packages/flask/app.py", line 2529, in wsgi_app
Apr 24 19:26:48 ns1 gunicorn[52881]: response = self.full_dispatch_request()
Apr 24 19:26:48 ns1 gunicorn[52881]: File "/opt/web/powerdns-admin/venv/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
Apr 24 19:26:48 ns1 gunicorn[52881]: rv = self.handle_user_exception(e)
Apr 24 19:26:48 ns1 gunicorn[52881]: File "/opt/web/powerdns-admin/venv/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
Apr 24 19:26:48 ns1 gunicorn[52881]: rv = self.dispatch_request()
Apr 24 19:26:48 ns1 gunicorn[52881]: File "/opt/web/powerdns-admin/venv/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
Apr 24 19:26:48 ns1 gunicorn[52881]: return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
Apr 24 19:26:48 ns1 gunicorn[52881]: File "/opt/web/powerdns-admin/powerdnsadmin/routes/index.py", line 237, in login
Apr 24 19:26:48 ns1 gunicorn[52881]: azure_username = user_data["userPrincipalName"]
Apr 24 19:26:48 ns1 gunicorn[52881]: KeyError: 'userPrincipalName'

@reckart-everstream
Copy link
Author

After configuration of Azure AD, attempting to navigate the UI brings up a HTTP 500 Error after successfully authenticating to the Azure AD tenant.
Screenshot 2024-04-24 at 4 03 40 PM

@reckart-everstream
Copy link
Author

Screenshot 2024-04-24 at 4 05 35 PM

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

No branches or pull requests

1 participant