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

AdalConfig.resource field is ignored. #30

Open
oleg-baulo opened this issue Apr 21, 2017 · 0 comments
Open

AdalConfig.resource field is ignored. #30

oleg-baulo opened this issue Apr 21, 2017 · 0 comments

Comments

@oleg-baulo
Copy link

Code:
let config = new AdalConfig(.... other parameters .... );
config.resource = "https://some.com/SomeApi";
let context = Authentication.getContext(this.createConfig());
context.login();

Expected result:
when setting .resource field of AdalConfig
&resource parameter is added to https://login.microsoftonline.com/ url.

Actual result:
&resource parameter is not provided.

Workaround: had to use 'extraQueryParameter' field instead.
config.extraQueryParameter = "nux=1";
was changed to
config.extraQueryParameter = "nux=1&https://some.com/SomeApi";

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