resthub / resthub-spring-stack

RESThub Spring stack
http://resthub.org/spring-stack.html
Other
121 stars 66 forks source link

OAuth2.0 fix #87

Closed bclozel closed 12 years ago

bclozel commented 12 years ago

Allow users to redefine OAuth2.0 token header key sent along resource requests. Default value is "Bearer".

Implement auto-renewal of the OAuth2.0 token when it's expired. I didn't implement this as a ResponseFilter because:

Don't merge this pull request now. I'll probably modify it, I'm waiting for feedback on that matter.

sdeleuze commented 12 years ago

Thanks for these very useful improvements.

I am fine with the proposed improvement, just please add some tests for token renewal with Spring Secureity OAuth2 serverside. There are some existing OAuth2 integration tests that could be used for that by configuring a Spring Security OAuth 2 context with refresh token enabled.