Using create_token() from icarus_models
Some checks failed
Rust Build / Check (pull_request) Failing after 2m0s
Rust Build / Rustfmt (pull_request) Failing after 36s
Rust Build / Test Suite (pull_request) Failing after 2m54s
Rust Build / Clippy (pull_request) Failing after 1m24s
Rust Build / build (pull_request) Failing after 3m6s
Some checks failed
Rust Build / Check (pull_request) Failing after 2m0s
Rust Build / Rustfmt (pull_request) Failing after 36s
Rust Build / Test Suite (pull_request) Failing after 2m54s
Rust Build / Clippy (pull_request) Failing after 1m24s
Rust Build / build (pull_request) Failing after 3m6s
This commit is contained in:
@@ -31,6 +31,7 @@ mod util {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn create_token(provided_key: &String) -> Result<(String, i64), josekit::JoseError> {
|
pub fn create_token(provided_key: &String) -> Result<(String, i64), josekit::JoseError> {
|
||||||
|
/*
|
||||||
let mut header = JwsHeader::new();
|
let mut header = JwsHeader::new();
|
||||||
header.set_token_type(TOKENTYPE);
|
header.set_token_type(TOKENTYPE);
|
||||||
|
|
||||||
@@ -61,6 +62,8 @@ pub fn create_token(provided_key: &String) -> Result<(String, i64), josekit::Jos
|
|||||||
}
|
}
|
||||||
Err(e) => Err(josekit::JoseError::InvalidClaim(e.into())),
|
Err(e) => Err(josekit::JoseError::InvalidClaim(e.into())),
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
icarus_models::token::create_token(provided_key, &String::from(MESSAGE), &String::from(ISSUER), &String::from(AUDIENCE))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn verify_token(key: &String, token: &String) -> bool {
|
pub fn verify_token(key: &String, token: &String) -> bool {
|
||||||
|
Reference in New Issue
Block a user