cancel
Showing results for 
Search instead for 
Did you mean: 

unable to get token https://localhost:9002/rest/oauth/token?client_id=test_client&client_secret=1234&grant_type=client_credentials

Former Member
0 Kudos

unable to get token https://localhost:9002/rest/oauth/token?client_id=test_client&client_secret=1234&grant_type=client_c...

below web.xml configuration i did for custom commercewebservice

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

replaced clientCredentialsTokenEndpointFilter class entry in custom extension web.xml. then able to access /customextension/oauth/token

     <filter-name>clientCredentialsTokenEndpointFilter</filter-name>
     <filter-class>org.springframework.security.oauth2.provider.client.ClientCredentialsTokenEndpointFilter</filter-class>
 </filter>

Answers (1)

Answers (1)

0 Kudos

try /authorizationserver/oauth/token instead of /rest/oauth/token

Former Member
0 Kudos

/authorizationserver/oauth/token is working but unable to work with /rest/oauth/token getting 500 Internal Server Error

Even unable to access below , getting 302 found , I have tried with access-token as well as without access-token.

URL: https://localhost:9002/rest/v2/electronics/users

JSON Body : { "uid":"john.doe@mail.com", "password":"1q2w3e4r", "firstName":"John", "lastName":"Doe", "titleCode":"mr", "access_token": "170f8fc9-87b5-4fee-a996-1b357afc3854" }