|
|
|
@ -899,6 +899,46 @@ |
|
|
|
</Environment> |
|
|
|
</Provider> |
|
|
|
|
|
|
|
<!-- |
|
|
|
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ |
|
|
|
██ ████ ▄▄▀██ ▄▄▀██ █▀▄██ |
|
|
|
██ ████ ▀▀ ██ ▀▀▄██ ▄▀███ |
|
|
|
██ ▀▀ █ ██ ██ ██ ██ ██ ██ |
|
|
|
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ |
|
|
|
--> |
|
|
|
|
|
|
|
<Provider Name="Lark" DisplayName="Lark (Feishu)" Id="0822ff2a-c4e7-4e1d-a797-bb24632b3f1a" |
|
|
|
Documentation="https://open.larksuite.com/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> |
|
|
|
|
|
|
|
<!-- |
|
|
|
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ |
|
|
|
██ ████▄ ▄██ ▄▄▀██ ██ ██ ▄▄▄██ ▄▄▄ ██ ▄▄▄ ██ |
|
|
|
|