Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add shared application #628

Merged
merged 2 commits into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading