Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 423 Bytes

default_scope.md

File metadata and controls

16 lines (14 loc) · 423 Bytes

Applying default client scope

  • built for version: ^8.0.0
  • no guarantees this is bug-free, no support will be provided for this, you've been warned, you're on your own
const oidcConfiguration = {
  extraParams: {
    scope(ctx, value, client) {
      ctx.oidc.params.scope ||= value ||= client.scope;
    }
  }
};
const provider = new Provider(ISSUER, oidcConfiguration); // finally, configure your provider