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

Hulp gezocht bij het gebruik van SSO login (via login.microsoftonline.com) #17

Open
ChielChiel opened this issue Jun 10, 2020 · 0 comments

Comments

@ChielChiel
Copy link

Hoi, deze library ziet er goed uit, ik heb alleen een probleem met het inloggen.
Mijn school gebruikt (helaas) een zogeheten sso login. Wat inhoudt dat de inlog bij somtoday niet via de eigen api gaat maar, in de app, een browser opent waarin je wordt geredirect naar login.microsoftonline.com die weer redirect naar een inlogpagina van m'n school, die redirect naar microsoft, die weer redirect naar de app van SomToday. Ik was benieuwd of iemand hier een oplossing voor heeft gevonden. Ik krijg namelijk de volgende response terug:

Response als ik curl -v gebruik:

*   Trying 84.241.178.86...
* TCP_NODELAY set
* Connected to production.somtoday.nl (84.241.178.86) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: C=NL; postalCode=7411 HW; ST=Overijssel; L=Deventer; street=Singel 25; O=Topicus.Education B.V.; OU=Somtoday; OU=Wildcard SSL; CN=*.somtoday.nl
*  start date: Aug 27 00:00:00 2018 GMT
*  expire date: Aug 26 23:59:59 2020 GMT
*  subjectAltName: host "production.somtoday.nl" matched cert's "*.somtoday.nl"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Organization Validation Secure Server CA
*  SSL certificate verify ok.
> POST /oauth2/token HTTP/1.1
> Host: production.somtoday.nl
> User-Agent: curl/7.64.1
> Accept: */*
> Authorization: Basic RDUwRTBDMDYtMzJEMS00QjQxLUExMzctQTlBODUwQzg5MkMyOnZEZFdkS3dQTmFQQ3loQ0RoYUNuTmV5ZHlMeFNHTkpY
> Content-Length: 113
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 113 out of 113 bytes
< HTTP/1.1 400 Bad Request
< Date: Fri, 05 Jun 2020 15:48:15 GMT
< Server: Apache
< Strict-Transport-Security: max-age=31536000; includeSubdomains
< X-Frame-Options: SAMEORIGIN
< X-Frame-Options: DENY
< Content-Type: application/json
< Content-Length: 95
< X-Robots-Tag: none
< X-UA-Compatible: IE=Edge
< Connection: close
< 
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, close notify (256):
{"error_description":"Invalid grant: Account has 2 attempts remaining","error":"invalid_grant"}

Ik hoop dat iemand mij hierbij kan helpen!

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

1 participant