Closed benweizhu closed 6 years ago
curl testjwtclientid:XY7kmzoNzl100@localhost:8080/oauth/token -d grant_type=password -d username=admin -d password=password
{"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsidGVzdGp3dHJlc291cmNlaWQiXSwidXNlcl9uYW1lIjoiYWRtaW4iLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiZXhwIjoxNTE5OTE2NzExLCJhdXRob3JpdGllcyI6WyJST0xFX0FETUlOX1VTRVIiXSwianRpIjoiMDEwMTRhYWQtYTM3Ny00ZjBhLWJlYTktZTFhNDc5NTFmMjM4IiwiY2xpZW50X2lkIjoidGVzdGp3dGNsaWVudGlkIn0.T8Osw0CTTFuMFEaY6H83TBH7sY-K137exW_0CNVLmCU","token_type":"bearer","expires_in":43199,"scope":"read write","jti":"01014aad-a377-4f0a-bea9-e1a47951f238"}
works fine
curl http://localhost:8080/springjwt/users -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsidGVzdGp3dHJlc291cmNlaWQiXSwidXNlcl9uYW1lIjoiYWRtaW4iLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiZXhwIjoxNTE5OTE2NzExLCJhdXRob3JpdGllcyI6WyJST0xFX0FETUlOX1VTRVIiXSwianRpIjoiMDEwMTRhYWQtYTM3Ny00ZjBhLWJlYTktZTFhNDc5NTFmMjM4IiwiY2xpZW50X2lkIjoidGVzdGp3dGNsaWVudGlkIn0.T8Osw0CTTFuMFEaY6H83TBH7sY-K137exW_0CNVLmCU"
Got "error": "access_denied",
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE")
not working, 1.5.9 is working.
works fine
Got "error": "access_denied",