We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question
0

Keyrock and Spring Security

asked 2016-03-10 18:12:54 +0100

Eddy gravatar image

updated 2016-03-10 18:51:19 +0100

Hi all,

I'm writing an API provider in Java Spring to orchestrate some Fiware GE APIs. I registered an application against my org in the Lab and - having read a bunch of tutorials, manuals, etc... - I was expecting everything to work, except it doesn't. :D

Basically Spring seems to be calling the URI https://account.lab.fiware.org/user withouth encoding the access_token - I suspect it's using an Authorization header with "bearer token" format.

Does anyone know what magic incantation is necessary to persuade Spring to append the token parameter? All I found online appears to assume that the User Info URI is always called as-is. :/

edit retag flag offensive close merge delete

Comments

Maybe you can configure the oauth2 library? Or use another one...

aalonsog gravatar imageaalonsog ( 2016-03-14 09:12:01 +0100 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2016-03-21 14:54:50 +0100

Eddy gravatar image

Well, it seems that Spring Security OAuth and the Fiware Lab configuration don't quite work with request param encoded auth_tokens, maybe there is a bug somewhere or I just couldn't figure it out.

For the time being, I worked around the issue by switching to Spring Social and writing a basic Fiware API provider.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-03-10 18:12:54 +0100

Seen: 2,393 times

Last updated: Mar 21 '16