杨翊 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
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
Wuyunfan-BUPT
af8d04f59b
Revise Auth server plugin ( #6890 )
2021-09-16 14:11:28 +08:00
Wuyunfan-BUPT
ac878582e4
[ISSUE#5696] Add auth plugin interface. ( #6593 )
...
* define plugin
* add User model
* add authContext
* add SPI
* add resource, modify request, reformat code
* copyright, Serverloader, IdentityContext
* add unit test
* modify ClassLoader, and delete GrantType
* delete redundancy code
* remove authservice default name
* Change to StringUtils
2021-08-13 13:43:58 +08:00
ZZQ的
e25d415056
[ISSUE #6253 ] [auth module] replace "*commons.lang3*.*Utils" to "com.alibaba.nacos.common.utils.*Utils" ( #6260 )
2021-07-05 08:57:35 +08:00
杨翊 SionYang
f2676bc6ca
[ISSUE#6129] Add ServerConfigChangeEvent when config file changed. ( #6130 )
...
* Add ServerConfigChangeEvent when config file changed.
* Upgrade config after notify ServerConfigChangeEvent
2021-06-22 14:39:37 +08:00
tianqingzhao
b55b42cc0e
Remove any extra curly braces from the @Value annotation ( #5838 )
2021-05-26 10:06:30 +08:00
TouchZZZ
4b4d21d54f
support ldap login ( #5225 )
2021-04-12 10:09:16 +08:00
KomachiSion
902f501fac
Merge remote-tracking branch 'upstream/develop' into feature_support_grpc_core
...
# Conflicts:
# client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java
# client/src/main/java/com/alibaba/nacos/client/naming/core/HostReactor.java
# client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java
# config/src/main/java/com/alibaba/nacos/config/server/service/notify/AsyncNotifyService.java
# naming/src/main/java/com/alibaba/nacos/naming/push/ClientInfo.java
# naming/src/main/java/com/alibaba/nacos/naming/push/PushService.java
2021-01-13 15:53:50 +08:00
杨翊 SionYang
998947315e
Add server identity to replace user-agent white list. ( #4683 )
2021-01-13 14:12:56 +08:00
KomachiSion
11210c057d
Merge remote-tracking branch 'upstream/develop' into 2.0.0-sync-dev
2021-01-07 17:09:30 +08:00
haoyann
2be09ae940
change tokenValidityInSeconds default value
2021-01-05 10:41:26 +08:00
KomachiSion
d6fcac85c5
Merge remote-tracking branch 'upstream/develop' into feature_support_grpc_core
...
# Conflicts:
# client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java
# client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingMaintainService.java
# client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java
# config/src/main/java/com/alibaba/nacos/config/server/auth/ConfigResourceParser.java
# config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigController.java
# config/src/main/java/com/alibaba/nacos/config/server/result/ResultBuilder.java
# core/src/main/java/com/alibaba/nacos/core/listener/StartingApplicationListener.java
# naming/src/main/java/com/alibaba/nacos/naming/controllers/CatalogController.java
# naming/src/main/java/com/alibaba/nacos/naming/healthcheck/ClientBeatCheckTask.java
# naming/src/main/java/com/alibaba/nacos/naming/healthcheck/HealthCheckCommon.java
# naming/src/main/java/com/alibaba/nacos/naming/web/NamingResourceParser.java
# sys/src/main/java/com/alibaba/nacos/sys/utils/ApplicationUtils.java
# test/src/test/java/com/alibaba/nacos/test/naming/AutoDeregisterInstance_ITCase.java
2020-12-03 18:41:41 +08:00
赵延
886715b2d7
[ISSUE-#4232] Use EnvUtil to replace ApplicationUtils about env operation ( #4281 )
...
* use EnvUtil to replace ApplicationUtils about env operation
* remove unuse import
* remove unuse import
* remove profile usage
2020-11-21 06:54:05 +08:00
KomachiSion
6e5b09aee7
Merge branch 'upsteam-develop' into feature_support_grpc_core
...
# Conflicts:
# common/src/main/java/com/alibaba/nacos/common/notify/DefaultSharePublisher.java
# test/src/test/java/com/alibaba/nacos/test/naming/AutoDeregisterInstance_ITCase.java
2020-09-18 16:16:00 +08:00
liaochuntao
7fd4d9a5d1
feature issue #3804 ( #3805 )
...
* improvement: merge upstream/develop
* feat: merge upstream develop
* feat: manage the loading of configuration files uniformly
* fix: fix copyright style
* style: fix code style
* fix: fix code style
2020-09-18 16:05:36 +08:00
nov.lzf
d83a4b12b3
ak auth support on long connection ( #3821 )
2020-09-14 16:47:59 +08:00
赵延
e7c269a2f5
move jwt dependency from console,core to auth. ( #3624 )
2020-08-18 13:38:07 +08:00
赵延
a041c8ef58
[ISSUE #3600 ] Replace the deprecated api of jwt ( #3616 )
...
* replace the deprecated api of jwt
* transfer secretKey to byte array just using String encode with utf-8
2020-08-18 09:23:04 +08:00
mai.jh
526e2bc130
[ISSUE #3566 ] move the permission code of nacos-core module to nacos-auth module ( #3593 )
...
* move the permission code of nacos-core module to nacos-auth module.
* Fix some code style issues
* address server module auth package name change.
* test change
* Incorrect package name correction
2020-08-14 09:50:05 +08:00