-
Notifications
You must be signed in to change notification settings - Fork 25
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
Connect mobile application with user_cas #69
Comments
mobile ownCloud/Nextcloud Application login with CAS is only available with enabled OAuth2 app. Are your already using OAuth2 app? Regards, |
I'm afraid i don't understand what you are saying. Huge thanks for your help. |
@conanedogawa2 Yes you have to install the OAuth2 app and configure it, so your Nextcloud instance is working as an OAuth2 provider itself. Then the desktop and mobile applications can authenticate you via OAuth2 web-requests where you can choose to log in via CAS. There is no other option to authenticate against CAS with an desktop/mobile client, because CAS is a web-form-based authentication system only. Regards, Felix |
I have honestly no clue of what i'm supposed to do with OAuth. OAuth isn't supposed to allow login from an external identity provider like google and facebook ? Thanks again ! |
We experience the same issue, but strangely not every time... We have set
On the web server side we can see the client making those requests during configuration process :
We can also see that a token for the mobile client is generated on the server side (listed in the user's Parameters -> Security), but the client fails to get it... In some minor cases the mobile client configuration does not fail and it receives correctly the token. When setting |
Hi @leManu thanks for your input, I’ll try to debug this. Regards |
Bug fixes by #86 Regards, |
That's nice, thanks a lot ! |
Fix Nextcloud login-flow bug, Fixes #69
Describe the bug
When i try to connect with user_cas on the official nextcloud application an error is thrown "Access forbidden Invalid request"
To Reproduce
1: Set up a fresh docker installation of Nextcloud 16.0.5 with only custom apps user_cas.
2: Import user and user data
3: Download the android mobile application and try to log in
4 :Error "Access forbidden Invalid request" is thrown
Falling back to old authentication method works but display only a webview of nextcloud.
Log in with QR CODE works like a charm the usual way. But since it won't be very handy for thousand of user to understand the procedure it'll be more conveniant to make the usual way to connect works.
Apache log and Nextcloud one don't report anything at all. (No 4XX http code)
Expected behavior
I'm connected to the app, not the webview one with the new authentication method.
Software (please complete the following information):
The text was updated successfully, but these errors were encountered: