Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
GNU General Public License v3.0
29.68k stars 2.17k forks source link

Option to enable automatic SSO login #1232

Open guyke01 opened 1 month ago

guyke01 commented 1 month ago

Is it possible to make a option to enable Automatic SSO login when enabled in the config? As example a option like SECURITY_OAUTH2_AUTO_LOGIN=true.

If this setting is true the login screen will be skipped and redirected automatically to the SSO service.

sbplat commented 1 month ago

What would the default provider be?

guyke01 commented 1 month ago

It would be the provider you've setup in the SECURITY_OAUTH2_ISSUER. In my case it is Authentik.

The local login would not be usable unless you set the new environment variable to false so no automatic redirect would happen.

seang96 commented 1 week ago

If you are using a proxy you can add a rewrite rule to do this, nginx example below.

rewrite ^/login$ /oauth2/authorization/oidc;