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

Not able to re-direct to the Nextcloud page after the authentication #25

Closed
karankotz opened this issue Jul 10, 2018 · 6 comments
Closed
Labels

Comments

@karankotz
Copy link

Hi,

I have installed the user_cas app in the nextcloud, here is the following configuration.

1>
screen shot 2018-07-09 at 9 08 00 pm

2>
screen shot 2018-07-09 at 9 09 11 pm

After hitting the cas login, I will be redirected to the CAS server login page but am not able to get redirected back to the nextcloud, after logging in with the test user "casuser" and password "Mellon".

The page just reloads as in the following screenshot:

screen shot 2018-07-09 at 9 11 42 pm

@karankotz
Copy link
Author

@felixrupp Can you please check this?

@felixrupp
Copy link
Owner

Hi @karankotz

it seems, that your CAS-Server configuration is not correct. The URL is correctly built (the service URL parameter is set according to your user_cas settings), which implies, that user_cas ist working as it should.

Please check your server configuration for redirecting back to the service.

Regards,
Felix

@karankotz
Copy link
Author

@felixrupp I am using apereo can server and have not changed any of the configurations. I have just started the server, in order for this app to work, can you please tell me what other configurations should be changed?

@felixrupp
Copy link
Owner

@karankotz Sorry, I can not provide any CAS-Server support, as I will not be able to examine your whole server setup.
Please make sure to install and configure your CAS-Server as stated in the apereo manuals. For proper functionality you should also be using domain names (wether they’re really existent or only mapped in your pc’s hosts-file). The generated url in the login-request seems to be correct. For everything else, you should consult the apereo CAS community.

Quick tip: You should be using CAS 2.0 or SAML protocol, not the very old CAS 1.0 protocol. Why are you using v1.0?

Regards,
Felix

@karankotz
Copy link
Author

@felixrupp Thanks for the advise, I have changed it to 2.0 without any luck. I am running the CAS server via a docker image.

@felixrupp
Copy link
Owner

@karankotz

And your ownCloud instance is in the same Docker container? If not, you have to configure your Docker containers accordingly, so the communication between both containers is possible. As I am not a Docker expert, I can not help you with Docker itself.

What you can try: Please set the Service URL in the user_cas settings panel to the URL of your ownCloud instance (with correct port). The url must end with "/apps/user_cas/login".

Regards,
Felix

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

No branches or pull requests

2 participants