From 08afbf40deb163d156ade730e734e61a46bf20aa Mon Sep 17 00:00:00 2001 From: Anton Keks Date: Thu, 5 Dec 2024 13:35:18 +0200 Subject: [PATCH] document oauth config --- oauth/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/oauth/README.md b/oauth/README.md index 19b84602..e3f0be8a 100644 --- a/oauth/README.md +++ b/oauth/README.md @@ -4,9 +4,17 @@ Implements OAuth 2.0 login with several common [providers](src/OAuthClient.kt). You need to provide implementations of [OAuthUser and OAuthUserProvider](src/OAuthUser.kt) in your project. +In the env/config, you need to provide clientId and secrets for each provider that you want to use: +``` +GOOGLE_OAUTH_CLIENT_ID=... +GOOGLE_OAUTH_CLIENT_SECRET=... +``` + + ```kotlin context("/oauth") { register(MyUserProvider::class) + register(httpClient()) register() register() ...