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
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
AccessProvider( name )
access_provider( name )
AccessProvider( name )
AccessProvider( name )
AccessProvider( name )
AccessProvider( name )
Description
The AccessProvider
function returns a valid Reference for the specified
AccessProvider name
in the specified child database
. If a child
database
is not specified, the returned AccessProvider reference belongs
to the current database.
Returns
A reference to an AccessProvider with the specified name
, in the
specified child database
(or the current database if database
is not
specified).
Examples
The following query gets a reference to the AccessProvider named "Auth0-myapp":
AccessProvider("Auth0-myapp")
Ref(id=Auth0-myapp, collection=Ref(id=access_providers))
{Auth0-myapp 0xc000113710 0xc000113710 <nil>}
RefV(id = "Auth0-myapp", collection = RefV(id = "access_providers"))
ref(id = "Auth0-myapp", collection = ref(id = "access_providers"))
AccessProvider("Auth0-myapp")
The following query retrieves the "Auth0-myapp" AccessProvider document:
{
ref: AccessProvider("Auth0-myapp"),
ts: 1605546537710000,
name: 'Auth0-myapp',
issuer: 'https://myapp.auth0.com/',
jwks_uri: 'https://myapp.auth0.com/.well-known/jwks.json',
audience: 'https://db.fauna.com/db/yxi13oyw1ybyy'
}
{'ref': Ref(id=Auth0-myapp, collection=Ref(id=access_providers)), 'ts': 1611251241360000, 'name': 'Auth0-myapp', 'issuer': 'https://myapp.auth0.com/', 'jwks_uri': 'https://myapp.auth0.com/.well-known/jwks.json', 'audience': 'https://db.fauna.com/db/yoyg4mtm4ydyy'}
map[audience:https://db.fauna.com/db/yomidxp6nydyy issuer:https://myapp.auth0.com/ jwks_uri:https://myapp.auth0.com/.well-known/jwks.json name:Auth0-myapp ref:{Auth0-myapp 0xc000182270 0xc000182270 <nil>} ts:1617396484800000]
ObjectV(ref: RefV(id = "Auth0-myapp", collection = RefV(id = "access_providers")),ts: LongV(1617396518670000),name: StringV(Auth0-myapp),issuer: StringV(https://myapp.auth0.com/),jwks_uri: StringV(https://myapp.auth0.com/.well-known/jwks.json),audience: StringV(https://db.fauna.com/db/yomidtog6ybyy))
{ref: ref(id = "Auth0-myapp", collection = ref(id = "access_providers")), ts: 1611251241360000, name: "Auth0-myapp", issuer: "https://myapp.auth0.com/", jwks_uri: "https://myapp.auth0.com/.well-known/jwks.json", audience: "https://db.fauna.com/db/yoyg4mtm4ydyy"}
{
ref: AccessProvider("Auth0-myapp"),
ts: 1624310322260000,
name: 'Auth0-myapp',
issuer: 'https://myapp.auth0.com/',
jwks_uri: 'https://myapp.auth0.com/.well-known/jwks.json',
audience: 'https://db.fauna.com/db/yoatg11a4ybyy'
}
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!