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 (final scope in additionalScopes) scope,
      for (final audience in projectAudiences)
        'urn:zitadel:iam:org:project:id:$audience:aud',
      for (final role in roles) 'urn:zitadel:iam:org:project:role:$role',
    ].join(' ');