Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

button "Access using CAS auth" remains shown once user is logged in #34

Open
timeos opened this issue Jun 23, 2016 · 2 comments
Open

button "Access using CAS auth" remains shown once user is logged in #34

timeos opened this issue Jun 23, 2016 · 2 comments

Comments

@timeos
Copy link

timeos commented Jun 23, 2016

Situation:

  • ownCloud 8.1
  • LDAP auth and CAS auth enabled.
  • "Force user login using CAS" checkbox is not checked (because of different bug with no possibility to access shared resources by anonymous users - all users are then forced to CAS authenticate once I check that option)

Steps:

  1. user logs-in using native owncloud login form (not pressing the "Access using CAS auth" button)
  2. after login, the "Access using CAS auth" button remains displayed on owncloud internal webpage (attaching screenshot).

owncloud-screenshot-cas-button

Yes, once user clicks on "Access using CAS auth" button on login screen and authenticates using CAS, this button is no longer displayed successful login.
The best would be to use "Force user login using CAS" but (as I said) firstly anonymous sharing access has to be fixed as this is the main reason why we use owncloud - share files with outside world.

thanks

@timeos
Copy link
Author

timeos commented Jun 23, 2016

Seems the best idea so far would be to use following apache rewrite config:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^/$ /index.php?app=user_cas [L,R]

with this rewrite you will get redirected automatically to CAS login (like with checked "Force user login using CAS" option) and you did not break anonymous sharing feature.
This also solves this bugreport as user will always get authenticated using CAS.

@tsacode
Copy link

tsacode commented Oct 18, 2016

The workaround indicated on #18 works for me without modifiing apache config.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants