mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-03-31 15:20:32 +08:00
fix(operators): Do not filter OPENID_CLIENT_ID and OPENID_DOMAIN from secrets.
This commit is contained in:
parent
76a4d7c4b3
commit
3c56737cc2
@ -26,7 +26,7 @@ function _secret({ env, location, params, secrets = {} }) {
|
||||
}
|
||||
// Filter out OpenID Connect and JSON web token secrets
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { OPENID_CLIENT_ID, OPENID_CLIENT_SECRET, OPENID_DOMAIN, JWT_SECRET, ...rest } = secrets;
|
||||
const { OPENID_CLIENT_SECRET, JWT_SECRET, ...rest } = secrets;
|
||||
return getFromObject({
|
||||
env,
|
||||
location,
|
||||
|
@ -96,6 +96,8 @@ test('secret OpenID Connect and JSON web token secrets are filtered out', () =>
|
||||
env: 'env',
|
||||
location: 'location',
|
||||
object: {
|
||||
OPENID_CLIENT_ID: 'OPENID_CLIENT_ID',
|
||||
OPENID_DOMAIN: 'OPENID_DOMAIN',
|
||||
OTHER: 'OTHER',
|
||||
},
|
||||
operator: '_secret',
|
||||
|
Loading…
x
Reference in New Issue
Block a user