Guest User

Untitled

a guest
Jan 4th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. <Clients>
  2. <DefaultClient>
  3. <AllowedCorsOrigins>
  4. <AllowedCorsOriginsGroup1>https://habitathome.dev.local|https://habitathomebasic.dev.local</AllowedCorsOriginsGroup1>
  5. </AllowedCorsOrigins>
  6. </DefaultClient>
  7. <PasswordClient>
  8. <ClientSecrets>
  9. <ClientSecret1>ClientSecret</ClientSecret1>
  10. </ClientSecrets>
  11. </PasswordClient>
  12. <PostmanClient>
  13. <ClientId>postman-api</ClientId>
  14. <ClientName>postman-api</ClientName>
  15. <AccessTokenType>0</AccessTokenType>
  16. <AllowOfflineAccess>true</AllowOfflineAccess>
  17. <AlwaysIncludeUserClaimsInIdToken>false</AlwaysIncludeUserClaimsInIdToken>
  18. <AccessTokenLifetimeInSeconds>3600</AccessTokenLifetimeInSeconds>
  19. <IdentityTokenLifetimeInSeconds>3600</IdentityTokenLifetimeInSeconds>
  20. <AllowAccessTokensViaBrowser>true</AllowAccessTokensViaBrowser>
  21. <RequireConsent>false</RequireConsent>
  22. <RequireClientSecret>true</RequireClientSecret>
  23. <AllowedGrantTypes>
  24. <AllowedGrantType1>password</AllowedGrantType1>
  25. </AllowedGrantTypes>
  26. <AllowedCorsOrigins>
  27. </AllowedCorsOrigins>
  28. <AllowedScopes>
  29. <AllowedScope1>openid</AllowedScope1>
  30. <AllowedScope2>sitecore.profile</AllowedScope2>
  31. <AllowedScope3>sitecore.profile.api</AllowedScope3>
  32. </AllowedScopes>
  33. <ClientSecrets>
  34. <ClientSecret1>ClientSecret</ClientSecret1>
  35. </ClientSecrets>
  36. <UpdateAccessTokenClaimsOnRefresh>true</UpdateAccessTokenClaimsOnRefresh>
  37. </PostmanClient>
  38. </Clients>
  39.  
  40. $identityserverUrl = "https://<url-to-your-identityserver>"
  41. $tokenendpointurl = $identityserverUrl + "/connect/token"
  42. $granttype = "password" # client_credentials / password
  43. $client_id = "postman-api"
  44. $client_secret = "ClientSecret"
  45. $username = "sitecoreadmin"
  46. $password = "superStrongPassword"
  47. $scope = "openid"
Add Comment
Please, Sign In to add comment