mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-17 01:12:27 -05:00
[PR #7197] [MERGED] sso_auth improvements #26117
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/7197
Author: @Timshel
Created: 5/8/2026
Status: ✅ Merged
Merged: 5/16/2026
Merged by: @BlackDex
Base:
main← Head:sso_auth📝 Commits (1)
1eddcd6sso_auth improvements📊 Changes
11 files changed (+59 additions, -48 deletions)
View changed files
➕
migrations/mysql/2026-05-05-120000_sso_auth_error/down.sql(+1 -0)➕
migrations/mysql/2026-05-05-120000_sso_auth_error/up.sql(+1 -0)➕
migrations/postgresql/2026-05-05-120000_sso_auth_error/down.sql(+1 -0)➕
migrations/postgresql/2026-05-05-120000_sso_auth_error/up.sql(+1 -0)➕
migrations/sqlite/2026-05-05-120000_sso_auth_error/down.sql(+1 -0)➕
migrations/sqlite/2026-05-05-120000_sso_auth_error/up.sql(+1 -0)📝
src/api/identity.rs(+19 -23)📝
src/db/models/mod.rs(+1 -1)📝
src/db/models/sso_auth.rs(+18 -10)📝
src/db/schema.rs(+1 -0)📝
src/sso.rs(+14 -14)📄 Description
Improve SSO auth flow.
Was a bit lazy with the
code_response_errorcolumn and stored botherroranderror_descriptionin it.Could be written as two columns but preferred to have the
Optionof the tuple instead of two separateOption.For
mysqldeleted thesso_authtable since thecode_responsecontained and whole json serialization and could overflow the newVARCHAR(768)limit (due to the index).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.