Issue With Loading The Custom Token Attributes Plugin. Unable to pass the additional custom attributes in the Access token
Last updated on NOVEMBER 06, 2017
Applies to:Oracle Mobile and Social - Version 18.104.22.168.0 and later
Information in this document applies to any platform.
You are following Oracle doc
This document shows you how to setup OAuth to pass custom attributes and assigned values created in a custom jar file. However, after completing the steps in this document, the attributes and values are not present after running the access token trough the debuggers test web site.
The default attributes and their values appear in the output, but the custom attribute and their values do not appear.
Here is how the problem is reproduced:
I used the following two docs that the customer was following.
You are trying to pass custom attributes and the values assigned to those attributes through the custom java code. The issue occurs after processing the token generated from the CURL command, the custom attributes employee_id and spAppGroup are not delivered in the final payload. The following are the steps taken to reproduce this issue:
From the command prompt on the instance running OAuth, I ran the following CURL command:
curl -i -H "Authorization: Basic
NTBiZjk2M2M5ZmJkNDEzYmJlOTFiOTFhNmExNWNhMWY6MnVCd0pZYUw=" -H "Content-Type:
application/x-www-form-urlencoded;charset=UTF-8" -X POST
http://identity.example.com:14100/ms_oauth/oauth2/endpoints/oauthservice/tokens -d "grant_type=client_credentials"
This command produced the following token.
The access token was then placed in the "Encoded" side of this web site
When the access token is processed, we should see the two custom attributes "employee_id" and "spAppGroup", along with their assigned values in the decoded side of the Debugger test web site but the attributes and their values are not present.
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