Commit Graph

2219 Commits (d40626b07ba1d5d3db09b1807898aa244a38fe0b)

Author SHA1 Message Date
guqing 0f4ae08fd8
feat: add logout handler (#2110)
* feat: add logout handler

* chore: delete unused code

* fix: merge conflicts
2022-05-25 09:58:10 +00:00
guqing c5df6d3dbb
feat: add default role binding lister and role getter (#2108)
* feat: add default role binding lister and role getter

* feat: add initial capacity for role binding list
2022-05-25 07:52:10 +00:00
John Niang 9990fdd086
Upgrade to Spring Boot 3.0.0-M3 (#2102)
Please see https://github.com/spring-projects/spring-boot/releases/tag/v3.0.0-M3
2022-05-20 03:35:34 +00:00
John Niang 5f9daf4735
Add JSON schema generator and validator (#2093)
Only validate the JSON schema when saving Extension into database.
2022-05-17 16:06:12 +00:00
John Niang 264f9e39cb
Add support for Extension mechanism (#2086)
* Add support for Extension mechanism

1. Add ExtensionStore
2. Add Extension
3. Add Scheme

* Add more unit tests

* Fix checkstyle violations

* Remove unused import
2022-05-17 10:36:13 +00:00
guqing be2c0654a2
chore: add checkstyle rule (#2091)
* feat: add unused imports checkstyle rule

* feat: add java doc style rule

* fix: check style
2022-05-17 06:46:11 +00:00
John Niang 3cf2f9d7e1
Add support for API documentation (#2082) 2022-05-11 08:06:11 +00:00
guqing b4e9b54ffe
refactor: remove authorization filter and replace it with the RequestInfoAuthorizationManager (#2081) 2022-05-11 02:26:11 +00:00
John Niang 6db4f1105a
Upgrade Spring Boot to 3.0.0-M2 (#2071)
from 3.0.0-M1 to 3.0.0-M2, please refer to https://github.com/spring-projects/spring-boot/releases/tag/v3.0.0-M2
2022-05-06 09:56:13 +00:00
guqing d9bccdb5e1
feat: Add rule resolver and authorization filter (#1904)
* feat: Add request info resolver and evaluation

* feat: Add attributes record

* feat: Add rule resolver and authorization filter

* feat: Add authorization intergation test case

* chore: add todo for only testing class
2022-04-29 06:39:08 +00:00
guqing 9a0dc50653
feat: Add Principal attribute to authorizationBuilder when password authenticate successfully (#1878) 2022-04-22 09:36:11 +00:00
guqing a7b9433120
feat: Add bearer token filter config for authentication (#1876) 2022-04-22 07:36:11 +00:00
guqing 6de85184b1
feat: Add bearer token authentication filter for bearer authentication (#1872) 2022-04-22 06:36:11 +00:00
guqing e8d8ef8f28
feat: Add jwt token and provider for jwt authentication (#1871) 2022-04-22 06:00:12 +00:00
guqing 673c2068d9
feat: Add default bearer token resolver for rfc6750#section-2.1-2.3 (#1869) 2022-04-22 03:04:10 +00:00
guqing 599ab5618b
feat: Add bearer token errors for rfc6750#section-3.1 (#1868) 2022-04-21 08:46:12 +00:00
guqing c999c35a20
feat: Add bearer token and bearer authentication (#1864) 2022-04-21 07:58:12 +00:00
guqing 3f5e83fcae
chore: use providerSettings to create OAuth2TokenEndpointFilter (#1863) 2022-04-20 08:08:10 +00:00
guqing 8ac819ad14
chore: cleanup deprecated class (#1859) 2022-04-20 03:14:10 +00:00
guqing f1ccccb557
refactor: use OAuth2Password grant instead of JwtUsernamePassword authentication (#1857) 2022-04-20 03:02:10 +00:00
guqing ed6aea6245
feat: Add oauth2 refresh token authentication (#1856)
* feat: Add oauth2 refresh token authentication

* feat: Add unit test case
2022-04-19 10:16:14 +00:00
guqing ad562b4917
feat: Add InMemoryOAuth2AuthorizationService for development or testing (#1854) 2022-04-19 08:06:09 +00:00
guqing eee58989fe
feat: Allow configuration for token and refresh token time-to-live (#1853) 2022-04-19 03:16:15 +00:00
guqing 9dd778bdab
feat: Add ProviderContextHolder for token generate (#1852)
* feat: Add auhentication provider and password authentication filter

* refactor: JwtUsernamePasswordAuthenticationFilter and add test case

* chore: delete unused class

* fix: code style

* refactor: web secutity config

* feat: Add ProviderContextHolder for token generate

* chore: optimize imports
2022-04-18 06:58:13 +00:00
guqing 66be1d1ba7
feat: Add UsernamePasswordAuthenticationProvider and filter to authentication client password request (#1846)
* feat: Add auhentication provider and password authentication filter

* refactor: JwtUsernamePasswordAuthenticationFilter and add test case

* chore: delete unused class

* fix: code style

* refactor: web secutity config
2022-04-18 03:40:11 +00:00
guqing 20e6d4d1eb
feat: Add JwtGenerator for authentication (#1843)
* feat: Add JwtGenerator for authentication

* fix: code style

* refactor: change OAuth2TokenType type to record

* refactor: remove explicit declaration of equals and hashcode for records class
2022-04-15 02:47:57 +00:00
guqing cec6897574
refactor: next line config (#1844)
* refactor: next line config

* chore: cancle next line
2022-04-14 07:49:17 +00:00
guqing 90d61a27e9
feat: add token provider (#1841) 2022-04-13 11:38:34 +00:00
guqing b3c82396ac
feat: Add security config for halo (#1838)
* feat: Add security config for halo

* chore: delete file

* feat: add security config intergration test case

* refactor: use EnableWebSecurity annotation

* refactor: patch prefix

* Update src/test/java/run/halo/app/integration/security/AuthenticationTest.java

Co-authored-by: John Niang <johnniang@fastmail.com>

* refactor: mvc path prefix config

Co-authored-by: John Niang <johnniang@fastmail.com>
2022-04-13 09:08:34 +00:00
guqing e297b0efcf
feat: add OWNERS file for prow (#1840) 2022-04-13 17:06:22 +08:00
guqing e2843adbe7
Create basic project structure for halo 2.0 (#1699)
* feat: Add project structure

* feat: Add config

* feat: Add flyway migrate config for h2 and mysql and postgresql

* fix: checkstyle config

* chore: Upgrade springboot 2.6 to 3.0.0-m1

* feat: Add spring snapshot url for repositories

* refactor: Change jdk11 to jdk17 for github ci config

* refactor: update build.gradle config
2022-03-04 15:04:11 +08:00
Ryan Wang 641264ba5c chore: clean code for next major version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-03-03 11:34:42 +08:00
guqing 68d263bef3
Add assembler for post and sheet to replace service convert (#1691) 2022-03-03 11:15:56 +08:00
guqing 52b3e4f605
Fix the problem jsonToCacheWrapper crashes when cache value is not JSON format (#1695)
* fix: json to cache wrapper convertor when other exception

* feat: Add test case for level cache
2022-03-02 18:06:54 +08:00
lan-yonghui 4354991a9e
fix: Remove the code that filters empty strings from the properties file
* fix: Remove the code that filters empty strings from the properties file.
* blog birthday default value set "0"
2022-03-02 16:36:20 +08:00
guqing 4d71185066
fix: leak of version number inference when create or update content patch (#1690) 2022-03-02 13:40:19 +08:00
guqing 4f1a3c5f0b
refactor: post and cateogry authentication (#1678) 2022-03-01 13:32:52 +08:00
扶醉 5064837cf8
Fix the problem post and sheet contents are empty in the content API (#1686)
* fix: Post and sheet content is empty in the Content API
2022-02-27 15:47:54 +08:00
Ryan Wang c306586778
chore: bump Spring Boot to 2.5.10 (#1677)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-02-26 12:30:34 +08:00
PONGSKY 4bfc3c0228
Revert dependency of minio-java to 7.1.4 (#1666)
* fix: 降低 minio 版本,回滚至与 springboot 相对应的 okhttp 依赖版本
2022-02-25 21:24:56 +08:00
Ryan Wang 567ad5ef46
chore: sync default theme repo (#1682)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-02-25 20:42:47 +08:00
Ryan Wang a94dd8df7b
feat: add api for update photos in batch (#1679)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-02-25 16:09:30 +08:00
guqing 89c0cb5fb9
Merge pull request #1680 from ruibaby/feat/api-for-delete-photo-in-batch
feat: add api for delete photos in batch
2022-02-25 16:08:49 +08:00
Ryan Wang 5959fdfa2d feat: add api for delete photos in batch
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-02-25 15:55:11 +08:00
Ryan Wang 631b2149d3
release: 1.5.0-alpha.1 (#1671)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-02-21 23:45:20 +08:00
Ryan Wang 94d718c085
doc: update CHANGELOG.md (#1670)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-02-21 23:33:17 +08:00
guqing d889a08833
Add keep-raw option to decide how to render post (#1668)
* feat: Content add front-end rendering options and refactor post params

* feat: add default value for serverSidemarkdownRender

* refactor: content save api

* fix: generate summary

* refactor: remove useless server-side markdown render code

* refactor: allow the formatContent to be empty

* refactor: Rename serverSideMarkdownRender to keepRaw

* refactor: Rename test case
2022-02-21 22:50:35 +08:00
guqing 923eb17577
Support post content version control (#1617)
* feat: split post content to new table and support content version control

* feat: Improve post version management

* feat: Add post content and version record deletion

* feat: Add isInProcess attribute for post list and detail api

* feat: Add migrate sql script

* fix: Add a sql of allow origin_content to null in posts table

* feat: Assign a value to the source of the post content version record
2022-02-20 20:34:56 +08:00
Ryan Wang 1ee7b58ef1
Add password reset field verification (#1636)
* perf: add password reset field verification

Signed-off-by: Ryan Wang <i@ryanc.cc>

* feat: add unit test case

Co-authored-by: guqing <1484563614@qq.com>
2022-02-20 10:30:42 +08:00
guqing acf6a98d25
Add an API to update categories in batch (#1657)
* feat: Add a api of update categories in batch

* fix: filter condition
2022-02-18 15:50:02 +08:00