Skip to content

Commit

Permalink
feat(ms-adal): add authentication settings (#3252)
Browse files Browse the repository at this point in the history
  • Loading branch information
dallastjames authored and danielsogl committed Dec 9, 2019
1 parent 6f4d23d commit 1aa89ae
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/@ionic-native/plugins/ms-adal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,20 @@ export class AuthenticationContext {
}

}

export class AuthenticationSettings {
/**
* Sets flag to use or skip authentication broker.
* By default, the flag value is false and ADAL will not talk to broker.
*
* @param useBroker Flag to use or skip authentication broker
*
* @returns {Promise} Promise either fulfilled or rejected with error
*/
@CordovaInstance({
otherPromise: true
})
static setUseBroker(useBroker: boolean): Promise<void> {
return;
}
}

0 comments on commit 1aa89ae

Please sign in to comment.