-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(auth): better audit log events for fly sso + test disable (#77985)
In #75167, we made it possible to disable Fly SSO by introducing a new provider class that was identical to the original, but designated as "non-partner." As such, it needed a unique key, "fly-non-partner," but we shouldn't use this name in the audit log. This PR changes the `get_audit_log_data` method to always use "fly" as the provider name if the AuthProvider provider is either of the Fly SSO classes. This PR also clarifies the difference between the two classes, and adds a missing test for disabling Fly SSO. for context, this is what the disable audit log entry looks like before this change: ![sso disable ss](https://github.com/user-attachments/assets/765c5d11-f3ac-4202-a8a8-46988bef259a)
- Loading branch information
1 parent
c07f913
commit 7dd9748
Showing
5 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters