3

I intend to use: JdbcTokenStore.

As far as I can tell it uses two tables: oauth_access_token and oauth_refresh_token

I can reverse engineer the table structure; it isn't quite clear if there are references from one table to the other for which I should create a foreign key or not?

Is there a postgres specific schema somewhere? Or another schema that I can refer to?

Batch, for instance, includes the schemas in their dist. I wonder if Oauth2 could do that also?

Many thanks, Matt

3
  • hello, i am new in oauth and spring-security. I also want to implement with JDBC, but i am confuse, how many tables are created for Oauth? Commented Jul 22, 2014 at 12:36
  • Are these the correct tables? github.com/spring-projects/spring-security-oauth/blob/master/… - Can someone from the oauth project please comment? Commented Sep 18, 2014 at 16:20
  • @MattFriedman: Yes, this is valid schema to references. You should write your own answer to help other people easy to find. Thanks :) Commented Jan 20, 2015 at 3:08

1 Answer 1

3

the schema is checked into git as well: https://github.com/spring-projects/spring-security-oauth/blob/master/spring-security-oauth2/src/test/resources/schema.sql

when using postgres you should use bytea instead of LONGVARBINARY

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.