We currently have a group of web-services exposing interfaces to a variety of different client types and roles.
Background:
The web-service application code is (and will stay) written in a weakly typed dynamic language.
Authentication is handled seperately, this post is about Authorisation.
All operations exposed by the web-services are stateless.
The web-services talk both SOAP and REST(JSON).
I'm definitely not interested in starting a discussion about the merits of either approach.
Question:
I'd like to implement a scheme to declaratively define simultaneously
- complex WSDL typing of inputs & outputs for exposed methods, and
- required Authorisation TRAITS and/or ROLES to make use of exposed methods.
I'd like to have the declarations either inline with the interface definitions (say as method attributes), or externally defined (say via YAML files), but not managed dynamically in the database.
Does any such implementation already exist for (any) weakly typed dynamic language? Are there wholly external implementations we could build apon?