Skip to content

Commit

Permalink
Merge pull request #138 from blackboard/feature/add-external-id-custo…
Browse files Browse the repository at this point in the history
…m-claim

Added new substitution variable in custom claim for user UPN
  • Loading branch information
pablolizardo-blackboard authored Nov 28, 2022
2 parents 7504d47 + 0b5fd98 commit dc4422f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,17 @@ Custom JSON can also be entered and used to create deep linked items.
Docker specific files are included (Dockerfile, docker-compose.yml, launch.sh).

Build the LTI tool container with `docker build -t lti-tool .`. Then start containers using `docker-compose up`.

# Substituion variables:

- **$CourseGroup.id**

To be used for the integration of Cloud Document contents. Resolve the UUID of the assigned group of the content.

- `minimum-learn-version` : _To be used internally for now. Minium version to be defined._

- **$User.externalIdentifiers.UPN** _for Microsoft_

To be used for the integration of Cloud Document contents. Resolve the UPN (User Personal Name) of a user for this Microsoft Integration. For Ultra, the UPN will be the registered institutional email of the user.

- `minimum-learn-version` : _To be used internally for now. Minimun version to be defined._
3 changes: 3 additions & 0 deletions server/src/app/deep-linking.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ let deepLinkingLTILink = function () {
userName: '$User.username',
userEmail: '$Person.email.primary',
userSysRoles: '@[email protected]@X@',
externalIdentifierUPN: '$User.externalIdentifiers.UPN',
source: 'link'
}
};
Expand Down Expand Up @@ -200,6 +201,7 @@ let deepLinkingNewWindowLTILink = function () {
userEmail: '$Person.email.primary',
groupId: '$CourseGroup.id',
userSysRoles: '@[email protected]@X@',
externalIdentifierUPN: '$User.externalIdentifiers.UPN',
source: 'new window link'
},
window: {
Expand Down Expand Up @@ -230,6 +232,7 @@ let deepLinkingEmbedLTILink = function () {
groupId: '$CourseGroup.id',
userEmail: '$Person.email.primary',
userSysRoles: '@[email protected]@X@',
externalIdentifierUPN: '$User.externalIdentifiers.UPN',
assignment_pk: '@[email protected]_string@X@',
course_pk: '@[email protected]_string@X@'
}
Expand Down

0 comments on commit dc4422f

Please sign in to comment.