UNPKG

oidc-provider

Version:

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

12 lines (9 loc) 313 B
import presence from '../../helpers/validate_presence.js'; /* * Validates presence of mandatory OAuth2.0 parameters response_type, client_id and scope. */ export default function oauthRequired(ctx, next) { // Validate: required oauth params presence(ctx, 'response_type', 'client_id'); return next(); }