Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure secret names are unique and rfc1123 compliant (#138)
* add rfc1123 helper and ensure secret id is compliant * unit test for generate_rfc1123 * tweak secret_id format * validate name during user_create * ensure generate_rfc1123 starts/ends with alphanum * adjust secret name to start with "auth-" to ensure usernames with non-rfc1123 chars do not start the name; drop unnecessary suffix since the generator ensures a valid end char
- Loading branch information
Showing
5 changed files
with
53 additions
and
6 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