Skip to main content
POST
/
namespace
/
{namespace}
/
bigPeer
/
{big_peer_name}
/
app
/
{app_name}
/
provider
Add Auth Provider
curl --request POST \
  --url http://localhost:{port}/namespace/{namespace}/bigPeer/{big_peer_name}/app/{app_name}/provider \
  --header 'Content-Type: application/json' \
  --data '
{
  "config": {
    "type": "webhookUrl",
    "webhookUrl": "<string>"
  },
  "name": "<string>"
}
'
{
  "name": "<string>",
  "appId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "authProviders": {}
}

Body

application/json
config
TokenWebhook · object
required

Token webhook authentication provider. Validates device tokens by calling a user-provided webhook URL. The webhook receives the token and returns the authenticated user information and permissions.

name
string
required

Response

Auth provider successfully added or updated.

name
string
required

RFC 1123 DNS labels used for most Kubernetes resource names. Some resource types require their names to follow the DNS label standard as defined in [RFC 1123][rfc1123]. This means the name must: * contain at most 63 characters * contain only lowercase alphanumeric characters or '-' * start with an alphanumeric character * end with an alphanumeric character [rfc1123]: https://tools.ietf.org/html/rfc1123

Required string length: 1 - 63
appId
string<uuid>

UUID used to identify a BigPeerApp resource

authProviders
AuthProviders · object

Auth providers associated with a BigPeer App, to be used when authenticating devices against BigPeer Subscription.