Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我打算使用:JdbcTokenStore.
JdbcTokenStore
据我所知,它使用两个表:oauth_access_token和oauth_refresh_token
oauth_access_token
oauth_refresh_token
我可以对表结构进行逆向工程;目前还不清楚是否有从一个表到另一个表的引用,我应该为其创建外键吗?
某处是否有特定于 postgres 的架构?或者我可以参考的另一个模式?
例如,批处理在其 dist 中包含模式。我想知道 Oauth2 是否也可以这样做?
非常感谢,马特
模式也被检入 git: https ://github.com/spring-projects/spring-security-oauth/blob/master/spring-security-oauth2/src/test/resources/schema.sql
使用 postgres 时,您应该使用bytea而不是LONGVARBINARY
bytea
LONGVARBINARY