Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service URL error #42

Open
brenard opened this issue Dec 29, 2015 · 1 comment
Open

Service URL error #42

brenard opened this issue Dec 29, 2015 · 1 comment

Comments

@brenard
Copy link

brenard commented Dec 29, 2015

Hi,

I'm using omniauth-cas (version 1.1.0) with the last Gitlab release (8.3.2) and I have an issue with service URL pass to CAS Server : This URL is not the same during the login step and the serviceValidate step :

URL pass during the login step :

https://gitlab.easter-eggs.com/users/auth/cas/callback?url

URL pass during the serviceValidate step :

https://gitlab.easter-eggs.com/users/auth/cas/callback?url=

I try to understand why the url parameter is added to the URL and I locate the problem in the method return_url() in file lib/omniauth/strategies/cas.rb. If I understand, this method try to detect if an url parameter is already present in the current request and if it's not, it's try to add the request referer as url parameter. In my case, the request referer seem to be empty.

To solve my problem, I replace the method return_url() with this one :

def return_url
    {}
end

With this method, the service URL is the same during two step :

https://gitlab.easter-eggs.com/users/auth/cas/callback?

My work-around is certainly not a good solution but I don't understand the utility of this url parameter.

Regard

@eriko
Copy link
Contributor

eriko commented Dec 29, 2015

Given that @dlindahl is no longer maintaining this gem I might suggest looking at saml auth. It is the one of the default/built in auth systems in gitlab. If your CAS provider is using Jasig-cas the last couple versions are capable of provided SAML credentials.

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

No branches or pull requests

2 participants