unilim-cas 1.0.1

A purrfect CAS authentication wrapper for Unilim.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod cas;
mod oauth2;
mod pending;

pub use cas::CAS;
pub use oauth2::OAuth2;
pub use pending::PendingAuth;

#[global_allocator]
static ALLOCATOR: lol_alloc::LockedAllocator<lol_alloc::FreeListAllocator> =
    lol_alloc::LockedAllocator::new(lol_alloc::FreeListAllocator::new());

impl From<crate::Error> for wasm_bindgen::JsValue {
    fn from(error: crate::Error) -> Self {
        js_sys::Error::new(&error.to_string()).into()
    }
}