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",
"webhookSecret": [
{
"notAfter": "2023-11-07T05:31:56Z",
"notBefore": "2023-11-07T05:31:56Z",
"secret": "<string>",
"rotated": "2023-11-07T05:31:56Z"
}
],
"webhookUrl": "<string>"
},
"name": "<string>"
}
'{
"name": "<string>",
"appId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authProviders": {}
}Apps
Add Auth Provider
Adds or updates an auth provider for a Big Peer app. If a provider with the same name already exists, it will be overwritten with the new provider config.
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",
"webhookSecret": [
{
"notAfter": "2023-11-07T05:31:56Z",
"notBefore": "2023-11-07T05:31:56Z",
"secret": "<string>",
"rotated": "2023-11-07T05:31:56Z"
}
],
"webhookUrl": "<string>"
},
"name": "<string>"
}
'{
"name": "<string>",
"appId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authProviders": {}
}Body
application/json
Response
Auth provider successfully added or updated.
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 - 63Pattern:
^[a-z0-9]([-a-z0-9]*[a-z0-9])?$Was this page helpful?