Custom OAuth configuration
It is very easy to configure http4k to integrate with any OAuth2 provider who supports the Authorisation Code Grant.
compile group: "org.http4k", name: "http4k-core", version: "3.24.0" compile group: "org.http4k", name: "http4k-security-oauth", version: "3.24.0"
For this example, simply reconfigure the
OAuthProvider instance with the correct details, and provide custom logic for persisting and retrieving the CSRF and AccessToken.