chauth / confluence_http_authenticator

The new home of the Confluence HTTP Authenticator (formerly known as the Confluence Shibboleth Authenticator)
Other
64 stars 36 forks source link

Login link in mobile theme #7

Closed dnmvisser closed 11 years ago

dnmvisser commented 11 years ago

Confluence 5.1 appears to have a dedicated 'mobile' theme. I got confluence_http_authenticator configured and working OK (although with modmellon instead of mod_shib), but if you then visit it with an iPad, and try to log in, the button links to /plugins/servlet/mobile/login?originalUrl=<...> , which is still the old static login page.

Our instance sits behind apache, so I worked around it by doing:

RewriteEngine on RewriteCond %{QUERY_STRING} ^originalUrl=(.*)$ [NC] Rewriterule ^/plugins/servlet/mobile/login /mellon/login?ReturnTo=%1 [R,NE]

Ideally this should be done in Confluence itself, just like the regular login link in seraph-config.xml, but I have no idea where to do this for the mobile theme.

Any ideas?

garysweaver commented 11 years ago

See: https://jira.atlassian.com/browse/CONF-26585

Is that the same issue? We hit this back then, and unfortunately it is just a case of them not really thinking of SSO solutions like Shibboleth when they did that. The Apache rewrite and similar solutions are likely the best solution for now, so I'm going to close this ticket since there isn't anything that I know of that we could easily do in the authenticator. For changes to the docs and wiki, feel free to suggest or make changes, and let me know if you need access.

erkkiaalto commented 11 years ago

We have done it. We tried first redirecting the mobile login in Apache config. It works for Sibboleth authenticated users with no problems, but it was not possible to include local users. It was necessary to open the mobile plugin and edit login.vm and login.css. If you are interested I can send it.

Erkki 'Örkki' Aalto "Life is divided up into Internet: Erkki.Aalto@Helsinki.FI the horrible and the miserable" Snail: Tietotekniikkakeskus, P.O. Box 28 FI-00014 University of Helsinki, Finland