You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accepting Dynamic Authorization Server Scope Values
built for version: ^7.1.2 || ^8.0.0
For dynamic scopes at the Resource Server you'd use the helpers in the resourceIndicators feature.
// our dynamic scope is in the format "dynamic:{3 digits}"constrequestParamOIDCScopes=Object.getOwnPropertyDescriptor(provider.OIDCContext.prototype,'requestParamOIDCScopes').get;Object.defineProperty(provider.OIDCContext.prototype,'requestParamOIDCScopes',{get(){constscopes=this.requestParamScopes;constrecognizedScopes=requestParamOIDCScopes.call(this);for(constscopeofscopes){if(/^dynamic:\d{3}$/.exec(scope)){recognizedScopes.add(scope);}}returnrecognizedScopes;},});