FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. Fauna accounts created after August 21, 2024 must use FQL v10. These accounts will not be able to run FQL v4 queries or access the v4 Dashboard. For more details, see the v4 EOL announcement and migration guide. Contact support@fauna.com with any questions. |
AccessProvider
An AccessProvider is a document within a Fauna database that configures one half of the relationship required to access authentication information from an external identity provider. The other half of the relationship is configured in the identity provider.
Definition
An AccessProvider document has this structure:
{
ref: AccessProvider("Auth0-myapp"),
ts: 1604524688650000,
name: 'Auth0-myapp',
issuer: 'https://myapp.auth0.com/',
jwks_uri: 'https://myapp.auth0.com/.well-known/jwks.json',
audience: 'https://db.fauna.com/db/yxuihtdghybyy'
}
Field Name | Field Type | Definition and Requirements | ||
---|---|---|---|---|
|
String |
A unique name for the AccessProvider. Cannot be |
||
|
String |
An HTTPS URL for the IdP that you are using to grant access to Fauna. This is typically an account-/app-specific URL that your IdP provides.
|
||
|
String |
A valid HTTPS URI, which should serve the JSON Web Key that signs the JWT tokens from your IdP. |
||
|
Array of Role References or Role-predicate objects. |
Optional - Defines the roles that should be evaluated to determine access for a provided JWT token. When The usual use of
Per overlapping roles, any role that grants access means that the query involving a JWT token is processed, even if another Role might deny access. A Role-predicate object specifies a Role to potentially evaluate, whose evaluation is determined by the specified predicate function:
The The |
||
|
Object |
Optional - Contains user-defined metadata for the AccessProvider. It is provided for the developer to store AccessProvider-relevant information. |
||
|
String |
Read only - A unique URL for your database that should be used in the
|
||
|
Timestamp |
Optional - A timestamp that indicates the time-to-live for a document,
which is when the document is removed from the collection and can’t be
queried. The document history can continue to be accessed using
the |
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!