Struct cataclysm_jwt::jwt_session::JWTHS256Session
source · pub struct JWTHS256Session {
pub aud: String,
pub iss: String,
pub verification_key: HS256,
}
Expand description
Implementation of HS256 session, or symmetric session (the most common at least)
Fields§
§aud: String
§iss: String
§verification_key: HS256
Implementations§
source§impl JWTHS256Session
impl JWTHS256Session
sourcepub fn builder() -> JWTHS256Builder
pub fn builder() -> JWTHS256Builder
Simple builder function
Trait Implementations§
source§impl Clone for JWTHS256Session
impl Clone for JWTHS256Session
source§fn clone(&self) -> JWTHS256Session
fn clone(&self) -> JWTHS256Session
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl JWTSession for JWTHS256Session
impl JWTSession for JWTHS256Session
source§fn build_from_req(
&self,
req: &Request
) -> Result<HashMap<String, String>, Error>
fn build_from_req( &self, req: &Request ) -> Result<HashMap<String, String>, Error>
Build session from incoming request. Should return a HashMap with values needed to validate session and possibly receive user information (through jwt)