Hello all!
I'm trying to follow the tutorial for the oAuth2 plugin [1] but I had some issues.
The authentication policy worked fine! After adding the second policy (Authorization) I get the following response error
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Date: Tue, 25 Aug 2015 21:12:31 GMT
X-Policy-Failure-Code: 10010
X-Policy-Failure-Message: No roles have been extracted during authentication. Make sure the authorization policy comes *after* a compatible authentication policy in your configuration.
X-Policy-Failure-Type: Other
"message": "No roles have been extracted during authentication. Make sure the authorization policy comes *after* a compatible authentication policy in your configuration.",
but my JWT access_token appears to be right. I mean, I can see the roles in it. See my access_toke decoded:
"preferred_username": "rincewind",
"client_session": "b25536e6-4331-46fd-afe1-b0adf766b533",
"session_state": "213e75e1-bf8b-4f0c-808e-683fb3a4c1de",
"jti": "43c59d9a-b659-4708-a1da-968ea23004d7",
"sub": "de4af322-85b2-4dbe-8d53-6a2ee29e4080",
As you can see the "echomeister" realm_role is there...
What this response message means?