1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 17:14:27 +00:00
gitea/models/auth
zeripath e819da0837
WebAuthn CredentialID field needs to be increased in size (#20530)
WebAuthn have updated their specification to set the maximum size of the
CredentialID to 1023 bytes. This is somewhat larger than our current
size and therefore we need to migrate.

The PR changes the struct to add CredentialIDBytes and migrates the CredentialID string 
to the bytes field before another migration drops the old CredentialID field. Another migration
renames this field back.

Fix #20457

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-07-30 15:25:26 +02:00
..
main_test.go Use a struct as test options (#19393) 2022-04-14 21:58:21 +08:00
oauth2_test.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
oauth2.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
session.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
source_test.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
source.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
twofactor.go Use base32 for 2FA scratch token (#18384) 2022-01-26 12:10:10 +08:00
webauthn_test.go WebAuthn CredentialID field needs to be increased in size (#20530) 2022-07-30 15:25:26 +02:00
webauthn.go WebAuthn CredentialID field needs to be increased in size (#20530) 2022-07-30 15:25:26 +02:00