浏览代码

[Docs] Updated OAuth 2 Documentation

version-14
Revant Nandgaonkar 8 年前
父节点
当前提交
b3da13d86f
共有 2 个文件被更改,包括 9 次插入4 次删除
  1. +5
    -0
      frappe/docs/user/en/guides/integration/how_to_setup_oauth.md
  2. +4
    -4
      frappe/docs/user/en/guides/integration/using_oauth.md

+ 5
- 0
frappe/docs/user/en/guides/integration/how_to_setup_oauth.md 查看文件

@@ -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



+ 4
- 4
frappe/docs/user/en/guides/integration/using_oauth.md 查看文件

@@ -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:
```


正在加载...
取消
保存