- docker
- docker-compose
In the docker-compose.yml
set REDIRECT_URL=http://localhost:3000/from
where http://localhost:3000/from
is the url from your app after logged in.
Then run
$ docker-compose up
You need to wait until the log displays INFO io.micronaut.runtime.Micronaut - Startup completed in 3935ms. Server Running: ...
then you are ready to go.
You need to create a button to redirect to the backend to log in with google. The url is http://localhost:8080/oauth/login/google
. After you choose your use and log in you'll redirect to the url you set earlier.
You can check swagger in the follow url: http://localhost:8080/swagger-ui
After login you'll see the JWT in the cookie to use in your requests.