Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oauth spring云中的服务对服务api调用身份验证_Oauth_Microservices_Spring Cloud - Fatal编程技术网

Oauth spring云中的服务对服务api调用身份验证

Oauth spring云中的服务对服务api调用身份验证,oauth,microservices,spring-cloud,Oauth,Microservices,Spring Cloud,在SpringCloud中,如果我需要调用另一个微服务,我应该怎么做? 如果API调用需要通过API网关,我需要一个身份验证令牌。我需要先做oauth2吗?那我必须频繁调用其他服务呢?您可以使用假客户端和auth2作为安全端点。OAuth2由OAuth2FeignRequestInterceptor从Spring云OAuth2库提供。检查本教程,您可以使用Faign client和auth2作为安全端点。OAuth2由OAuth2FeignRequestInterceptor从Spring云OA

在SpringCloud中,如果我需要调用另一个微服务,我应该怎么做?
如果API调用需要通过API网关,我需要一个身份验证令牌。我需要先做oauth2吗?那我必须频繁调用其他服务呢?

您可以使用假客户端和auth2作为安全端点。OAuth2由OAuth2FeignRequestInterceptor从Spring云OAuth2库提供。检查本教程,您可以使用Faign client和auth2作为安全端点。OAuth2由OAuth2FeignRequestInterceptor从Spring云OAuth2库提供。检查本教程