1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! 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.

extern crate base64;
extern crate chrono;
extern crate url;
extern crate rand;
extern crate ring;
extern crate rmp_serde;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;

pub mod code_grant;
pub mod primitives;
#[cfg(feature = "iron-backend")]
pub mod iron;

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {

    }
}