Search in sources :

Aggregations

JSONObject (net.minidev.json.JSONObject)5 Test (org.junit.jupiter.api.Test)5 OAuth2AuthenticatedPrincipal (org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal)4 JSONException (org.springframework.security.oauth2.common.json.JSONException)3 JSONObject (org.springframework.security.oauth2.common.json.JSONObject)3 JSONObject (com.alibaba.fastjson.JSONObject)2 IOException (java.io.IOException)2 HashMap (java.util.HashMap)2 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)2 HttpEntity (org.springframework.http.HttpEntity)2 BadCredentialsException (org.springframework.security.authentication.BadCredentialsException)2 OAuth2AccessToken (org.springframework.security.oauth2.common.OAuth2AccessToken)2 DefaultOAuth2AuthenticatedPrincipal (org.springframework.security.oauth2.core.DefaultOAuth2AuthenticatedPrincipal)2 RestTemplate (org.springframework.web.client.RestTemplate)2 JWSHeader (com.nimbusds.jose.JWSHeader)1 JWSObject (com.nimbusds.jose.JWSObject)1 Payload (com.nimbusds.jose.Payload)1 RSASSASigner (com.nimbusds.jose.crypto.RSASSASigner)1 PrintWriter (java.io.PrintWriter)1 URL (java.net.URL)1