spring security - RemoteTokenService for multiple client application -



spring security - RemoteTokenService for multiple client application -

how can utilize remotetokenservice more 1 client application (with different client_id , secret )?

update

public resourceservertokenservices tokenservice() { remotetokenservices tokenservices = new remotetokenservices(); tokenservices.setclientid("sample_test_client_app_auth_code"); tokenservices.setclientsecret("secret"); tokenservices.setchecktokenendpointurl("http://localhost:8080/oauth/check_token"); homecoming tokenservices; }

that's how configure instance of remotetokenservice. , inject oauth2authenticationmanager separate resource server , auth server. correct?

so when other client has access resource how can configure remotetokenservice both of client.can provide lite on this. , tell me if wrong on something.

the client id in remotetokenservices not client consuming resource, it's client associated resource (solely purpose of authentication of /check_token endpoint). 1 time have working can nail resource many clients like.

spring-security oauth-2.0 spring-security-oauth2 oauth2client

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -