Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
tibetsprague committed Jun 23, 2022
2 parents 577fc77 + 53f68a3 commit 2856888
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/services/OpenIDConnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const configuration = {
'invite_subject', // The email subject of invite messages sent to users created by this client
'invite_message', // The email body of invite messages sent to users created by this client
'name', // The name of the API client
'role' // Can give a client super powers by giving them a role of 'super'
'role', // Can give a client super powers by giving them a role of 'super'
'noPKCE' // Turn off requirement for PKCE from this client
]
},
findAccount: async (ctx, id, token) => {
Expand Down Expand Up @@ -91,7 +92,9 @@ const configuration = {
keys: process.env.OIDC_KEYS ? process.env.OIDC_KEYS.split(',').map(k => rsaPemToJwk(Buffer.from(k, 'base64').toString('ascii'), {}, 'private')) : []
},
pkce: {
required: true
required: (ctx, client) => {
return client.noPKCE ? false : true
}
},
proxy: true, // maybe??
routes: {
Expand Down

0 comments on commit 2856888

Please sign in to comment.