Mobile And Social : REST Call To 'DELETE' A Token Is Throwing Error-405: Operation Not Supported (Doc ID 2057671.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Mobile and Social - Version 11.1.2.1.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.2.1.0 version, Agent infrastructure

We are trying to delete a REST token using below request:

curl -H "Content-Type:application/json"
--request DELETE
http://localhost:18001/oic_rest/rest/jwtauthentication/tokens/info
-d '{
  "X-Idaas-Rest-Subject-Value":"YHEGjRP5eewNeXeK9v%2F3YBX...tvMJW9p%3D",
  "X-Idaas-Rest-Subject-Type":"TOKEN"}'

but we are getting Error-405: operation does not supported. Please check and let us know the steps to resolve it.
We are using OAM 11gr2ps1


ERROR
-----------------------



STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Install OAM
2. Enable Mobile and Social
3. Enable Service Provider JWTAOMAuthentication
4. Request a JWT Token
5. Issue a cURL command to delete the token.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms