diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-11-30 20:29:25 +1100 |
|---|---|---|
| committer | James Elliott <james-d-elliott@users.noreply.github.com> | 2024-03-04 20:29:12 +1100 |
| commit | 5d3e7a0183c9842c2cc4e6b12fe8300297110a71 (patch) | |
| tree | bf9aa9a3c6c2ca4a70bd1fa12134b5b1a74f9209 /internal/handlers/handler_authz_test.go | |
| parent | e4e878f05f8ae1e1784b3ac190459b2d506f796c (diff) | |
feat(totp): reuse policy
This prevents the reuse of previously used codes being reused within the validity period. This is prevented in a smart way by recording the step multiplied by the period and hashing that value as a string with the HMAC-SHA256 algorithm, with a HMAC key unique to recording these values (auto generated).
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/handlers/handler_authz_test.go')
| -rw-r--r-- | internal/handlers/handler_authz_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/handler_authz_test.go b/internal/handlers/handler_authz_test.go index 368091977..559a5cb57 100644 --- a/internal/handlers/handler_authz_test.go +++ b/internal/handlers/handler_authz_test.go @@ -31,7 +31,7 @@ func (s *AuthzSuite) GetMock(config *schema.Configuration, targetURI *url.URL, s mock := mocks.NewMockAutheliaCtx(s.T()) if session != nil { - domain := mock.Ctx.GetTargetURICookieDomain(targetURI) + domain := mock.Ctx.GetCookieDomainFromTargetURI(targetURI) provider, err := mock.Ctx.GetCookieDomainSessionProvider(domain) s.Require().NoError(err) |
