-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds helpers to determine if current token has a required scope Adds helper to calculate the minimum scope to be requested if necessary Fix test for prepScopes to match new behavior BREAKING CHANGE: prepScopes now accepts an array of scopes, this is checked against the set of currently consented scopes for the user. If any of the supplied scopes are found, then no additional scopes are requested. If no match is found then the user will be prompted to consent to the first scope in the supplied array of scopes fix: getGroupImage now correctly requires group.read.all or group.readwrite.all BREAKING CHANGE: applications using mgt-person with fetch-image and person-detal where the supplied value is a group will now need to consent to either Group.Read.All or Group.ReadWrite.All. This replaces the existing behavior where the group image would silently fail to load and show an http 403 error in the console fix: updated todo and planner permissions BREAKING CHANGE: minimal permission for planner calls changed from Group.ReadWrite.All to Tasks.ReadWrite for write operation and from Group.Read.All to Tasks.Read for read operations
- Loading branch information
1 parent
8900eb4
commit 81d124b
Showing
35 changed files
with
421 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,12 @@ | |
scopes="user.read,user.read.all,mail.readBasic,people.read,people.read.all,sites.read.all,user.readbasic.all,contacts.read,presence.read,presence.read.all,tasks.readwrite,tasks.read,calendars.read,group.read.all,files.read,files.read.all,files.readwrite,files.readwrite.all" | ||
></mgt-msal2-provider> --> | ||
|
||
<mgt-mock-provider></mgt-mock-provider> | ||
<mgt-msal2-provider | ||
client-id="2dfea037-938a-4ed8-9b35-c05708a1b241" | ||
redirect-uri="http://localhost:3000" | ||
></mgt-msal2-provider> | ||
|
||
<!-- <mgt-mock-provider></mgt-mock-provider> --> | ||
<header> | ||
<mgt-theme-toggle></mgt-theme-toggle> | ||
</header> | ||
|
@@ -58,7 +63,56 @@ <h2>mgt-login</h2> | |
</div> | ||
<!-- <mgt-login></mgt-login> --> | ||
<!-- <h2>mgt-person me query two lines card on click with presence</h2> --> | ||
<mgt-person person-query="me" view="twoLines" person-card="hover" show-presence></mgt-person> | ||
<!-- <mgt-person person-query="me" view="twoLines" person-card="hover" show-presence></mgt-person> --> | ||
<mgt-person fetch-image person-details='{ | ||
"id": "a2a36b00-b196-4286-adfc-7c1bedbffa39", | ||
"deletedDateTime": null, | ||
"classification": null, | ||
"createdDateTime": "2022-07-07T16:04:37Z", | ||
"creationOptions": [ | ||
"Team", | ||
"ExchangeProvisioningFlags:3552" | ||
], | ||
"description": "Welcome to the team that we've assembled to create the Mark 8.", | ||
"displayName": "Mark 8 Project Team", | ||
"expirationDateTime": null, | ||
"groupTypes": [ | ||
"Unified" | ||
], | ||
"isAssignableToRole": null, | ||
"mail": "[email protected]", | ||
"mailEnabled": true, | ||
"mailNickname": "Mark8ProjectTeam", | ||
"membershipRule": null, | ||
"membershipRuleProcessingState": null, | ||
"onPremisesDomainName": null, | ||
"onPremisesLastSyncDateTime": null, | ||
"onPremisesNetBiosName": null, | ||
"onPremisesSamAccountName": null, | ||
"onPremisesSecurityIdentifier": null, | ||
"onPremisesSyncEnabled": null, | ||
"preferredDataLocation": null, | ||
"preferredLanguage": null, | ||
"proxyAddresses": [ | ||
"SPO:SPO_8e2a3ed7-94b3-4a3f-a010-06c6aadcbdbb@SPO_262437ff-351d-4f6c-b543-bac09b5a0c23", | ||
"SMTP:[email protected]" | ||
], | ||
"renewedDateTime": "2022-07-07T16:04:37Z", | ||
"resourceBehaviorOptions": [ | ||
"HideGroupInOutlook", | ||
"SubscribeMembersToCalendarEventsDisabled", | ||
"WelcomeEmailDisabled" | ||
], | ||
"resourceProvisioningOptions": [ | ||
"Team" | ||
], | ||
"securityEnabled": false, | ||
"securityIdentifier": "S-1-12-1-2728618752-1116123542-461175981-972734445", | ||
"theme": null, | ||
"visibility": "Public", | ||
"onPremisesProvisioningErrors": [], | ||
"serviceProvisioningErrors": [] | ||
}'></mgt-person> | ||
<!-- <mgt-person-card person-query="me"></mgt-person-card> --> | ||
<!-- <h2>mgt-people-picker</h2> | ||
<mgt-people-picker selection-mode="single" show-max="6"></mgt-people-picker> | ||
|
@@ -69,8 +123,8 @@ <h2>mgt-login</h2> | |
<mgt-planner></mgt-planner> --> | ||
<!-- <h2>mgt-agenda group-by-day</h2> | ||
<mgt-agenda group-by-day></mgt-agenda> --> | ||
<!-- <h2>mgt-people show-presence</h2> | ||
<mgt-people show-presence></mgt-people> --> | ||
<h2>mgt-people show-presence</h2> | ||
<mgt-people group-id="a2a36b00-b196-4286-adfc-7c1bedbffa39"></mgt-people> | ||
<!-- <h2>mgt-todo</h2> | ||
<mgt-todo></mgt-todo> --> | ||
<!-- <h2>mgt-file-list</h2> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.