Skip to content
Merged
Changes from 7 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
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,46 @@
</Environment>
</Provider>

<!--
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██ ████ ▄▄▀██ ▄▄▀██ █▀▄██
██ ████ ▀▀ ██ ▀▀▄██ ▄▀███
██ ▀▀ █ ██ ██ ██ ██ ██ ██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
-->

<Provider Name="Lark" DisplayName="Lark (Feishu)" Id="0822ff2a-c4e7-4e1d-a797-bb24632b3f1a"
Documentation="https://open.feishu.cn/document/common-capabilities/sso/web-application-sso/web-app-overview?lang=en-US">
<!--
Note: Lark serves global users, but it is known as Feishu in China, which has a separate issuer and domain.
-->

<Environment Issuer="https://passport.{settings.Region switch {
string region when string.Equals(region, 'CN', StringComparison.OrdinalIgnoreCase)
=> 'feishu.cn',
_ => 'larksuite.com' }}/">
<Configuration AuthorizationEndpoint="https://passport.{settings.Region switch {
string region when string.Equals(region, 'CN', StringComparison.OrdinalIgnoreCase)
=> 'feishu.cn',
_ => 'larksuite.com' }}/suite/passport/oauth/authorize"
TokenEndpoint="https://passport.{settings.Region switch {
string region when string.Equals(region, 'CN', StringComparison.OrdinalIgnoreCase)
=> 'feishu.cn',
_ => 'larksuite.com' }}/suite/passport/oauth/token"
UserinfoEndpoint="https://passport.{settings.Region switch {
string region when string.Equals(region, 'CN', StringComparison.OrdinalIgnoreCase)
=> 'feishu.cn',
_ => 'larksuite.com' }}/suite/passport/oauth/userinfo">

<GrantType Value="authorization_code" />
<GrantType Value="refresh_token" />
</Configuration>
</Environment>

<Setting PropertyName="Region" ParameterName="region" Type="String" Required="false" DefaultValue="Global"
Description="The Lark (Feishu) service region ('Global' for the global Lark by default, or can be set to 'CN' for Feishu)" />
</Provider>

<!--
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██ ████▄ ▄██ ▄▄▀██ ██ ██ ▄▄▄██ ▄▄▄ ██ ▄▄▄ ██
Expand Down