diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-09T07·10+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-09T07·11+0200 |
commit | ef5e8ec8bd2cf06cdc48b7d77ec9a85b370b4433 (patch) | |
tree | 877010e87ee3451f588c39b5a61a2b481d3a38f3 /src/oidc.rs | |
parent | d91dec28f8aa1eacbcce697f232902ad09d79523 (diff) |
feat(handlers): Add RequireLogin middleware
Adds a middleware that automatically redirects users to the login page if they don't have an active session (i.e. 'author' set).
Diffstat (limited to 'src/oidc.rs')
-rw-r--r-- | src/oidc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oidc.rs b/src/oidc.rs index bd2044ce5c9b..09f7f7b6e354 100644 --- a/src/oidc.rs +++ b/src/oidc.rs @@ -42,7 +42,7 @@ pub struct CodeResponse { /// This struct represents the data extracted from the ID token and /// stored in the user's session. -#[derive(Debug)] +#[derive(Debug, Serialize, Deserialize)] pub struct Author { pub name: String, pub email: String, |