-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't check if username matches the requested username
It's the broker's responsibility to do that and authd doesn't know which usernames the provider considers equal, for example if they are case-sensitive or not.
- Loading branch information
Showing
12 changed files
with
16 additions
and
629 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
4 changes: 0 additions & 4 deletions
4
...a/TestIsAuthenticated/golden/error_when_broker_returns_userinfo_with_mismatching_username
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...estIsAuthenticated/golden/no_error_when_broker_returns_userinfo_with_mismatching_username
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FIRST CALL: | ||
access: granted | ||
data: {"Name":"different_username","UID":83626,"Gecos":"gecos for IA_info_mismatching_user_name","Dir":"/home/IA_info_mismatching_user_name","Shell":"/bin/sh/IA_info_mismatching_user_name","Groups":[{"Name":"different_username","GID":83626},{"Name":"group-IA_info_mismatching_user_name","GID":92849}]} | ||
err: <nil> |
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
4 changes: 0 additions & 4 deletions
4
...golden/error_when_broker_returns_username_different_than_the_one_selected/IsAuthenticated
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...icated/golden/error_when_broker_returns_username_different_than_the_one_selected/cache.db
This file was deleted.
Oops, something went wrong.
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
198 changes: 0 additions & 198 deletions
198
...ion-tests/testdata/TestCLIAuthenticate/golden/deny_authentication_if_usernames_dont_match
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.