This example demonstrates how to use GitHub authentication service in Vert.x WebFlux application.
Because of Spring Security implementation details, Reactor Netty client is required aside to Vert.x integration.
Setup OAuth application at https://github.com/settings/developers with the following parameters.
Home URL: http://localhost:8080
Authorization callback URL: http://localhost:8080/login/oauth2/code/github
Then export client id and secret as environment variables.
export GITHUB_CLIENT_ID={your client id}
export GITHUB_CLIENT_SECRET={your client secret}
And start the application.
java -jar target/vertx-spring-boot-sample-http-oauth.jar
Open http://localhost:8080 and you should be redirect to GitHub for authorization.