Skip to content

Enable the authentication service setting

Request

Early Access

Enables the authentication service setting for Access Gateway

Bodyapplication/jsonrequired
certificateIdstring, (uuid)

The ID of the certificate to use for the authentication service

databaseobject

The database configuration for the authentication service

publicDomainstring

The external domain of the authentication service where end users are authenticated. The domain must be registered with a domain registrar.

serverNodesArray of strings

A list of hostnames of nodes in the Access Gateway cluster where the authentication service runs

curl -i -X POST \
  https://oag.domain.tld/api/v2/settings/authentication-service \
  -H 'Content-Type: application/json' \
  -d '{
    "serverNodes": [
      "worker-node1.test-oag.com"
    ],
    "database": {
      "type": "mysql",
      "host": "db.domain.tld",
      "port": 3306,
      "username": "<database-username>",
      "password": "<database-password>",
      "name": "oagofflinemode"
    },
    "publicDomain": "offline-idp-service.domain.tld",
    "certificateId": "15cc2bc6-b280-4d94-a0bf-c91751b40d9c"
  }'

Responses

Authentication service setting enabled successfully

Bodyapplication/json
certificateIdstring, (uuid)

The ID of the certificate to use for the authentication service

databaseobject

The database configuration for the authentication service

publicDomainstring

The external domain of the authentication service where end users are authenticated. The domain must be registered with a domain registrar.

serverNodesArray of strings

A list of hostnames of nodes in the Access Gateway cluster where the authentication service runs

Response
{ "serverNodes": [ "worker-node1.test-oag.com" ], "database": { "type": "mysql", "host": "db.domain.tld", "port": 3306, "name": "oagofflinemode" }, "publicDomain": "offline-idp-service.domain.tld", "certificateId": "15cc2bc6-b280-4d94-a0bf-c91751b40d9c" }