mirror of
https://github.com/google/nomulus
synced 2026-04-26 03:00:48 +00:00
Daggerize XsrfTokenManager
The one-day validity period is also moved from the caller into XsrfTokenManager. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=147857716
This commit is contained in:
@@ -34,12 +34,12 @@ public class FakeUserService implements UserService {
|
||||
|
||||
@Override
|
||||
public String createLoginURL(String destinationURL) {
|
||||
throw new UnsupportedOperationException();
|
||||
return String.format("/login?dest=%s", destinationURL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String createLoginURL(String destinationURL, String authDomain) {
|
||||
throw new UnsupportedOperationException();
|
||||
return createLoginURL(destinationURL);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@@ -51,12 +51,12 @@ public class FakeUserService implements UserService {
|
||||
|
||||
@Override
|
||||
public String createLogoutURL(String destinationURL) {
|
||||
throw new UnsupportedOperationException();
|
||||
return String.format("/logout?dest=%s", destinationURL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String createLogoutURL(String destinationURL, String authDomain) {
|
||||
throw new UnsupportedOperationException();
|
||||
return createLogoutURL(destinationURL);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user