Authorizations
Body
application/json
curl --request PATCH \
--url https://{subdomain}.nudj.cx/api/v2/admin/auth-config \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '{
"enabledProviders": [
"42-school"
],
"oidcProviders": [
{
"id": "<string>",
"name": "<string>",
"clientId": "<string>",
"clientSecret": "<string>",
"issuer": "<string>",
"userinfo_endpoint": "<string>",
"customUserInfoEndpoint": "<string>",
"scopes": [
"<string>"
]
}
],
"email": {
"host": "<string>",
"port": 32768,
"username": "<string>",
"password": "<string>",
"fromAddress": "jsmith@example.com"
}
}'
{
"enabledProviders": [
"42-school"
],
"oidcProviders": [
{
"id": "<string>",
"name": "<string>",
"clientId": "<string>",
"clientSecret": "<string>",
"issuer": "<string>",
"userinfo_endpoint": "<string>",
"customUserInfoEndpoint": "<string>",
"scopes": [
"<string>"
]
}
],
"email": {
"host": "<string>",
"port": 32768,
"username": "<string>",
"fromAddress": "jsmith@example.com"
}
}
Update the authentication configuration settings.
curl --request PATCH \
--url https://{subdomain}.nudj.cx/api/v2/admin/auth-config \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '{
"enabledProviders": [
"42-school"
],
"oidcProviders": [
{
"id": "<string>",
"name": "<string>",
"clientId": "<string>",
"clientSecret": "<string>",
"issuer": "<string>",
"userinfo_endpoint": "<string>",
"customUserInfoEndpoint": "<string>",
"scopes": [
"<string>"
]
}
],
"email": {
"host": "<string>",
"port": 32768,
"username": "<string>",
"password": "<string>",
"fromAddress": "jsmith@example.com"
}
}'
{
"enabledProviders": [
"42-school"
],
"oidcProviders": [
{
"id": "<string>",
"name": "<string>",
"clientId": "<string>",
"clientSecret": "<string>",
"issuer": "<string>",
"userinfo_endpoint": "<string>",
"customUserInfoEndpoint": "<string>",
"scopes": [
"<string>"
]
}
],
"email": {
"host": "<string>",
"port": 32768,
"username": "<string>",
"fromAddress": "jsmith@example.com"
}
}
Input for updating authentication configuration settings
List of enabled authentication providers
Show child attributes
OIDC provider configurations
Show child attributes
Authentication configuration email settings
Show child attributes
Successful response
Was this page helpful?