hth
992f10a1d6
[ISSUE #11957 ] AuthModule add admin exist ( #12066 )
...
* AuthModule add admin exist
* test fix
* fix state
* add state cache
* rename to auth_admin_request
* test fix
* auth_admin_request default value fix
* fix admin request
2024-05-24 10:14:40 +08:00
shalk(xiao kun)
dc0e46e9f9
upgrade module naocs-auth from junit4 to junit5 ( #12105 )
2024-05-16 09:41:05 +08:00
hth
70ad2eb991
[ISSUE #11957 ] Remove default password ( #11991 )
...
* Remove default password
* admin role check fix
* remove tmp admin
2024-04-29 10:04:00 +08:00
zhanghong
8f1cb59370
[ISSUE #11782 ] Optimized the use of map ( #11783 )
...
* Optimized the use of map
* Optimized the use of map
2024-03-01 10:05:33 +08:00
hth
9722ad8dd5
Auth check fix ( #11672 )
2024-01-19 15:24:18 +08:00
杨翊 SionYang
f5d72a3455
Revert "[ISSUES #11601 ]Auth check fix" ( #11671 )
2024-01-17 16:10:23 +08:00
hth
51fa941df7
Auth check fix ( #11649 )
2024-01-17 16:07:55 +08:00
阿魁
d85e3f7f31
[ISSUE #11231 ]Optimize the handleSpringBinder method in PropertiesUtil. ( #11240 )
2023-10-11 09:23:31 +08:00
Sunrisea
ba8e0e2dff
[ISSUE #10734 ] Implemented the parameter validation utility class ( #10737 )
...
* For #10734,Refactor the AbstractConfigRequest ,move common properties from its subclasses to the parent class,to reduce the number of corresponding parameter extractors by .
* For #10734,add ParamCheckRules,ParamCheckUtils, add ParamExtractor interface and the abstract classes HttpParamExtractor and RpcParamExtractor, implement the corresponding Manager.
* For #10734,fix codestyle
* For #10734,fix codestyle , move extractor and extractorManager to core directory
* For #10734,fix codestyle
* For #10734,fix dependency of common module
* For #10734,fix codestyle and copyright
* For #10734,fix pom codestyle and copyright
* For #10734,fix pom codestyle and copyright
* For #10734,fix copyright
* For #10734,fix copyright
* For #10734,fix bug caused by refactor of AbstractConfigRequest ,add ut test of ParamExtractorManager
* For #10734,fix bug caused by refactor of AbstractConfigRequest
---------
Co-authored-by: zhuoguang <sunrisea@B-Q6UQMD6R-0222.local>
2023-07-07 11:06:00 +08:00
杨翊 SionYang
5fffde5bde
[ISSUE#10153] Add auth state into /state api and add announcement api. ( #10203 )
...
* Add ModuleState and use ModuleState replace ServerStateController.
* Add AuthModuleStateBuilder
* state接口使用ModuleState.
* Add announcement api.
* skip rat scan for announcement.conf
* default plugin open login page when auth.enabled=true.
2023-03-27 19:00:22 +08:00
杨翊 SionYang
cdd2be65af
Remove identity default value. ( #10108 )
2023-03-16 11:08:33 +08:00
WangLiang/王良
a397c10a54
Optimize the nacos-client/pom.xml
for exclude google/**/*.proto
( #9982 )
...
* Optimize the pom.xml of the nacos-client
* optimize pom
* exclude `google/**/*.proto`
* tab
* Remove dependency `io.grpc:protoc-gen-grpc-java:${version}:pom`
* revert indent
* revert native-image
2023-03-01 09:42:15 +08:00
gongzhongqiang
708387c277
fix:replace nacos website url to https. ( #9797 )
2023-01-10 09:47:52 +08:00
陈浩 Nineteen
76df11bc48
fix comment ( #9695 )
2022-12-13 09:20:12 +08:00
Karson
cfa3a0fd59
Unfiy Map's get and put methods by computeIfAbsent In AuthConfig ( #8390 )
...
* Unfiy Map's get and put methods by computeIfAbsent In AuthConfig
reformat code style
reformat code style
* reformat code style
* reformat issue
2022-05-23 15:19:22 +08:00
KomachiSion
7623bb82b2
Add requestClass to resource properties for grpc resource parser.
2022-03-23 11:47:54 +08:00
杨翊 SionYang
47506c57ab
[ISSUE#5696] Secured annotation add tags field. ( #7878 )
...
* Add tags in Secured and inject tags into resource properties.
* For checkstyle.
2022-03-03 15:20:27 +08:00
KomachiSion
5931ded303
Remove unused mock in unit test.
2022-02-15 14:29:41 +08:00
KomachiSion
eeb5268282
auth plugin add enableAuth method to switch auth more precisely.
2022-02-15 14:21:31 +08:00
杨翊 SionYang
1c3656a1b0
[ISSUE#5696] Keep original resource parse result rather than use any replace when … ( #7764 )
...
* Keep original resource parse result rathar than use any replace when resource is empty.
* Identity Builder for http will be case-insensitive.
* For checkstyle.
2022-02-15 10:21:55 +08:00
杨翊 SionYang
64dcc0ed0a
[ISSUE#5696] IdentityContext build from resource and remote ip. ( #7745 )
...
* validateIdentity add Resource input for extension.
* IdentityContext parse remoteIp.
2022-02-09 17:57:39 +08:00
KomachiSion
e2e819379c
For pmd.
2022-01-26 14:01:27 +08:00
KomachiSion
9020bb9d6e
Move plugin config to nacos-auth-plugin-impl module.
2022-01-26 11:54:52 +08:00
KomachiSion
aba0facf90
Move user to nacos-plugin-default-impl module.
2022-01-26 10:05:39 +08:00
KomachiSion
32d7ce3b66
Repackage some class
2022-01-24 15:35:45 +08:00
KomachiSion
3e10d29ee2
Use specified parser to parse resource when can't find parser by type.
2022-01-21 17:29:56 +08:00
KomachiSion
a25b128d76
remove unused parseName in ResourceParser
2022-01-21 16:50:28 +08:00
KomachiSion
89cc6caade
Add plugin and auth-plugin module, and move class into module.
2022-01-21 15:06:09 +08:00
KomachiSion
be9516d037
Remove AuthManager.java
2022-01-21 13:49:30 +08:00
KomachiSion
e606dd7333
Grpc request use new plugin.
2022-01-20 20:49:49 +08:00
KomachiSion
80a6821bb7
Http request use new plugin.
2022-01-20 17:59:05 +08:00
KomachiSion
88818d0816
Http request use new plugin.
2022-01-20 16:04:20 +08:00
KomachiSion
d2e11a3de7
Add new ProtocolAuthService to replace AuthManager.
2022-01-20 14:22:43 +08:00
KomachiSion
347494c380
Add MockAuthPluginService for unit test.
2022-01-20 14:05:14 +08:00
KomachiSion
79e7a95e62
Add SignType
2022-01-17 17:15:42 +08:00
KomachiSion
3c9e83372c
For checkstyle
2022-01-17 16:43:55 +08:00
KomachiSion
dc1c05d2dc
Repackage some auth classes.
2022-01-17 16:32:23 +08:00
KomachiSion
7b7db3496b
Do some refactor for IdentityContextBuilder
2022-01-17 16:17:23 +08:00
KomachiSion
956df153d6
Add resource parser
2022-01-14 16:52:21 +08:00
KomachiSion
4e98013f8e
Solve conflicts.
2022-01-12 17:02:20 +08:00
KomachiSion
78de31dbdd
Merge remote-tracking branch 'upstream/develop' into issue#5696-merge-develop
...
# Conflicts:
# auth/src/main/java/com/alibaba/nacos/auth/common/AuthConfigs.java
# client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java
# client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingMaintainService.java
# client/src/main/java/com/alibaba/nacos/client/naming/remote/AbstractNamingClientProxy.java
# client/src/main/java/com/alibaba/nacos/client/naming/remote/NamingClientProxyDelegate.java
# client/src/test/java/com/alibaba/nacos/client/naming/remote/AbstractNamingClientProxyTest.java
2022-01-12 16:52:14 +08:00
杨翊 SionYang
b7910a6219
[ISSUE#5696] revert nacos server plugin implementation moved operation ( #7636 )
...
* Revert "[ISSUE#5696] Fix auth server type (#7004 )"
This reverts commit e3b7f0e7
* Revert "add derby database (#6996 )"
This reverts commit fea9d727
* Revert "Add MySQL DataBase (#6968 )"
This reverts commit 3c0508d2
* Revert "[ISSUE #5696 ] Add auth server implement (#6901 )"
This reverts commit 76ac8434
* Move JwtAuthenticationTokenFilter to security package.
* refactor constants about auth.
2022-01-12 16:45:18 +08:00
onewe
d0b2c69d5e
fix: AuthConfigs illegal base64 character: '$' ( #7209 )
...
- Add catch block, return getBytes result if base64 decode failed
- Add JwtTokenManager unit test
Closes #7203
2021-11-12 11:02:45 +08:00
onewe
ef5bb0a83d
[ISSUE #7114 ] Enhance the constants for auth module. ( #7170 )
...
- Create a Constants.java
- Move all the string literal to the Constants.java
- Delete the PropertiesConstant.java
2021-11-04 09:57:17 +08:00
KomachiSion
dd600537b0
For PMD and copyright.
2021-10-09 14:20:39 +08:00
KomachiSion
986b125a81
For PMD.
2021-10-09 14:08:04 +08:00
Wuyunfan-BUPT
e3b7f0e79f
[ISSUE#5696] Fix auth server type ( #7004 )
...
* Add MySQL DataBase
* Add Derby Database
* Replace Auth Server
* Revise: change to AuthSystemType
2021-09-28 19:30:20 +08:00
Wuyunfan-BUPT
fea9d7271b
add derby database ( #6996 )
2021-09-27 13:41:44 +08:00
Wuyunfan-BUPT
3c0508d2da
Add MySQL DataBase ( #6968 )
2021-09-23 20:13:47 +08:00
Wuyunfan-BUPT
76ac84344c
[ISSUE #5696 ] Add auth server implement ( #6901 )
...
* Add auth server implement.
* Modify auth server: class name
2021-09-18 09:50:58 +08:00