AccessProvider

Copied!
( 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.

Parameters

Parameter Type Definition and Requirements

name

The name of the AccessProvider.

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":

Copied!
('Auth0-myapp')
("Auth0-myapp")
Query metrics:
  •    bytesIn:  33

  •   bytesOut:  90

  • computeOps:   1

  •    readOps:   0

  •   writeOps:   0

  •  readBytes:  67

  • writeBytes:   0

  •  queryTime: 7ms

  •    retries:   0

The following query retrieves the "Auth0-myapp" AccessProvider document:

Copied!
(('Auth0-myapp'))
{
  ref: ("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'
}
Query metrics:
  •    bytesIn:  41

  •   bytesOut: 287

  • computeOps:   1

  •    readOps:   1

  •   writeOps:   0

  •  readBytes: 222

  • writeBytes:   0

  •  queryTime: 6ms

  •    retries:   0

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!