Skip to content

Acquire token with login hint#9

Open
kaze1017 wants to merge 10 commits intogbwisx:masterfrom
pavanbuzz:acquireTokenWithLoginHint
Open

Acquire token with login hint#9
kaze1017 wants to merge 10 commits intogbwisx:masterfrom
pavanbuzz:acquireTokenWithLoginHint

Conversation

@kaze1017
Copy link
Copy Markdown

No description provided.

ppartha and others added 10 commits September 10, 2020 09:14
Fixing multiple calls to result, when getAccount is called
Re-organized files
Changed pubspec.yaml to latest format
Modified .gitignore
Adding lock file to repo
Needed to pull dependencies of MSAL library.
Bumping to the next major version since this includes a breaking change.
Copy link
Copy Markdown
Owner

@gbwisx gbwisx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I added some documentation for some of the changes you made and bumped the version to 1.0. My only suggestion was to merge the acquireToken and acquireTokenWithLoginHint functions together by just adding a loginHint optional param to acquireToken.

if (!silentResult.isSuccess && silentResult.isUiRequired) {

Map<String, dynamic> params = {'scopes': scopes};
if(loginHint != null){
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this condition just be added to the acquireToken function? You should be able to just add a third optional parameter of loginHint to the signature instead of creating a new mostly redundant function.

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

Successfully merging this pull request may close these issues.

3 participants