createScopes method

String createScopes()

Create the OIDC scopes for this options instance. Used to request a token from ZITADEL.

Implementation

String createScopes() => [
      'openid',
      if (apiAccess) apiAccessScope,
      for (var scope in additionalScopes) scope,
      for (var audience in projectAudiences) 'urn:zitadel:iam:org:project:id:$audience:aud',
      for (var role in roles) 'urn:zitadel:iam:org:project:role:$role',
    ].join(' ');