Scope

Scope

new Scope(scope)

Azure AD Auth scope representation class

  1. Remove MS Graph URLs from scope, as it is default for any scope
  2. Remove eventual commas and double spaces
  3. Sort
  4. BASIC SCOPE is always a part of auth requests
Source:
Parameters:
Name Type Description
scope string | Array.<String> | ''

without parameters represents BASIC_SCOPE = 'offline_access openid profile'