forked from hawtio/hawtio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(springboot): Use more flexible Spring Security + JAAS integration (
fixes hawtio#3395) (hawtio#3457) Signed-off-by: Grzegorz Grzybek <gr.grzybek@gmail.com>
- Loading branch information
Showing
22 changed files
with
466 additions
and
97 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
13 changes: 13 additions & 0 deletions
13
examples/springboot-security/src/main/resources/users.properties
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,13 @@ | ||
# a user registry definition file processed by | ||
# io.hawt.example.spring.boot.SecurityConfig.userDetailsService() @Bean method | ||
# | ||
# to provide more sophisticated (encryption) registry of users, please define different @Bean method that | ||
# creates org.springframework.security.core.userdetails.UserDetailsService bean | ||
|
||
# the syntax is: | ||
# user = password, role1, role2, ... | ||
# passwords may be encoded. | ||
# See org.springframework.security.crypto.factory.PasswordEncoderFactories.createDelegatingPasswordEncoder() | ||
# (85e144aca83c28cef9e280f0e8f2ac0f49c60d47 is SHA1(hawtio)) | ||
hawtio = {SHA-1}85e144aca83c28cef9e280f0e8f2ac0f49c60d47, admin, viewer | ||
viewer = viewer, viewer |
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
Oops, something went wrong.