Crate oxide_auth [] [src]

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.

By default, the iron backend is included in a module of the same name while testing is done internally without any network connections. The interface those two methods use is exactly the same, guaranteeing responses to be the same in both cases.

Modules

code_grant

Adds frontend and backend for the authorization code flow.

iron

Offers bindings for the code_grant module with iron servers.

primitives

A collection of primites useful for more than one authorization method.