Skip to content

Commit

Permalink
feat: use demo site as example
Browse files Browse the repository at this point in the history
  • Loading branch information
dacongda committed Aug 11, 2024
1 parent d141951 commit df6bed2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/application/shared-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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 `abcdefg123456`, your organization name is `test`, the clientId for your organization is `abcdefg123456-org-test`.
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

Expand All @@ -17,6 +17,8 @@ If you want to create an application that can be shared with other organizations

![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.
Expand Down
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 df6bed2

Please sign in to comment.