After restarting the instance with the updated OAuth2 properties, test the end-to-end configuration.
  1. Use the token to access the ping resource, replace the hostname and portin the URI.

    Linux

    curl -H "Authorization: Bearer $token" https://hostname:portnumber/rest/service-name/service
    Windows
    curl -H "Authorization: Bearer %token%" https://hostname:8810/rest/service-name/service
    A successful response confirms that the instance accepted and validated the OAuth2 token.
    Note: To use HTTPS, set up Transport Layer Security (TLS).