API v2: External AuthenticationΒΆ
Data StructuresΒΆ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Read-only object identifier |
|
string |
yes |
Unique; case insensitive |
|
string {cerb, radius, ldap, ad} |
yes |
Immutable |
|
string |
If |
Authentication server address. Required for selected types if port is set. |
|
number |
If |
Server port. Must be used with address. Value format: port. |
|
string |
no |
Bind address. Include labels like βfudo:label:testβ or ip address |
|
ExternalAuthentication-CerbModel |
If |
Cerb object definiton |
|
ExternalAuthentication-RadiusModel |
If |
Radius object definiton |
|
ExternalAuthentication-LdapModel |
If |
LDAP object definiton |
|
ExternalAuthentication-AdModel |
If |
Active Directory object definiton |
|
boolean |
If |
Enable TLS protocol |
|
string |
If |
Client TLS certificate. Format: X.509. |
|
string |
If |
CA certificate for TLS validation. Format: X.509. |
|
string {duo, oath, sms} |
no |
|
|
datetime |
Read-only |
|
|
datetime |
Read-only |
|
|
boolean |
Read-only |
Attribute |
Type |
Description |
|---|---|---|
|
string |
Password to cerb provider; required; write-only |
|
string |
Correct value of NAS id of Cerb provider |
Attribute |
Type |
Description |
|---|---|---|
|
string |
Password to cerb provider; required; write-only |
|
string |
Correct value of NAS id of Radius provider |
Attribute |
Type |
Description |
|---|---|---|
|
string |
Bind domain to LDAP provider; required |
Attribute |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
Password to cerb provider; required; write-only |
|
string |
Bind domain to AD provider; required |
Retrieve Available Attributes of the ExternalAuthentication- ModelΒΆ
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Refer to the Batch operations topic to create nested requests for operating on the External Authentication objects.
Get External Authentication Methods ListΒΆ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/external_authentication`
Response
{
"result": "success",
"external_authentication": [
{
"id": "1234538875067072557",
"type": "ad",
"port": 636,
"ad_domain": "jdoe.local",
"created_at": "2021-08-09 19:40:05.171853+02",
"modified_at": "2021-08-09 19:40:05.171853+02",
"address": "10.0.139.100",
"tls_enabled": true,
"tls_certificate": "-----BEGIN CERTIFICATE-----\r\nMIIFrTCCBJWgAwIBAg...ic=\r\n-----END CERTIFICATE-----\r\n"
},
{
"id": "12345138875067072517",
"type": "ldap",
"port": 389,
"ldap_binddn": "dc=qa-ldap,dc=null",
"created_at": "2021-03-03 14:11:52.245683+01",
"modified_at": "2021-03-03 14:14:46.052855+01",
"address": "10.0.235.1",
"tls_enabled": false,
"tls_certificate": ""
},
{
"id": "12345067072573",
"type": "cerb",
"port": 1812,
"created_at": "2022-10-19 10:23:11.29545+02",
"modified_at": "2022-10-19 10:58:12.325396+02",
"address": "10.0.234.21",
"radius_nasid": "",
"tls_enabled": false,
"tls_certificate": ""
},
{
"id": "3234566775067072572",
"type": "radius",
"port": 1812,
"created_at": "2022-10-19 10:08:23.160433+02",
"modified_at": "2022-10-19 10:19:50.525671+02",
"second_factor_type": "oath",
"address": "10.0.0.1",
"radius_nasid": "abcdeg",
"tls_enabled": true,
"tls_certificate": "-----BEGIN CERTIFICATE-----\r\nMIIG5jC...2MOXV1x+eQAm0Vy\r\n-----END CERTIFICATE-----\r\n"
}
]
}
Get External Authentication Method by IDΒΆ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/external_authentication/<id>`
Response
{
"result": "success",
"external_authentication": [
{
"id": "1234538875067072557",
"type": "ad",
"port": 636,
"ad_domain": "jdoe.local",
"created_at": "2021-08-09 19:40:05.171853+02",
"modified_at": "2021-08-09 19:40:05.171853+02",
"address": "10.0.139.100",
"tls_enabled": true,
"tls_certificate": "-----BEGIN CERTIFICATE-----\r\nMIIFrTCCBJWgAwIBAg...ic=\r\n-----END CERTIFICATE-----\r\n"
}
]
}
Modify External Authentication MethodΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request: Adding SMS Authentication for Second Factor to AD Authentication
PATCH /api/v2/external_authentication/<id>`
{
"second_factor_type": "sms"
}
Response
{
"result": "success"
}
Create an External Authentication MethodΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request: Creating Cerb Definition With Second Factor OATH Authentication
POST /api/v2/external_authentication`
{
"type": "cerb",
"port": 1812,
"address": "10.0.234.21",
"radius_nasid": "abcds",
"secret": "my-password",
"tls_enabled": false,
"second_factor_type": "oath"
}
Response
{
"result": "success",
"external_authentication": {
"id": "123456819172646913"
}
}
Delete an External Authentication MethodΒΆ
Request
Method |
|
Path |
|