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
59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
|
|
#############################
|
|
# Global parameters #
|
|
#############################
|
|
_global:
|
|
configuration:
|
|
authenticate:
|
|
- api
|
|
authenticator:
|
|
default:
|
|
vendor: ldap
|
|
help: Admin Password
|
|
parameters:
|
|
uri: ldap://localhost:389
|
|
base_dn: dc=yunohost,dc=org
|
|
user_rdn: cn=admin
|
|
ldap-anonymous:
|
|
vendor: ldap
|
|
parameters:
|
|
uri: ldap://localhost:389
|
|
base_dn: dc=yunohost,dc=org
|
|
test-profile:
|
|
vendor: ldap
|
|
help: Admin Password (profile)
|
|
parameters:
|
|
uri: ldap://localhost:389
|
|
base_dn: dc=yunohost,dc=org
|
|
user_rdn: cn=admin
|
|
argument_auth: true
|
|
|
|
#############################
|
|
# Test Actions #
|
|
#############################
|
|
test:
|
|
actions:
|
|
non-auth:
|
|
api: GET /test/non-auth
|
|
configuration:
|
|
authenticate: false
|
|
auth:
|
|
api: GET /test/auth
|
|
configuration:
|
|
authenticate: all
|
|
auth-profile:
|
|
api: GET /test/auth-profile
|
|
configuration:
|
|
authenticate: all
|
|
authenticator: test-profile
|
|
auth-cli:
|
|
api: GET /test/auth-cli
|
|
configuration:
|
|
authenticate:
|
|
- cli
|
|
anonymous:
|
|
api: GET /test/anon
|
|
configuration:
|
|
authenticate: all
|
|
authenticator: ldap-anonymous
|
|
argument_auth: false
|