Unable to initiate new Oauth handshake
search cancel

Unable to initiate new Oauth handshake

book

Article ID: 271703

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

I have upgraded OTK Toolkit on one of our internal API Gateway OVA's to 4.6.1. However, while running OAuth 2.0 Test Client, I received the following error when initiating new OAuth handshake:

{  "error":"invalid_request",  "error_description":"The request failed due to some unknown reason"}The access token was retrieved.

Could you please assist us in troubleshooting this

Environment

Release : 10.1

Cause

The #OTK CORS fragment is used to customize CORS 

Copying token service endpoint to the fragment results in the OTK CORS calling itself - fail and error 

 

Resolution

OTK Fail with error message processes the following message

{

  "error":"invalid_request",

  "error_description":"The request failed due to some unknown reason"

}

SSG log

2023-08-10T13:10:59.531-0400 SEVERE  270 com.l7tech.server.SoapMessageProcessingServlet: Encapsulated assertion OTK CORS is calling itself (directly or indirectly).

Disabled from line 13 down.  This was added and not needed