Skip to main content

REST APIs for 22.2

Authentication Settings

This Public Experimental API gets or updates the authentication settings for the login domain (organization).

These new APIs with the included saml_configs setting provide customers an option to sign authN requests.

API Methods

HTTP

URI

Functionality

GET

[api_version]/authentication_settings

Get authentication settings

PUT

[api_version]/authentication_settings

Update authentication settings

GET

[api_version]/authentication_settings/saml_configs

Gets all SAML configurations where any_org_owner is authorized to use it. The response now includes the PCE signing certificates that will be used by IdP for the SAML authN request signature validation.

GET

[api_version]/authentication_settings/ saml_configs/:uuid

Get the specified SAML configuration. The response now includes the PCE signing certificates that will be used by IdP for the SAML authN request signature validation.

PUT

[api_version]/authentication_settings/ saml_config/:uuid

Update the specified SAML configuration. API has been enhanced to enable/disable the signing of a SAML authN request.

POST

[api_version]/authentication_settings/ saml_configs/:uuid/pce_signing_cert

Generate a new certificate for signing SAML AuthN requests.

Get Authentication Settings

Curl Command to Get Authentication Settings

The org/:org_id/ path parameter is not specified in this command.

curl -i -X GET https://pce.my-company.com:8443/api/v2/authentication_settings -H "Accept: application/json" -u $KEY:$TOKEN 

Example Default Response

200 OK

{ "authentication_type":"Local" }
Update Authentication Settings

Curl Command to Update Authentication Settings

The org/:org_id/ path parameter is not specified in this command.

curl -i -X PUT https://pce.my-company.com:8443/api/v2/authentication_settings/password_policy -H "Content-Type: application/json" -d '{"authentication_settings": "SAML"}' u $KEY:$TOKEN 

Request Properties

Parameter

Description

Type

Required

Local

Local authentication.

String

No

SAML

Authentication with SAML.

String

No

Example Request Body

{"authentication_settings": "SAML"}