Skip to content

Commit

Permalink
docs: add shared application (#628)
Browse files Browse the repository at this point in the history
* docs: add shared application

* feat: use demo site as example
  • Loading branch information
dacongda authored Aug 11, 2024
1 parent 8fe29cd commit 343d4b9
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/application/shared-application.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Shared Application
description: Shared application across organizations
keywords: [shared, application]
authors: [DacongDA]
---

## Introduction

If you want to create an application that can be shared with other organizations, you can enable Is Shared field in applicaion(for safety reason, only built-in organization can create shared application). To specified the organiztion, you should add `-org-` and organization name after clientId / application name. For example, the clientId of application is `2dc94ccbec09612c04ac`, your organization name is `casbin`, the clientId for your organization is `2dc94ccbec09612c04ac-org-casbin` and the login url for oauth is `https://door.casdoor.com/login/oauth/authorize?client_id=2dc94ccbec09612c04ac-org-casbin&response_type=code&redirect_uri=http://localhost:9000&scope=read&state=casdoor`.

## Configuration

1. First create a new application.
2. Enable Is Shared field.
3. add `-org-` to split organization and clientId / application name.

![shared application field](/img/application/shared-application/shared_application_field.png)

![shared application login link](/img/application/shared-application/shared_application_login_link.png)

:::caution

Once you shared an application, it can be used by all organizations, and cannot be disabled for a particular organization.

:::

Here is a demo video that shows how to use shared application:

<video src="/img/application/shared-application/shared_application_demo.mp4" controls="controls" width="100%"></video>
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ module.exports = {
"application/specify-login-organization",
"application/tags",
"application/invitation-code",
"application/shared-application",
],
},
{
Expand Down
Binary file not shown.
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.

0 comments on commit 343d4b9

Please sign in to comment.