Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
issuer: idp,
grant_types: ['implicit'],
redirect_uris: [callbackUri],
response_types: [responseType],
scope: 'openid profile'
}
const options = {
defaults: {
authenticate: {
redirect_uri: callbackUri,
response_type: responseType
}
},
store: storage
}
return RelyingParty.register(idp, registration, options)
}
const registration = {
issuer: identityProvider,
grant_types: ['implicit'],
redirect_uris: [redirectUrl],
response_types: [responseType],
scope: 'openid profile',
};
const options = {
defaults: {
authenticate: {
redirect_uri: redirectUrl,
response_type: responseType,
},
},
};
return RelyingParty.register(identityProvider, registration, options);
}