Skip to content

Commit

Permalink
Consent data aligned to new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Vangaorth committed Jun 7, 2024
1 parent 1efe711 commit 82e1c02
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/features/fims/routers/providerRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,19 @@ addHandler(

const consentData = {
_links: {
abort: {
href: `${baseProviderPath()}/interaction/${requestInteractionId}/abort`
},
confirm: {
href: `${baseProviderPath()}/interaction/${requestInteractionId}/confirm`
}
},
service_id: relyingParty.serviceId,
redirection: {
redirect: {
display_name: relyingParty.displayName
},
type: "consent",
claims: oidcData.scopes.map(scope => ({
user_metadata: oidcData.scopes.map(scope => ({
name: scope,
display_name: translationForScope(scope)
}))
Expand Down Expand Up @@ -350,7 +353,7 @@ addHandler(

addHandler(
fimsProviderRouter,
"get",
"post",
`${baseProviderPath()}/interaction/:id/abort`,
(req, res) => {
const requestInteractionId = req.params.id;
Expand Down

0 comments on commit 82e1c02

Please sign in to comment.