In SAML SSO setup, as per spec, when logout is initialized from SP (i.e. Developer Portal), it would send a Logout Request Assertion to IDP.
Once it successfully logged out in IDP, the IDP has to send the response to SP (to - <API PORTAL URL>/portal/rest/v1/saml/initslo) - then only the Developer Portal would clear its’ session.
The SingleLogoutService location in the SP-Metadata file was set as the portal login URL (/portal/rest/v1/saml/initsso/) which is wrong. After changing the value to /portal/rest/v1/saml/initslo/ the logout would work successfully.
#API-Gateway#API-Management#Tuesday-troubleshooting#webMethods