Skip to content

Commit

Permalink
Allow editor-api to request roles assigned to users (#918)
Browse files Browse the repository at this point in the history
This is to support the Learning Management MVP. We need to determine
whether the user is a `school-owner`, `school-teacher` or
`school-student`.

More context:

https://raspberrypifoundation.slack.com/archives/C02JBAA2NFP/p1707153536934779?thread_ts=1707152297.160759&cid=C02JBAA2NFP
  • Loading branch information
tuzz committed Feb 19, 2024
1 parent 48e8179 commit f894a46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Changed

- Made `p5` canvas responsive to the available space (#887)
- Specify the 'roles' scope in OAuth requests

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion src/utils/userManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const userManagerConfig = {
redirect_uri: `${host}/auth/callback`,
post_logout_redirect_uri: host,
response_type: "code",
scope: "openid email profile force-consent allow-u13-login",
scope: "openid email profile force-consent allow-u13-login roles",
authority: process.env.REACT_APP_AUTHENTICATION_URL,
silent_redirect_uri: `${host}/auth/silent_renew`,
automaticSilentRenew: true,
Expand Down

0 comments on commit f894a46

Please sign in to comment.