Retrieve information about authentication provider
Retrieve information about one of an application's authentication providers.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
-
The unique
_id
value of an authentication provider
GET
/groups/{groupId}/apps/{appId}/auth_providers/{providerId}
curl \
--request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/auth_providers/{providerId}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
Anonymousauthprovider
{
"_id": "string",
"name": "anon-user",
"type": "anon-user",
"disabled": true
}
{
"_id": "string",
"name": "local-userpass",
"type": "local-userpass",
"disabled": true,
"config": {
"autoConfirm": true,
"resetPasswordUrl": "string",
"resetPasswordSubject": "string"
}
}
{
"_id": "string",
"name": "api-key",
"type": "api-key",
"disabled": true
}
{
"_id": "string",
"name": "custom-token",
"type": "custom-token",
"disabled": true,
"config": {
"audience": [
"string"
],
"requireAnyAudience": false,
"signingAlgorithm": "string",
"useJWKURI": true,
"jwkURI": "string"
},
"secret_config": {
"signingKeys": [
"string"
]
},
"metadata_fields": [
{
"required": true,
"name": "string",
"field_name": "string"
}
]
}
{
"_id": "string",
"name": "custom-function",
"type": "custom-function",
"disabled": true,
"config": {
"authFunctionName": "string"
}
}
{
"_id": "string",
"name": "oauth2-apple",
"type": "oauth2-apple",
"disabled": true,
"config": {
"clientId": "string"
},
"secret_config": {
"clientSecret": "string"
},
"redirect_uris": [
"string"
]
}
{
"_id": "string",
"name": "oauth2-google",
"type": "oauth2-google",
"disabled": true,
"config": {
"clientId": "string",
"openId": true
},
"secret_config": {
"clientSecret": "string"
},
"redirect_uris": [
"string"
],
"metadata_fields": [
[
{
"required": true,
"name": "string"
}
]
],
"domain_restrictions": [
"string"
]
}
{
"_id": "string",
"name": "oauth2-facebook",
"type": "oauth2-facebook",
"disabled": true,
"config": {
"clientId": "string"
},
"secret_config": {
"clientSecret": "string"
},
"redirect_uris": [
"string"
],
"metadata_fields": [
[
{
"required": true,
"name": "string"
}
]
],
"domain_restrictions": [
"string"
]
}