Service Authentication
Wazo services expose more and more resources through REST API, but they also ensure that the access is restricted to the authorized programs. For this, we use an authentication daemon who delivers authorizations via tokens.
Call flow
Here is the call flow to access a REST resource of a Wazo service:
- Create a
username
/password
(also calledservice_id
/service_key
) with the right ACLs, via wazo-auth. - Create a token with these credentials.
- Use this token to access the REST resource defined by the ACL.
service: Service who needs to access a REST resource.
wazo-daemon: Server that exposes a REST resource. This resource must have an attached ACL.
wazo-auth: Server that authenticates the Service and validates the required ACL with the token.
Wazo services directly use this system to communicate with each other, as you can see in their Web Services Access.