Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Clients>
- <DefaultClient>
- <AllowedCorsOrigins>
- <AllowedCorsOriginsGroup1>https://habitathome.dev.local|https://habitathomebasic.dev.local</AllowedCorsOriginsGroup1>
- </AllowedCorsOrigins>
- </DefaultClient>
- <PasswordClient>
- <ClientSecrets>
- <ClientSecret1>ClientSecret</ClientSecret1>
- </ClientSecrets>
- </PasswordClient>
- <PostmanClient>
- <ClientId>postman-api</ClientId>
- <ClientName>postman-api</ClientName>
- <AccessTokenType>0</AccessTokenType>
- <AllowOfflineAccess>true</AllowOfflineAccess>
- <AlwaysIncludeUserClaimsInIdToken>false</AlwaysIncludeUserClaimsInIdToken>
- <AccessTokenLifetimeInSeconds>3600</AccessTokenLifetimeInSeconds>
- <IdentityTokenLifetimeInSeconds>3600</IdentityTokenLifetimeInSeconds>
- <AllowAccessTokensViaBrowser>true</AllowAccessTokensViaBrowser>
- <RequireConsent>false</RequireConsent>
- <RequireClientSecret>true</RequireClientSecret>
- <AllowedGrantTypes>
- <AllowedGrantType1>password</AllowedGrantType1>
- </AllowedGrantTypes>
- <AllowedCorsOrigins>
- </AllowedCorsOrigins>
- <AllowedScopes>
- <AllowedScope1>openid</AllowedScope1>
- <AllowedScope2>sitecore.profile</AllowedScope2>
- <AllowedScope3>sitecore.profile.api</AllowedScope3>
- </AllowedScopes>
- <ClientSecrets>
- <ClientSecret1>ClientSecret</ClientSecret1>
- </ClientSecrets>
- <UpdateAccessTokenClaimsOnRefresh>true</UpdateAccessTokenClaimsOnRefresh>
- </PostmanClient>
- </Clients>
- $identityserverUrl = "https://<url-to-your-identityserver>"
- $tokenendpointurl = $identityserverUrl + "/connect/token"
- $granttype = "password" # client_credentials / password
- $client_id = "postman-api"
- $client_secret = "ClientSecret"
- $username = "sitecoreadmin"
- $password = "superStrongPassword"
- $scope = "openid"
Add Comment
Please, Sign In to add comment