mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
3fae8bf1ff
* Update the API to support authenticators and session token * Add a function to clean sessions * Make the API fit in better with actions map * Minor changes on test namespace
19 lines
556 B
Python
19 lines
556 B
Python
|
|
def test_non_auth():
|
|
return {'action': 'non-auth'}
|
|
|
|
def test_auth(auth):
|
|
return {'action': 'auth',
|
|
'authenticator': 'default', 'authenticate': 'all'}
|
|
|
|
def test_auth_profile(auth):
|
|
return {'action': 'auth-profile',
|
|
'authenticator': 'test-profile', 'authenticate': 'all'}
|
|
|
|
def test_auth_cli():
|
|
return {'action': 'auth-cli',
|
|
'authenticator': 'default', 'authenticate': ['cli']}
|
|
|
|
def test_anonymous():
|
|
return {'action': 'anonymous',
|
|
'authenticator': 'ldap-anonymous', 'authenticate': 'all'}
|