rajithd / spring-boot-oauth2

Spring Boot Oauth2 with H2 database
208 stars 166 forks source link

mismatch accessToken with Db save #19

Closed ssagar03 closed 5 years ago

ssagar03 commented 5 years ago

hi, I used the below url http://localhost:9191/api/oauth/token?username=admin&password=admin&grant_type=password to generate tokens, now when I check the DB they are storing something different. Why is it so? is it getting encrypted? token id: 7fb4970297824b1b2089cd329f314fdc authorization id: d115b520b380e5ed7baf1642c1c526ba refresh token: 468f3f15cfd9555c893f50e2155dd40d

but the generated values are: { "access_token": "c4221485-e076-454d-95cd-2e3d3ca7d5a3", "token_type": "bearer", "refresh_token": "292bd914-efb5-4ba3-b950-e0b19e24b109", "expires_in": 1799, "scope": "read write" }