question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spring Boot + OAuth2 Authorziation Server (JDBC) + Axon 4

See original GitHub issue

Hi together,

i have an JDBC based OAuth2 Authorization / Resource Server with Spring Boot 2.0.6. It is working great. The plan is to have inside that Server an Event that is listening to an UserApprovedEvent and should store it localy.

Communication should be with Axon Server.

I think that relates to the Jdbc connection that is used from the Spring boot app. How can i tell the Axon Framework that it should use the grpc based AxonServer?

The error what i get: 018-11-05 14:06:10.328 ERROR 31677 --- [th.connector]-0] o.h.engine.jdbc.spi.SqlExceptionHelper : Table 'oauth2.token_entry' doesn't exist

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
smcvbcommented, Feb 3, 2020

In most Spring Boot scenarios the token_entry would be set for you. We’re currently not exposing the SQL schemas directly, due to database optimization differences I’d say; there is an issue open to provide these though, under number #1258. We do have the GenericTokenTableFactory which does a fair job in most scenarios, but the PostgresTokenTableFactory would work best for your scenario I think.

You can also check out the TokenEntry class of course and derive something yourself.

0reactions
vab2048commented, Feb 2, 2020

I have come across this issue as well:

o.h.e.j.s.SqlExceptionHelper: SQL Error: 0, SQLState: 42P01
o.h.e.j.s.SqlExceptionHelper: ERROR: relation "token_entry" does not exist

So I need to make sure my postgres database has the “token_entry” table defined. But I am unable to find the schema/SQL I need to execute to create the table.

@abuijze / @smcvb: Could you please point me in the right direction?

Read more comments on GitHub >

github_iconTop Results From Across the Web

OAuth 2.0 Implementation with Spring Security and Spring Boot
We will implement Authorization Server, Resource Server, and Client as part of this Tutorial to Completely understand the OAuth2.0 Flow and ...
Read more >
OAuth2 Authorization using Jdbc Token Store - Codeaches
Spring Boot OAuth2 Authorization Service: This will be our authorization server. We will be using this service to get the user's access token....
Read more >
Spring Authorization Server Tutorial - Apps Developer Blog
In this tutorial, you will learn how to create and configure the new Spring OAuth Authroization Server. Video Demonstration.
Read more >
Access Control - OAuth 2.0 - Axon Reference Guide
Access Control - OAuth 2.0. This extension will allow you to use OAuth2 integration (currently only with Google) for authentication in Axon Server....
Read more >
OAuth2 Boot - Spring
To ease migration, this project exists as a bridge between the old Spring Security OAuth support and Spring Boot 2.x. 1. Authorization Server....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found