Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

AAD Login #382

Open
WaveDev12 opened this issue Jun 22, 2018 · 7 comments
Open

AAD Login #382

WaveDev12 opened this issue Jun 22, 2018 · 7 comments

Comments

@WaveDev12
Copy link

Hey guys, I have a problem logging in via azure active directory. When I register I get a message "You have successfully signed in" but there I get into a loop. I can't get on the dashboard.
Anybody know the problem?

Thank you and greetings

@morsh
Copy link
Contributor

morsh commented Jun 25, 2018

Hi @WaveDev12 - This usually can happen in the local development environment.
Can you please try to open localhost:4000 and then open localhost:3000?

@WaveDev12
Copy link
Author

Hi @morsh - im not using the local environment. The Dashboard is online in Azure.
I checked everything again and followed the instructions exactly but it doesn't work.

@morsh
Copy link
Contributor

morsh commented Jul 2, 2018

@WaveDev12 - Can you please send the exact steps to reproduce the problem?
AFAIK - Continuous Deployment to a Web App on Azure is successful even when activating AAD Authentication.

@WaveDev12
Copy link
Author

WaveDev12 commented Jul 4, 2018

I followed exactly the steps in the manual. I have also gone through these steps several times.

capture

and if I click on back to the website, then I come back here to the page.

@morsh
Copy link
Contributor

morsh commented Jul 4, 2018

@WaveDev12
I'm guessing you've used 1. Web App - Automated: https://github.com/Azure/ibex-dashboard#1-web-app---automated

And afterwards you've:

  1. Created a service principal
  2. Copied the correct tenant id
  3. You've copied Application Id (and not object id)
  4. You've copied a correct key password
  5. In both cases, you didn't omit / add any characters
  6. You've added reader role to the new service principal

Are all these conditions met?

@WaveDev12
Copy link
Author

WaveDev12 commented Jul 4, 2018

Hi @morsh

yes I've used the Web App Automated.
I checked all 6 steps of u again and the login loop is still there. :(

Can the problem be related to the redirectURL ?
If i use the "https://xxxxxxx.azurewebsites.net/auth/openid/return" - i get a error messages and can't login.
If i using https://xxxxxxx.azurewebsites.net/.auth/login/aad/callback - is all fine except the login loop.

maybe the Log stream helps.

capture

@morsh
Copy link
Contributor

morsh commented Jul 4, 2018

@WaveDev12
Hmm... The url should be:
https://xxxxxxx.azurewebsites.net/auth/openid/return

And that URL should be registered in the App Registrations > Settings > Reply URLs for the service principal (Just to be on the safe side, try setting two entries, one with http://... and one with https://...)

Can you make sure, those are set correctly?

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

No branches or pull requests

2 participants