When implementing an OAuth or OIDC flow through CA Access Gateway (SPS), the authorization request fails. The spstrace.log or debug logs show the following error even if the URL appears to use the HTTPS protocol:
Log Snippet:
client Info: {redirectURI=[https://oidc.example.com/callback], ...}response_type=coderedirectURI=https://oidc.example.com/callbackRequest is not secure i.e, not HTTPS > Sending error response:ErrorResponse [error=invalid_request, error_description=The request is not secure, error_uri=null]
Policy Server: All supported versions
Access Gateway: All supported versions
Feature: OAuth 2.0 / OpenID Connect (OIDC)
The OAuth 2.0 and OIDC specifications mandate the use of TLS (Transport Layer Security) for all communication between the client, the authorization server, and the resource server.
This error typically occurs when:
To resolve this issue, ensure that the CA Access Gateway is properly configured to handle TLS/SSL. You must ensure the end-to-end communication is secure.