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

How is acquiretoken called? #7

Open
negberts opened this issue Jul 7, 2016 · 4 comments
Open

How is acquiretoken called? #7

negberts opened this issue Jul 7, 2016 · 4 comments
Labels

Comments

@negberts
Copy link

negberts commented Jul 7, 2016

I've tried several approches...

this.adalService.acquireToken('resource');
this.adalService.acquireToken('resource')();
this.adalService.acquireToken('resource')().subscribe(s => console.log(s));
var acquireTokenFn = this.adalService.acquireToken('resource')
var result = acquireTokenFn( (token) => {
console.log(token);
});
result.subscribe( success => { console.log(success) } );

but none seem to give me the token... Please help :)

@alenny
Copy link
Owner

alenny commented Jul 7, 2016

Not implemented yet.
Working on that.

@sureshchahal
Copy link

#11 pull request submitted. until request is accepted, you can find code in branch forked by me

@carlosrbr
Copy link

try
this.adalService.getCachedToken('xxx') where xxx is clientId. this works for me.

@yuyingliu331
Copy link

This worked for me:
this.adalService.acquireToken(appIdUri).subscribe(p => { toeken = p}) ... the resource is api Uri

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

No branches or pull requests

5 participants