Merge pull request #2866 from mntechnique/oauth2-docs

[Docs] Updated OAuth 2 Documentation
This commit is contained in:
Revant Nandgaonkar 2017-03-14 12:16:45 +05:30 committed by GitHub
commit 9d49b097bb
2 changed files with 9 additions and 4 deletions

View file

@ -28,6 +28,11 @@ Go to
<img class="screenshot" src="{{docs_base_url}}/assets/img/oauth_provider_settings.png">
### Add Primary Server
This is the main server hosting all the users. e.g. `https://frappe.io`. To setup this as the main server, go to *Setup* > *Integrations* > *Social Login Keys* and enter `https://frappe.io` in the field `Frappe Server URL`. This URL repeats in all other Frappe servers who connect to this server to authenticate. Effectively, this is the main Identity Provider (IDP).
Under this server add as many `OAuth Client`(s) as required.
## Add a Client App

View file

@ -8,7 +8,7 @@ Once the client and provider settings are entered, following steps can be used t
URL:
```
[GET] 0.0.0.0:8000/api/method/frappe.integration_broker.oauth2.authorize
[GET] 0.0.0.0:8000/api/method/frappe.integrations.oauth2.authorize
```
Params:
```
@ -38,7 +38,7 @@ http://localhost:3000/oauth_code?error=access_denied
URL:
```
[POST] 0.0.0.0:8000/api/method/frappe.integration_broker.oauth2.get_token
[POST] 0.0.0.0:8000/api/method/frappe.integrations.oauth2.get_token
```
Params:
```
@ -62,7 +62,7 @@ Response:
URL:
```
[POST] 0.0.0.0:8000/api/method/frappe.integration_broker.oauth2.get_token
[POST] 0.0.0.0:8000/api/method/frappe.integrations.oauth2.get_token
```
Params:
```
@ -85,7 +85,7 @@ Response:
URL:
```
[POST] 0.0.0.0:8000/api/method/frappe.integration_broker.oauth2.revoke_token
[POST] 0.0.0.0:8000/api/method/frappe.integrations.oauth2.revoke_token
```
Params:
```