Reviewed-on: http://git.kundeng.us/phoenix/icarus/pulls/251
This commit was merged in pull request #251.
This commit is contained in:
1 parent
50d0ea630f
commit
7ca4c655a4
10 files changed
+339
-532
No files matched your search
+1
-1
@@ -36,7 +36,7 @@ pub async fn auth<B>(
|
||||
(StatusCode::UNAUTHORIZED, Json(json_error))
|
||||
})?;
|
||||
|
||||
let secret_key = icarus_envy::environment::get_secret_main_key().await.value;
|
||||
let secret_key = icarus_envy::environment::get_secret_main_key().value;
|
||||
|
||||
let mut validation = Validation::new(jsonwebtoken::Algorithm::HS256);
|
||||
validation.set_audience(&["icarus"]); // Must match exactly what's in the token
|
||||
|
||||
Reference in new issue
Block a user