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

Angular2-adal WS-Federation Authentication #82

Open
smille69 opened this issue Jan 8, 2018 · 3 comments
Open

Angular2-adal WS-Federation Authentication #82

smille69 opened this issue Jan 8, 2018 · 3 comments

Comments

@smille69
Copy link

smille69 commented Jan 8, 2018

Is there an implementation of this library where you specify the domain and be taken directly to the Azure WS-Federation login page without having to enter your email address one page, then redirected to the Ws-Federation page to enter your password? Currently, if I see that if you Azure setup is using Ws-Federation, you get 2 login pages instead of just one. I would appreciate any help on this to be able to use WsFederation authentication. Has anyone done this before?

@wvanderdeijl
Copy link

we achieve this by adding a domain_hint query parameter to the ADAL request. You can do this by adding this to your ADAL config object:

        const config: adal.Config = {
            tenant: 'supersecret.onmicrosoft.com',
            clientId: 'xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
            extraQueryParameter: 'domain_hint=example.com'
        };

I don't understand why this is not better documented in the Azure docs, but I found this tip at http://www.cloudidentity.com/blog/2014/11/17/skipping-the-home-realm-discovery-page-in-azure-ad/

@smille69
Copy link
Author

smille69 commented Jan 8, 2018

OMG! That is what I needed!! You guys are the bomb!! You have an awesome library!!
Thanks a million!! Its works!
This is resolved and can be closed out. Thanks again!!

@wvanderdeijl
Copy link

It's actually not my library. I just stumbled upon your issue and happened to have figured this out a couple of weeks ago for my current project. Good luck.

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

2 participants