-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How the auth works #5
Comments
I've put the access-token in the headers and still it stays not authorized. |
You can get access-token via method https://github.com/githubjeka/yii2-rest/blob/master/rest/versions/v1/controllers/UserController.php#L18 And You can see to how it work in test |
How can I do the test using rest client application (etc postman)? what key and value should I put in the header or payload? |
Begin you should get this key from You can see auth-key in bottom. After receiving the key, just add it to your url as '?access-token=tUu1qHcde0diwUol3xeI-18MuHkkprQI` $I->sendPUT(
'/v1/posts/11111?access-token=tUu1qHcde0diwUol3xeI-18MuHkkprQI,
['title' => 'My first post', 'content' => 'There are many words....', 'status' => 2]
); |
I see, so basically what you mean by access-token here is actually the auth_key? thanks in advance :) |
I've tried and the result is : { |
In advanced app For understanding: |
Hi I would like to know how to authenticate the logged in user to access certain api. If i want to simulate that, which value and where should I put the authkey? thanks
The text was updated successfully, but these errors were encountered: