Skip to content

Commit

Permalink
docs: add docs for lark oauth provider (#511)
Browse files Browse the repository at this point in the history
* docs: add docs for lark oauth provider

* docs: add newline character
  • Loading branch information
Chinoholo0807 authored Jul 11, 2023
1 parent 2453627 commit 9f2185f
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions docs/provider/oauth/lark.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: Lark
description: Add Lark OAuth provider to your application
keywords: [Lark, OAuth]
authors: [Chinoholo0807]
---

:::note

This is an example of how to configure a **Lark** OAuth provider.

:::

### Step1. Create a Lark application

First, you need to create a new application in [Lark Open Platform](https://open.feishu.cn/) and enable it.
You can find the `App ID` and `App Secret` in the basic information of your application.

![create a new app](/img/providers/OAuth/lark_create_app.png)

Next, add the redirect URL `<your-casdoor-domain>/callback` (e.g., `http://localhost:7001/callback`) in the security settings of your application.

![add redirect url](/img/providers/OAuth/lark_redirect_url.png)

### Step2. Create a Lark OAuth provider

Now create a Lark OAuth provider in Casdoor. Fill the necessary information.

| Name | Name in Lark |
| ---- | ---- |
|Category | choose `OAuth` |
|Type | choose `Lark` |
|Client ID | `App ID` obtained from Step1 |
|Client secret | `App Secret` obtained from Step1 |

![create a lark oauth provider](/img/providers/OAuth/lark_provider_conf_detail.png)

Now you can use Lark as the third party service to complete authentication.
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ module.exports = {
"provider/oauth/azureAD",
"provider/oauth/infoflow",
"provider/oauth/okta",
"provider/oauth/lark",
],
},
"provider/email",
Expand Down
Binary file added static/img/providers/OAuth/lark_create_app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/providers/OAuth/lark_redirect_url.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9f2185f

Please sign in to comment.