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

An issue in the connection to educonnect #318

Open
ScorpionSage510 opened this issue Dec 21, 2024 · 2 comments
Open

An issue in the connection to educonnect #318

ScorpionSage510 opened this issue Dec 21, 2024 · 2 comments

Comments

@ScorpionSage510
Copy link

Hello,

When I try to log in with my credentials, I always get this error

 File "C:\Users\Eleve\AppData\Roaming\Python\Python38\site-packages\pronotepy\ent\generic_func.py", line 135, in _cas_edu
    raise ENTLoginError("Connection failure 1")
pronotepy.exceptions.ENTLoginError: Connection failure 

for this code

import pronotepy
from pronotepy.ent import ac_reims
# importing ent specific function, you do not need to import anything if you dont use an ent

client = pronotepy.Client('https://********.index-education.net/pronote/eleve.html',
                      username='***********',
                      password='*****',
                      account_pin="1111",
                      ent=ac_reims,
                      device_name="pronotepy",
                      client_identifier=None)

# keep client identifier from pronote
identifier = client.client_identifier

However, when I edit the generic_func by removing the &service=https://example.com/ from the URL https://cas.monbureaunumerique.fr/login?selection=EDU&service=https://example.com/ (by this code url= url.split('&')[0]), it works.
Moreover, it bears out with my browser : Application not allowed to use CAS if &service=https://example.com/ is present but if I remove it, it perfectly works.
May someone fix this problem?

@papaeng89
Copy link

Hello,
Not working too with eclat_bfc with username/password authentification.
And not working with qrcode authentification, entities are unavailable and error "Decryption failed while tryng to unpad. ( probably bad decryption key/iv)', 'exception happened during logging -> probably bad username/password') but when i connect with browser username and password are ok

Thanks and happy new year 2025

@idjul
Copy link
Contributor

idjul commented Jan 7, 2025

Issue is located in /pronotepy/ent/ent.py
https://example.com/ should be removed from all urls
Tried on my side and fully working

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

3 participants