Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente | |||
| si:logiciels:oauth2proxy [2025/04/24 21:33] – supprimée - modification externe (Unknown date) 127.0.0.1 | si:logiciels:oauth2proxy [2025/04/24 21:33] (Version actuelle) – ↷ Page déplacée de si:oauth2proxy à si:logiciels:oauth2proxy vcalame | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== Oauth2 proxy ====== | ||
| + | |||
| + | |||
| + | < | ||
| + | cd /opt | ||
| + | wget https:// | ||
| + | tar xvfz oauth2-proxy-v7.0.1.linux-amd64.tar.gz | ||
| + | ln -s / | ||
| + | </ | ||
| + | |||
| + | création du fichier de conf dans / | ||
| + | < | ||
| + | provider = " | ||
| + | redirect_url = " | ||
| + | oidc_issuer_url = " | ||
| + | upstreams = [ | ||
| + | " | ||
| + | ] | ||
| + | email_domains = [ | ||
| + | " | ||
| + | ] | ||
| + | client_id = " | ||
| + | client_secret = " | ||
| + | pass_access_token = true | ||
| + | cookie_secret = " | ||
| + | skip_provider_button = true | ||
| + | </ | ||
| + | |||
| + | |||
| + | Tester votre fichier de conf | ||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | corriger les soucis | ||
| + | |||
| + | ====== création du service ====== | ||
| + | |||
| + | |||
| + | Création du fichier / | ||
| + | < | ||
| + | [Unit] | ||
| + | Description=oauth2-proxy daemon service | ||
| + | After=syslog.target network.target | ||
| + | |||
| + | [Service] | ||
| + | User=www-data | ||
| + | Group=www-data | ||
| + | |||
| + | ExecStart=/ | ||
| + | ExecReload=/ | ||
| + | |||
| + | KillMode=process | ||
| + | Restart=always | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | |||
| + | </ | ||
| + | |||
| + | si le reverse proxy n'est pas sur le même serveur il faut qu'il y ait : | ||
| + | < | ||
| + | ExecStart=/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | le mettre en exécutable, | ||
| + | < | ||
| + | chmod +x/ | ||
| + | systemctl enable oauth2-proxy.service | ||
| + | systemctl status oauth2-proxy.service | ||
| + | systemctl start oauth2-proxy.service | ||
| + | </ | ||
| + | |||
| + | |||
| + | doc | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||