17 lines
599 B
Python
17 lines
599 B
Python
from mandaye.auth.authform import AuthForm
|
|
from mandaye.auth.vincennes import VincennesAuth
|
|
|
|
form_values = {
|
|
'form_action': '/sezhame/page/connexion-abonne',
|
|
'from_headers': { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
'form_values': { 'user': '',
|
|
'password': '',
|
|
'op': 'Se connecter',
|
|
'form_id': 'dk_opac15_login_form' },
|
|
'username_field': 'user',
|
|
'password_field': 'password'
|
|
}
|
|
|
|
auth_vincennes = VincennesAuth('https://test.vincennes.fr/comptecitoyen/auth')
|
|
authform = AuthForm(auth_vincennes, **form_values)
|