Table of Contents |
---|
...
In order to access the TOTP API, you need its client ID for the scope parameter of the OAuth2 Token Request. The required scope is returned in the WWW-Authenticate
response header of an unauthorized request. The client ID is also visible in System → TOTP API → Applications → TOTP API as depicted here:
Verify the API works
The following examples use non-existing TOTP authentication method in SSO with name non.existing.method
.
You can start testing the connection using curl
. You may use the --insecure
flag in case self-signed certificates are used:
Code Block | ||
---|---|---|
| ||
$ curl \ --request PUT 'https://<sso-base-url>/totp/api/v1/methods/non.existing.method' \ --header 'Content-Type: application/json' \ --data-raw ' { "user": { "login": "any.user" } }' |
...
Possible values are OFF
, FATAL
, ERROR
, WARN
, INFO
, and
DEBUG
and ALL
. The default level is INFO.
...