Open sudipta-chaudhari opened 7 years ago
@bobby-ind: token to rest api is passed automatically if you use AuthHttp class provided within package
On Tue, May 9, 2017 at 8:00 AM, bobby-ind notifications@github.com wrote:
This is working only for Azure B2B AD and not for Azure B2C AD. I need to provide the B2C SignIn policy. (1) How can I make it work with B2C Azure AD? (2) How can I fetch the Token as a string as I need to pass the Bearer token to authenticate & call a REST service? (3) How do I list the claims?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sureshchahal/angular2-adal/issues/43, or mute the thread https://github.com/notifications/unsubscribe-auth/ARLaH7jrB2GUptKTaDOENWbNqRQ1iiJ5ks5r4GN9gaJpZM4NVSDp .
(1) Please provide example how to fetch d token. I need the token to pass in HTTP header. (2) How can I provide a 'Sign In' policy to authenticate against Azure B2C active directory?
Example:
import { AuthHttp } from 'ng2-adal/services';
in your constructor: private authHttp: AuthHttp
instead of http.get => authHttp.get
@rjwijnen : How can I provide a 'Sign In' policy to authenticate against Azure B2C active directory?
@bobby-ind This library is based on ADAL. For Azure AD B2C you should try MSAL, the new Microsoft authentication library that uses v2 endpoints.
This is working only for Azure B2B AD and not for Azure B2C AD. I need to provide the B2C SignIn policy. (1) How can I make it work with B2C Azure AD? (2) How can I fetch the Token as a string as I need to pass the Bearer token to authenticate & call a REST service? (3) How do I list the claims?