Skip to content
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 to Request Authorization Codes? #448

Closed
couth opened this issue Jul 10, 2018 · 1 comment
Closed

How to Request Authorization Codes? #448

couth opened this issue Jul 10, 2018 · 1 comment

Comments

@couth
Copy link

couth commented Jul 10, 2018

I want to build a Social Authentication project with apiato.
I do follow laraval API Authentication (Passport) docs and find it doesn't work.

`When Requesting Authorization Codes
When requesting an access token using the authorization code grant, consumers should specify their desired scopes as the scope query string parameter. The scope parameter should be a space-delimited list of scopes:

Route::get('/redirect', function () {
$query = http_build_query([
'client_id' => 'client-id',
'redirect_uri' => 'http://example.com/callback',
'response_type' => 'code',
'scope' => 'place-orders check-status',
]);

return redirect('http://your-app.com/oauth/authorize?'.$query);

});`

How to Request Authorization Codes? Would you give me an example?

@johannesschobel
Copy link
Contributor

you need to pass a client_secret as well?! Can you please follow the instructions here:

  1. http://docs.apiato.io/getting-started/installation/#Prepare-OAuth
  2. http://docs.apiato.io/features/authentication/#login-with-proxy-for-first-party-clients

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

No branches or pull requests

3 participants