Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/206.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.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
SpringSecurity Android Facebook和Google令牌认证_Android_Spring Boot_Oauth 2.0_Spring Security Oauth2 - Fatal编程技术网

SpringSecurity Android Facebook和Google令牌认证

SpringSecurity Android Facebook和Google令牌认证,android,spring-boot,oauth-2.0,spring-security-oauth2,Android,Spring Boot,Oauth 2.0,Spring Security Oauth2,我正在将支持android的应用程序从NodeJS迁移到Spring Boot 我使用以下软件包成功实现了基于web的oAuth登录: compile(“org.springframework.boot:springbootstartersecurity”) 编译(“org.springframework.security.oauth:spring-security-oauth2”) 此身份验证由筛选器完成 OAuth2ClientAuthenticationProcessingFilter f

我正在将支持android的应用程序从NodeJS迁移到Spring Boot

我使用以下软件包成功实现了基于web的oAuth登录:
compile(“org.springframework.boot:springbootstartersecurity”)
编译(“org.springframework.security.oauth:spring-security-oauth2”)

此身份验证由筛选器完成

OAuth2ClientAuthenticationProcessingFilter filter = new OAuth2ClientAuthenticationProcessingFilter(
            path);
    OAuth2RestTemplate template = new OAuth2RestTemplate(client.getClient(), oauth2ClientContext);
    filter.setRestTemplate(template);
    filter.setTokenServices(new UserInfoTokenServices(
            client.getResource().getUserInfoUri(), client.getClient().getClientId()));
    return filter;
但我想使用Android SDK和令牌对客户端进行身份验证

我使用Passport库和

我搜索了很多,但没有找到任何关于如何在SpringSecurityOAuth中使用应用程序令牌(id\u令牌)进行身份验证的答案