oxide-auth
A OAuth2 server library, for use in combination with iron or other frontends, featuring a set of configurable and pluggable backends.
About
oxide-auth
aims at providing a comprehensive and extensible interface to managing oauth2 tokens on a server. While the core package is agnostic of the used frontend, an optional iron adaptor is provided with the default configuration. Through an interface designed with traits, the frontend is as easily pluggable as the backend.
Example
use *;
use *;
/// Example of a main function of a iron server supporting oauth.
/// This should display a page to the user asking for his permission to proceed.
/// You can use the Response in Ok to achieve this.
/// This shows the second style of authentication handler, a iron::Handler compatible form.
/// Allows composition with other libraries or frameworks built around iron.