Org.springframework.security.oauth2.provider.token.store.MongoDBTokenStore
Has anyone else encountered the need to implement MongoDB TokenStore? Any word of advice from anyone who has encountered this?
My current project of my team is a polyglot, we are moving more towards MongoDB. The JDBCTokenStore (org.springframework.security.oauth2.provider.token.store.JdbcTokenStore) would be a perfect out-of-the-box solution if we stayed in the RDBMS, but for security we don't use a schema. I'm working on something quick and dirty, but would like to contribute to the community. Just wondering if anyone else is interested.
Thanks, Frank
You can check out this mongodb token store implementation:
https://github.com/iainporter/oauth2-provider/blob/master/src/main/java/com/porterhead/oauth2/mongodb/OAuth2RepositoryTokenStore.java
An accompanying blog post can also be helpful:
http://porterhead.blogspot.com/2014/05/securing-rest-services-with-spring.html