Compare commits
2 Commits
switching-
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8734abcc99 | |||
| c66cfb3c9e |
@@ -1,5 +1,6 @@
|
||||
export interface MsGraphModuleOptions {
|
||||
tenantId: string;
|
||||
authority: string;
|
||||
clientId: string;
|
||||
clientSecret: string;
|
||||
tenantId: string;
|
||||
}
|
||||
@@ -18,7 +18,7 @@ export class MsGraphService {
|
||||
auth: {
|
||||
clientId: this.msGraphModuleOptions.clientId,
|
||||
clientSecret: this.msGraphModuleOptions.clientSecret,
|
||||
authority: `https://login.microsoftonline.com/${this.msGraphModuleOptions.tenantId}`
|
||||
authority: this.msGraphModuleOptions.authority
|
||||
}
|
||||
});
|
||||
const authenticationResult: AuthenticationResult = await cca.acquireTokenOnBehalfOf(oboRequest);
|
||||
@@ -67,7 +67,7 @@ export class MsGraphService {
|
||||
|
||||
async searchUsers(accessToken, searchText: string): Promise<any> {
|
||||
try {
|
||||
const graphToken: string = await this.getMsGraphAuth(accessToken, ['user.read']);
|
||||
const graphToken: string = await this.getMsGraphAuth(accessToken, ['user.read.all']);
|
||||
const client: Client = await this.getMsGraphClientDelegated(graphToken);
|
||||
const results: any = await client
|
||||
.api('users')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@noahspan/noahspan-modules",
|
||||
"version": "1.2.8",
|
||||
"version": "1.2.11",
|
||||
"description": "",
|
||||
"author": "",
|
||||
"license": "UNLICENSED",
|
||||
|
||||
Reference in New Issue
Block a user