lunescode opened a new pull request #1064:
URL: https://github.com/apache/incubator-linkis/pull/1064
### What is the purpose of the change
Due to access to third-party monitoring or other reasons, it is necessary to
call some APIs of linkis without userlogin. At present, you can set setting
the gateway parameter wds.links.gateway.conf.url.pass.auth for uri without
login. However, the operation of obtaining the login user name is added in the
linkis module by default, resulting in failure.
### Brief change log
- Add wds.linkis.server.user.restful.uri.pass.auth param,default '';
- Add special judgment for uri without user login.
### Verifying this change
This change added tests and can be verified as follows:
(example /api/rest_j/v1/configuration/engineType :)
- 1. set
wds.links.gateway.conf.url.pass.auth=/dws/,/api/rest_j/v1/linkisManager/listAllEMs
in linkis-mg-gateway.properties
- 2. set wds.linkis.server.user.restful.uri.pass.auth
=/api/rest_j/v1/linkisManager/listAllEMs, in linkis-cg-linkismanager.properties
;
- 3. in web browser or postman, call uri:
${gatewayhost:port}/api/rest_j/v1/linkisManager/listAllEMs ;
- 4. if result like
'{"method":"/api/linkisManager/listAllEMs","status":0,"message":"OK","data":{"EMs":[{,....'
,will be ok.
### Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): ( no)
- Anything that affects deployment: (no)
- The MGS(Microservice Governance Services), i.e., Spring Cloud Gateway,
OpenFeign, Eureka.: (no)
### Documentation
- Does this pull request introduce a new feature? (no)
- If yes, how is the feature documented? (not documented)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]