KeizerDev / Mister

Just a Magister client for android
https://play.google.com/store/apps/details?id=nl.mister
3 stars 1 forks source link

Magister new login protocol #18

Open KeizerDev opened 9 years ago

KeizerDev commented 9 years ago

Hi,

Is there already someone who can explain how the new login protocol of Magister works? Just saw today about it today and was wondering of how I could implement this. Is there any bash script or something out there to try it out?

Vogeltak commented 9 years ago

What do you mean? I have not noticed a change in how it works. Where did you read about the "change"?

This bash script still works for me:

#!/bin/bash
schoolprefix="SCHOOLPREFIX"
pid="LEERLINGENNUMMER"
pw="WACHTWOORD"

curl -X POST --cookie-jar ./cookie -d "Gebruikersnaam=$pid&Wachtwoord=$pw" https://$schoolprefix.magister.net/api/sessie

curl -X GET --cookie ./cookie https://$schoolprefix.magister.net/api/account
KeizerDev commented 9 years ago

Does it still work for you? This is the new way of logging in in for me:

#!/bin/bash
schoolprefix="SCHOOLPREFIX"
pid="LEERLINGENNUMMER"
pw="WACHTWOORD"

curl -X DELETE --cookie-jar ./somefile https://$schoolprefix.magister.net/api/sessies/huidige

curl -X POST --cookie ./somefile  -d "Gebruikersnaam=$pid&Wachtwoord=$pw" https://$schoolprefix.magister.net/api/sessies 
Vogeltak commented 9 years ago

Your new way to login does not work for me. What version of Magister does your school use? We are on 6.0.23

KeizerDev commented 9 years ago

Version 6.0.24

Vogeltak commented 9 years ago

Aha, that might explain some things. Does Schoolmaster publish update logs somewhere?

KeizerDev commented 9 years ago

Yes, give me a sec.

KeizerDev commented 9 years ago
https://$schoolprefix.magister.net/api/versie
KeizerDev commented 9 years ago

Not really update logs, I think the date is very interesting

Vogeltak commented 9 years ago

That's cool, but what I meant was a publication of what they added in new versions.

KeizerDev commented 9 years ago

Yeah, but that's the only info the give..

Vogeltak commented 9 years ago

Disappointing..