Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Help needed regarding implementation of resource owner password grant. #15

Open
lutfor3737 opened this issue Apr 29, 2016 · 0 comments
Open
Labels

Comments

@lutfor3737
Copy link

lutfor3737 commented Apr 29, 2016

I am using hapi-ouath2orize wrapper in my Hapi API.
In my application, i need to implement resource owner password grant. So far i understand i have to use following curl command to implement this grant.

  1. curl -XPOST "http://localhost:3000/oauth/token" -d "grant_type=password&client_id=abc123&client_secret=ssh-secret&username=bob&password=secret"
    return: TOKEN
  2. curl -H 'Authorization: Bearer TOKEN' -GET "http://localhost:3000/api/userinfo"
    can access protected resource using this command.

can anyone help me what will flow with some guidance(some sample code will be appreciable) ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants