[英]org.springframework.security.oauth2.provider.token.store.MongoDBTokenStore
Has anyone else encountered the need for a MongoDB implementation of the TokenStore? 有没有其他人遇到过对TokenStore的MongoDB实现的需求? Any words of advice from anyone that has encountered this?
有没有遇到过这种情况的人的建议?
My team's current project is a polyglot, we're moving more towards MongoDB. 我的团队目前的项目是一个多语言,我们正在向MongoDB发展。 The JDBCTokenStore (org.springframework.security.oauth2.provider.token.store.JdbcTokenStore) would be ideal out-of-the-box solution if we were to stay in an RDBMS but we're going schema-less for security.
如果我们要保留在RDBMS中,那么JDBCTokenStore(org.springframework.security.oauth2.provider.token.store.JdbcTokenStore)将是理想的开箱即用解决方案,但我们为了安全性而没有模式化。 I'm working on something quick and dirty, but would like to contribute something more solid to the community.
我正在做一些快速而又肮脏的事情,但我想为社区贡献更多可靠的东西。 Just wondering if anyone else is interested.
只是想知道是否有其他人感兴趣。
Thanks, Frank 谢谢,弗兰克
You might want to check out this implementation of a mongodb token store: 您可能想要查看mongodb令牌存储的此实现:
https://github.com/iainporter/oauth2-provider/blob/master/src/main/java/com/porterhead/oauth2/mongodb/OAuth2RepositoryTokenStore.java https://github.com/iainporter/oauth2-provider/blob/master/src/main/java/com/porterhead/oauth2/mongodb/OAuth2RepositoryTokenStore.java
The accompanying blog post might be helpful too: 随附的博客文章也可能有用:
http://porterhead.blogspot.com/2014/05/securing-rest-services-with-spring.html http://porterhead.blogspot.com/2014/05/securing-rest-services-with-spring.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.