Skip to content

Commit

Permalink
Fix issuer resolution.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Dec 24, 2023
1 parent 7b5f7af commit b12a5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/server/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl SignatureKey {
aud: "localhost".to_owned(),
exp: usize::try_from(chrono::offset::Local::now().add(Duration::days(1)).timestamp()).unwrap(),
iat: usize::try_from(chrono::offset::Local::now().timestamp()).unwrap(),
iss: format!("https//{host}"),
iss: format!("http://{host}"),
sub: "me".to_owned(),
..Default::default()
};
Expand All @@ -110,7 +110,7 @@ impl SignatureKey {
aud: "localhost".to_owned(),
exp: usize::try_from(chrono::offset::Local::now().add(Duration::days(1)).timestamp()).unwrap(),
iat: usize::try_from(chrono::offset::Local::now().timestamp()).unwrap(),
iss: format!("https//{host}"),
iss: format!("http://{host}"),
sub: "me".to_owned(),
email: Some("me@local.com".to_owned()),
name: Some("Current Test User".to_owned()),
Expand Down

0 comments on commit b12a5d5

Please sign in to comment.