File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -24,21 +24,12 @@ Common use-Case
24
24
25
25
You don't want to use APIs directly from the front-end, but rather through web-services inside your PHP backend.
26
26
27
- The server -side flow
28
- --------------------
27
+ Server -side flow
28
+ ----------------
29
29
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 ) .
31
31
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.
42
33
43
34
Installation
44
35
------------
You can’t perform that action at this time.
0 commit comments