https://github.com/stylepatrick/spring-boot-web-basic-security-template
Possibilities of basic auth + oauth2 login. Basic HTTP Auth with WebMVC and Spring Security. User Repository to PostgresDB and different Roles. OAuth2 connection to Google client.
https://github.com/stylepatrick/spring-boot-web-basic-security-template
basic-authentication oauth2 postgresql security spring-boot
Last synced: about 1 month ago
JSON representation
Possibilities of basic auth + oauth2 login. Basic HTTP Auth with WebMVC and Spring Security. User Repository to PostgresDB and different Roles. OAuth2 connection to Google client.
- Host: GitHub
- URL: https://github.com/stylepatrick/spring-boot-web-basic-security-template
- Owner: stylepatrick
- License: mit
- Created: 2021-09-06T19:47:01.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-10T05:29:57.000Z (almost 5 years ago)
- Last Synced: 2025-01-26T07:41:23.876Z (over 1 year ago)
- Topics: basic-authentication, oauth2, postgresql, security, spring-boot
- Language: Java
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spring-boot-web-basic-security-template
Basic Auth and Oauth2 login possibilities.
Basic HTTP Auth with WebMVC and Spring Security. User Repository to PostgresDB and different Roles.
Different Hashs can be used by setting a {} prefix infront of the password. Example {bcrypt} or {sha256}.
Oauth2 is connection to the Google Client (API-Gateway) to make the authentication.
Endpoints:
- /login for general login
- /logout for logout
- /api is public without auth
- /api/secret auth needed
- /api/topsecret auth and role TOPSECRET needed
- /api/user returns the user principal