Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 2.56 KB

File metadata and controls

58 lines (43 loc) · 2.56 KB

Read Me First

The following was discovered as part of building this project:

Getting Started

Spring Boot Security

This is an example of Spring Boot Security using in-memory configuration for

  • authentication
  • authorization

There are two users as follows:

  • "user" with a password of "user"
  • "admin" with a password of "admin"

The password for "user" is hashed using bcrypt-generator.com and hard coded into WebSecurityConfiguration.kt The password for "admin" is hashed using BcryptPasswordEncoder().

Access to pages is as follows:

  • "user" has access to /user
  • "admin" has access to /admin
  • /all is accessible to authenticated users - "user" and "admin"
  • / is accessible without authentication

To try it out:

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you: