From ffdc250eefefe1b35655d04ea405ce350011558f Mon Sep 17 00:00:00 2001 From: alexanderkohler1 <alexander1.kohler@student.reutlingen-university.de> Date: Sun, 15 Jun 2025 21:07:20 +0200 Subject: [PATCH] =?UTF-8?q?OAuth-Konfiguration=20f=C3=BCr=20Teamarbeit=20w?= =?UTF-8?q?iederhergestellt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - auth.toml mit funktionsfähigen GitHub OAuth-Credentials hinzugefügt - Ermöglicht anderen Entwicklern das Ausführen der Anwendung - auth.toml aus gitignore entfernt für Teamzugriff --- .gitignore | 1 - config/auth.toml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 config/auth.toml diff --git a/.gitignore b/.gitignore index ad85b08..307ca66 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,6 @@ tmp/ # HARMONY specific config/**/local/* !config/**/local/.gitkeep -config/auth.toml files/**/* !files/.gitkeep diff --git a/config/auth.toml b/config/auth.toml new file mode 100644 index 0000000..4a738ec --- /dev/null +++ b/config/auth.toml @@ -0,0 +1,23 @@ +enable_oauth2 = true + +[provider.github] +enabled = true +name = "github" +display_name = "GitHub" +authorize_uri = "https://github.com/login/oauth/authorize" +access_token_uri = "https://github.com/login/oauth/access_token" +userinfo_uri = "https://api.github.com/user" +client_id = "Ov23liwqVDKeBaIHmBfZ" +client_secret = "513b5408f5d19e5bf30cef7201e25d1056923e4f" +scopes = ["read:user", "user:email"] + +[provider.google] +enabled = false +name = "google" +display_name = "Google" +authorize_uri = "https://accounts.google.com/o/oauth2/v2/auth" +access_token_uri = "https://oauth2.googleapis.com/token" +userinfo_uri = "https://openidconnect.googleapis.com/v1/userinfo" +client_id = "[client_id]" +client_secret = "[client_secret]" +scopes = ["openid", "email", "profile"] \ No newline at end of file -- GitLab