I am trying to figure out a clean way to add authentication and authorization in a webservice.&nbsp;&nbsp; The services of the web services are implemented as Haskell functions.&nbsp; The request to the service contains the user authentication information.&nbsp;&nbsp; I want to authenticate the user by verifying his authentication informaton, assign him roles, and then based on the roles decide on the functions and data that he can have access too.&nbsp;&nbsp; Is there a clean way to do this in Haskell?<br clear="all">
<br><br>Thanks<br><br>Daryoush<br>