[AAA-157] Unable to create OAuth2 token for new user Created: 25/Jan/18 Updated: 23/Sep/19 |
|
| Status: | Open |
| Project: | aaa |
| Component/s: | None |
| Affects Version/s: | Nitrogen-SR1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Medium |
| Reporter: | Jan Srnicek | Assignee: | Venkatrangan Govindarajan |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
While following tutorial on http://docs.opendaylight.org/en/latest/user-guide/authentication-and-authorization-services.html?highlight=aaa%7C#configuration-using-the-restful-web-service I've run into some issues Steps 1 . Create OAuth token for user admin curl -X POST \
Response 201 { "access_token": "*TOKEN*", "token_type": "Bearer", "expires_in": 3600 }
2. Create user domain curl -X POST \ ' Response 201 3.Create test user curl -X POST \ ' Response 201 4. Create OAuth2 token for this user curl -X POST \ Response 500 {"error_description":"The Claim is missing one or more of the required fields.","error":"java.lang.IllegalStateException"}
|
| Comments |
| Comment by Ryan Goulding [ 08/Feb/18 ] |
|
just change the content-type to application/json and should work. It isn't right, but this code was not contributed by me. I can take a look at a later time... |