feat: add infomaniak oauth
This commit is contained in:
@@ -11,6 +11,7 @@ use Illuminate\Foundation\Events\MaintenanceModeEnabled;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
use SocialiteProviders\Authentik\AuthentikExtendSocialite;
|
||||
use SocialiteProviders\Azure\AzureExtendSocialite;
|
||||
use SocialiteProviders\Infomaniak\InfomaniakExtendSocialite;
|
||||
use SocialiteProviders\Manager\SocialiteWasCalled;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
@@ -25,6 +26,7 @@ class EventServiceProvider extends ServiceProvider
|
||||
SocialiteWasCalled::class => [
|
||||
AzureExtendSocialite::class.'@handle',
|
||||
AuthentikExtendSocialite::class.'@handle',
|
||||
InfomaniakExtendSocialite::class.'@handle',
|
||||
],
|
||||
ProxyStarted::class => [
|
||||
ProxyStartedNotification::class,
|
||||
|
@@ -40,6 +40,7 @@ function get_socialite_provider(string $provider)
|
||||
'github' => \Laravel\Socialite\Two\GithubProvider::class,
|
||||
'gitlab' => \Laravel\Socialite\Two\GitlabProvider::class,
|
||||
'google' => \Laravel\Socialite\Two\GoogleProvider::class,
|
||||
'infomaniak' => \SocialiteProviders\Infomaniak\Provider::class,
|
||||
];
|
||||
|
||||
return Socialite::buildProvider(
|
||||
|
@@ -40,6 +40,7 @@
|
||||
"resend/resend-laravel": "^0.15.0",
|
||||
"sentry/sentry-laravel": "^4.6",
|
||||
"socialiteproviders/authentik": "^5.2",
|
||||
"socialiteproviders/infomaniak": "^4.0",
|
||||
"socialiteproviders/microsoft-azure": "^5.1",
|
||||
"spatie/laravel-activitylog": "^4.7.3",
|
||||
"spatie/laravel-data": "^4.11",
|
||||
|
53
composer.lock
generated
53
composer.lock
generated
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "871067cb42e6347ca53ff36e81ac5079",
|
||||
"content-hash": "5517a7becb5d31fa2ef3ecfaea06f7a7",
|
||||
"packages": [
|
||||
{
|
||||
"name": "3sidedcube/laravel-redoc",
|
||||
@@ -7467,6 +7467,57 @@
|
||||
},
|
||||
"time": "2023-11-07T22:21:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "socialiteproviders/infomaniak",
|
||||
"version": "4.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/SocialiteProviders/Infomaniak.git",
|
||||
"reference": "9796ad686204443bfdf3ff19a6c409e8771667e1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/SocialiteProviders/Infomaniak/zipball/9796ad686204443bfdf3ff19a6c409e8771667e1",
|
||||
"reference": "9796ad686204443bfdf3ff19a6c409e8771667e1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-json": "*",
|
||||
"php": "^8.0",
|
||||
"socialiteproviders/manager": "^4.4"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"SocialiteProviders\\Infomaniak\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Leopold Jacquot",
|
||||
"email": "leopold.jacquot@infomaniak.com"
|
||||
}
|
||||
],
|
||||
"description": "Infomaniak OAuth2 Provider for Laravel Socialite",
|
||||
"keywords": [
|
||||
"infomaniak",
|
||||
"laravel",
|
||||
"oauth",
|
||||
"oauth2",
|
||||
"provider",
|
||||
"socialite"
|
||||
],
|
||||
"support": {
|
||||
"docs": "https://socialiteproviders.com/qq",
|
||||
"issues": "https://github.com/socialiteproviders/providers/issues",
|
||||
"source": "https://github.com/socialiteproviders/providers"
|
||||
},
|
||||
"time": "2024-11-20T05:42:36+00:00"
|
||||
},
|
||||
{
|
||||
"name": "socialiteproviders/manager",
|
||||
"version": "v4.7.0",
|
||||
|
@@ -19,6 +19,7 @@ class OauthSettingSeeder extends Seeder
|
||||
'gitlab',
|
||||
'google',
|
||||
'authentik',
|
||||
'infomaniak',
|
||||
]);
|
||||
|
||||
$isOauthSeeded = OauthSetting::count() > 0;
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "تسجيل الدخول باستخدام GitHub",
|
||||
"auth.login.gitlab": "تسجيل الدخول باستخدام Gitlab",
|
||||
"auth.login.google": "تسجيل الدخول باستخدام Google",
|
||||
"auth.login.infomaniak": "تسجيل الدخول باستخدام Infomaniak",
|
||||
"auth.already_registered": "هل سبق لك التسجيل؟",
|
||||
"auth.confirm_password": "تأكيد كلمة المرور",
|
||||
"auth.forgot_password": "نسيت كلمة المرور",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "Přihlásit se pomocí GitHubu",
|
||||
"auth.login.gitlab": "Přihlásit se pomocí Gitlabu",
|
||||
"auth.login.google": "Přihlásit se pomocí Google",
|
||||
"auth.login.infomaniak": "Přihlásit se pomocí Infomaniak",
|
||||
"auth.already_registered": "Již jste registrováni?",
|
||||
"auth.confirm_password": "Potvrďte heslo",
|
||||
"auth.forgot_password": "Zapomněli jste heslo",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "Mit GitHub anmelden",
|
||||
"auth.login.gitlab": "Mit GitLab anmelden",
|
||||
"auth.login.google": "Mit Google anmelden",
|
||||
"auth.login.infomaniak": "Mit Infomaniak anmelden",
|
||||
"auth.already_registered": "Bereits registriert?",
|
||||
"auth.confirm_password": "Passwort bestätigen",
|
||||
"auth.forgot_password": "Passwort vergessen",
|
||||
|
@@ -6,6 +6,7 @@
|
||||
"auth.login.github": "Login with GitHub",
|
||||
"auth.login.gitlab": "Login with Gitlab",
|
||||
"auth.login.google": "Login with Google",
|
||||
"auth.login.infomaniak": "Login with Infomaniak",
|
||||
"auth.already_registered": "Already registered?",
|
||||
"auth.confirm_password": "Confirm password",
|
||||
"auth.forgot_password": "Forgot password",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "Acceder con GitHub",
|
||||
"auth.login.gitlab": "Acceder con Gitlab",
|
||||
"auth.login.google": "Acceder con Google",
|
||||
"auth.login.infomaniak": "Acceder con Infomaniak",
|
||||
"auth.already_registered": "¿Ya estás registrado?",
|
||||
"auth.confirm_password": "Confirmar contraseña",
|
||||
"auth.forgot_password": "¿Olvidaste tu contraseña?",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "ورود با گیت هاب",
|
||||
"auth.login.gitlab": "ورود با گیت لب",
|
||||
"auth.login.google": "ورود با گوگل",
|
||||
"auth.login.infomaniak": "ورود با Infomaniak",
|
||||
"auth.already_registered": "قبلاً ثبت نام کردهاید؟",
|
||||
"auth.confirm_password": "تایید رمز عبور",
|
||||
"auth.forgot_password": "فراموشی رمز عبور",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "Connexion avec GitHub",
|
||||
"auth.login.gitlab": "Connexion avec Gitlab",
|
||||
"auth.login.google": "Connexion avec Google",
|
||||
"auth.login.infomaniak": "Connexion avec Infomaniak",
|
||||
"auth.already_registered": "Déjà enregistré ?",
|
||||
"auth.confirm_password": "Confirmer le mot de passe",
|
||||
"auth.forgot_password": "Mot de passe oublié",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "Accedi con GitHub",
|
||||
"auth.login.gitlab": "Accedi con Gitlab",
|
||||
"auth.login.google": "Accedi con Google",
|
||||
"auth.login.infomaniak": "Accedi con Infomaniak",
|
||||
"auth.already_registered": "Già registrato?",
|
||||
"auth.confirm_password": "Conferma password",
|
||||
"auth.forgot_password": "Password dimenticata",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "GitHubでログイン",
|
||||
"auth.login.gitlab": "Gitlabでログイン",
|
||||
"auth.login.google": "Googleでログイン",
|
||||
"auth.login.infomaniak": "Infomaniakでログイン",
|
||||
"auth.already_registered": "すでに登録済みですか?",
|
||||
"auth.confirm_password": "パスワードを確認",
|
||||
"auth.forgot_password": "パスワードを忘れた",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "Entrar com GitHub",
|
||||
"auth.login.gitlab": "Entrar com Gitlab",
|
||||
"auth.login.google": "Entrar com Google",
|
||||
"auth.login.infomaniak": "Entrar com Infomaniak",
|
||||
"auth.already_registered": "Já tem uma conta?",
|
||||
"auth.confirm_password": "Confirmar senha",
|
||||
"auth.forgot_password": "Esqueceu a senha?",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "Autentificare prin GitHub",
|
||||
"auth.login.gitlab": "Autentificare prin Gitlab",
|
||||
"auth.login.google": "Autentificare prin Google",
|
||||
"auth.login.infomaniak": "Autentificare prin Infomaniak",
|
||||
"auth.already_registered": "Sunteți deja înregistrat?",
|
||||
"auth.confirm_password": "Confirmați parola",
|
||||
"auth.forgot_password": "Ați uitat parola",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "GitHub ile Giriş Yap",
|
||||
"auth.login.gitlab": "GitLab ile Giriş Yap",
|
||||
"auth.login.google": "Google ile Giriş Yap",
|
||||
"auth.login.infomaniak": "Infomaniak ile Giriş Yap",
|
||||
"auth.already_registered": "Zaten kayıtlı mısınız?",
|
||||
"auth.confirm_password": "Şifreyi Onayla",
|
||||
"auth.forgot_password": "Şifremi Unuttum",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "Đăng Nhập Bằng GitHub",
|
||||
"auth.login.gitlab": "Đăng Nhập Bằng Gitlab",
|
||||
"auth.login.google": "Đăng Nhập Bằng Google",
|
||||
"auth.login.infomaniak": "Đăng Nhập Bằng Infomaniak",
|
||||
"auth.already_registered": "Đã đăng ký?",
|
||||
"auth.confirm_password": "Nhập lại mật khẩu",
|
||||
"auth.forgot_password": "Quên mật khẩu",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "使用 GitHub 登录",
|
||||
"auth.login.gitlab": "使用 Gitlab 登录",
|
||||
"auth.login.google": "使用 Google 登录",
|
||||
"auth.login.infomaniak": "使用 Infomaniak 登录",
|
||||
"auth.already_registered": "已经注册?",
|
||||
"auth.confirm_password": "确认密码",
|
||||
"auth.forgot_password": "忘记密码",
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"auth.login.github": "使用 GitHub 登入",
|
||||
"auth.login.gitlab": "使用 Gitlab 登入",
|
||||
"auth.login.google": "使用 Google 登入",
|
||||
"auth.login.infomaniak": "使用 Infomaniak 登入",
|
||||
"auth.already_registered": "已經註冊?",
|
||||
"auth.confirm_password": "確認密碼",
|
||||
"auth.forgot_password": "忘記密碼",
|
||||
|
Reference in New Issue
Block a user