royclarkson / spring-rest-service-oauth

A simple OAuth protected REST service built with Spring Boot and Spring Security OAuth
Apache License 2.0
664 stars 339 forks source link

How to access spring-rest-service-oauth to client device ? #45

Open DILEEP-YADAV opened 8 years ago

DILEEP-YADAV commented 8 years ago

Hi ! @royclarkson Question is that How to access same curd command using browser at local host? to access web service at client side device , I mean , what url hit to server to access service from client as cordova app.

DILEEP-YADAV commented 8 years ago

curl -X POST -vu clientapp:123456 http://localhost:8080/oauth/token -H "Accept: application/json" -d "password=spring&username=roy&grant_type=password&scope=read%20write&client_secret=123456&client_id=clientapp"

How to convert curl command to simple url to hit as

http://localhost:8080/oauth2/oauth/token?grant_type=password&client_id=rajith-client-id&client_secret=12345&username=rajith&password=password