· 8 years ago · Oct 02, 2017, 04:42 AM
1eureka.client.enabled=false
2server.port=8080
3zuul.routes.customer.url=http://localhost:8090
4zuul.routes.vendor.url=http://localhost:8091
5security.oauth2.client.access-token-uri= http://localhost:8090/oauth/token
6security.oauth2.client.access-token-uri= http://localhost:8091/oauth/token
7security.oauth2.client.id=client
8security.oauth2.client.client-secret=secret
9
10input url: -
11
12 http://localhost:8090/oauth/token?password=abcd&username=test5&grant_type=client_credentials&scope=read%20write
13
14Header: -
15 Basic Auth
16 userName : client
17 password : secret
18
19output: -
20{
21 "access_token": "522a6b21-19bb-4833-90be-69d0c02f220a",
22 "token_type": "bearer",
23 "expires_in": 99999,
24 "scope": "read write"
25}
26
27http://localhost:8080/oauth/token?password=abcd&username=test5&grant_type=client_credentials&scope=read%20write
28
29Header: -
30 Basic Auth
31 userName : client
32 password : secret
33
34output: -
35{
36"timestamp": 1506918637823,
37"status": 404,
38"error": "Not Found",
39"message": "No message available",
40"path": "/oauth/token"