8000 Removed the server-side flow paragraph (simplified it) · oauth-io/sdk-php@65ee33a · GitHub
[go: up one dir, main page]

Skip to content

Commit 65ee33a

Browse files
committed
Removed the server-side flow paragraph (simplified it)
1 parent f2285b8 commit 65ee33a

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,12 @@ Common use-Case
2424

2525
You don't want to use APIs directly from the front-end, but rather through web-services inside your PHP backend.
2626

27-
The server-side flow
28-
--------------------
27+
Server-side flow
28+
----------------
2929

30-
In the server-side OAuth authentication flow, the oauth token never leaves your backend.
30+
To authenticate the user, you'll need to set your app's backend to **PHP** in your OAuth.io [dashboard](https://oauth.io/dashboard).
3131

32-
To authenticate a user, the flow follows these steps :
33-
34-
- Ask the backend for a unique state token. This token will be used for communicating with oauth.io
35-
- Show a popup or redirect your user to request his permission to use his/her account on the requested provider
36-
- The latter gives you a code, that you give to your backend
37-
- The backend sends the code to oauth.io with other information like the oauth.io app's public key and secret.
38-
- oauth.io responds with the access_token, that you can then store on your backend as long as it's valid
39-
- You can then make requests to the API using that access token, directly from your backend
40-
41-
As of `0.2.0` it is possible to get an automatically refreshed access token when a refresh token is available.
32+
This allows you to get a refresh token from the provider if available.
4233

4334
Installation
4435
------------

0 commit comments

Comments
 (0)
0