Created
January 21, 2025 23:05
-
-
Save Madhumidha/87d0fa1a62acf89d1b3369f6b4d17ece to your computer and use it in GitHub Desktop.
Sitecore Forms: Sitecore.IdentityServer.DevEx.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <Settings> | |
| <Sitecore> | |
| <IdentityServer> | |
| <Clients> | |
| <!-- used to authenticate servers with client id and client secret --> | |
| <CliServerClient> | |
| <ClientId>SitecoreCLIServer</ClientId> | |
| <ClientName>SitecoreCLIServer</ClientName> | |
| <AccessTokenType>0</AccessTokenType> | |
| <AccessTokenLifetimeInSeconds>3500</AccessTokenLifetimeInSeconds> | |
| <IdentityTokenLifetimeInSeconds>3500</IdentityTokenLifetimeInSeconds> | |
| <RequireClientSecret>true</RequireClientSecret> | |
| <AllowOfflineAccess>false</AllowOfflineAccess> | |
| <AllowedGrantTypes> | |
| <!-- | |
| client_credentials authenticates with client ID and client secret | |
| which is good for CI, tools, etc. However, it's not tied to a USER, | |
| it's tied to a client ID. | |
| --> | |
| <AllowedGrantType1>client_credentials</AllowedGrantType1> | |
| </AllowedGrantTypes> | |
| <ClientSecrets> | |
| <ClientSecret1>[Your_Client_Secret_For_SitecoreCLIServer]</ClientSecret1> | |
| </ClientSecrets> | |
| <AllowedScopes> | |
| <!-- this is required even if not a 'user' for Sitecore to like us --> | |
| <AllowedScope1>sitecore.profile.api</AllowedScope1> | |
| </AllowedScopes> | |
| </CliServerClient> | |
| <!-- Forms API call authetication--> | |
| <FormsServerClient> | |
| <ClientId>SitecoreFormsCli</ClientId> | |
| <ClientName>SitecoreFormsCli</ClientName> | |
| <AccessTokenType>0</AccessTokenType> | |
| <AccessTokenLifetimeInSeconds>3600</AccessTokenLifetimeInSeconds> | |
| <IdentityTokenLifetimeInSeconds>3600</IdentityTokenLifetimeInSeconds> | |
| <RequireClientSecret>true</RequireClientSecret> | |
| <AllowOfflineAccess>false</AllowOfflineAccess> | |
| <AllowedGrantTypes> | |
| <!-- | |
| client_credentials authenticates with client ID and client secret | |
| which is good for CI, tools, etc. However, it's not tied to a USER, | |
| it's tied to a client ID. | |
| --> | |
| <AllowedGrantType1>client_credentials</AllowedGrantType1> | |
| </AllowedGrantTypes> | |
| <ClientSecrets> | |
| <ClientSecret1>[Your_Client_Secret_For_SitecoreFormsCli]</ClientSecret1> | |
| </ClientSecrets> | |
| <AllowedScopes> | |
| <!-- this is required even if not a 'user' for Sitecore to like us --> | |
| <AllowedScope1>openid</AllowedScope1> | |
| <AllowedScope2>sitecore.profile</AllowedScope2> | |
| <AllowedScope3>sitecore.profile.api</AllowedScope3> | |
| </AllowedScopes> | |
| </FormsServerClient> | |
| </Clients> | |
| </IdentityServer> | |
| </Sitecore> | |
| </Settings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment