UNPKG

oidc-provider

Version:

OAuth 2.0 Authorization Server implementation for Node.js with OpenID Connect

28 lines (26 loc) 809 B
import apply from './mixins/apply.js'; import consumable from './mixins/consumable.js'; import hasFormat from './mixins/has_format.js'; import hasGrantId from './mixins/has_grant_id.js'; import isAttestationConstrained from './mixins/is_attestation_constrained.js'; import isSessionBound from './mixins/is_session_bound.js'; import storesAuth from './mixins/stores_auth.js'; import storesPKCE from './mixins/stores_pkce.js'; export default (provider) => class AuthorizationCode extends apply([ consumable, isSessionBound(provider), hasGrantId, isAttestationConstrained, storesAuth, storesPKCE, hasFormat(provider, 'AuthorizationCode', provider.BaseToken), ]) { static get IN_PAYLOAD() { return [ ...super.IN_PAYLOAD, 'redirectUri', 'dpopJkt', 'rar', ]; } };