AccessProvider.all()

Learn: Access providers

Gets all existing documents as FQL AccessProvider documents.

Signature

AccessProvider.all() => Set<AccessProvider>

Description

This method returns the Set of all access providers in the database. If AccessProvider.all() is the last expression in a query, the first page of the Set is returned.

Staged schema

If a database has staged schema, this method interacts with the database’s staged schema, not the active schema.

Parameters

None

Return value

Type Description

Set<AccessProvider>

Set of all access providers in the current database.

Examples

AccessProvider.all()
{
  data: [
    {
      name: "someIssuer",
      coll: AccessProvider,
      ts: Time("2099-06-25T14:57:23.125Z"),
      roles: [
        "customer",
        {
          role: "manager",
          predicate: "(jwt) => jwt!.scope.includes(\"manager\")"
        }
      ],
      issuer: "https://example.com/",
      audience: "https://db.fauna.com/db/ysjowue14yyr1",
      jwks_uri: "https://example.com/.well-known/jwks.json"
    },
    ...
  ]
}

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!