Open NK308 opened 4 years ago
Differences in the SSO login flow are likely the cause of this. The POST data sent for Uni Passau can be found in the (possibly outdated) implementation of the flow here, the parse_
methods for reading data from the HTML responses can be found here. You could try tracking what actually happens when logging in via your browser using its network request debugging tool and then adapt the studip-fuse code accordingly until it works. I guess that I unfortunately can't help you much with that, as those requests all need login credentials.
As an alternative, the recommended way for accessing Stud.IP would be the OAuth API, which doesn't require handling user login credentials. Unfortunately, there's a catch: Using OAuth requires studip-fuse being registered as a client application with the respective Stud.IP instance by one of its administrators. For Passau, @thomashackl (who is also a core developer of Stud.IP) thankfully did exactly that. Maybe you could contact the administrators of your instance and ask whether they could do the same?
I'm currently trying to use studip-fuse for the studip of the Leibniz-Universität Hannover and get problems during login. I'm trying to execute studip-fuse with theese arguments:
studip-fuse -f --studip-url https://studip.uni-hannover.de/ --login-method shib --sso "https://studip.uni-hannover.de/Shibboleth.sso/Login?target=https%3A%2F%2Fstudip.uni-hannover.de%2F%3Fsso%3Dshib%26again%3Dyes%26cancel_login%3D1&entityID=https%3A%2F%2Fsso.idm.uni-hannover.de%2Fidp%2Fshibboleth" --pwfile - myUsername /path/to/mountpoint/
Might the error occur, because the login dialog of our webSSO is different from that of the university in Passau?The last two lines only appear after interrupting the program with ctrl-c. I changed some characters in the URL of the clientResponseError, because I'm not sure if my login credencials are encoded in there.