summaryrefslogtreecommitdiff
path: root/src/test/fixtures/identity.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/fixtures/identity.rs')
-rw-r--r--src/test/fixtures/identity.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/fixtures/identity.rs b/src/test/fixtures/identity.rs
index 9e8e403..56b4ffa 100644
--- a/src/test/fixtures/identity.rs
+++ b/src/test/fixtures/identity.rs
@@ -17,7 +17,7 @@ pub fn not_logged_in() -> IdentityToken {
pub async fn logged_in(app: &App, login: &(String, Password), now: &RequestedAt) -> IdentityToken {
let (name, password) = login;
let token = app
- .logins()
+ .tokens()
.login(name, password, now)
.await
.expect("should succeed given known-valid credentials");
@@ -28,7 +28,7 @@ pub async fn logged_in(app: &App, login: &(String, Password), now: &RequestedAt)
pub async fn from_token(app: &App, token: &IdentityToken, issued_at: &RequestedAt) -> Identity {
let secret = token.secret().expect("identity token has a secret");
let (token, login) = app
- .logins()
+ .tokens()
.validate(&secret, issued_at)
.await
.expect("always validates newly-issued secret");