Codeunit 30199 Shpfy Authentication Mgt.

Shopify Connector, Microsoft.Integration.Shopify

src/Apps/W1/Shopify/App/src/Integration/Codeunits/ShpfyAuthenticationMgt.Codeunit.al22 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

GetClientId line 51, local

  1. 57callsCodeunit 457 Environment Information IsSaaS
  2. 60callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret

GetClientSecret line 67, local

  1. 73callsCodeunit 457 Environment Information IsSaaS
  2. 76callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret

InstallShopifyApp line 83, internal

  1. 99callsCodeunit 501 OAuth2 GetDefaultRedirectURL
  2. 101callsGetScope
  3. 102callsGetClientId
  4. 103callsPage 30135 Shpfy Authentication SetOAuth2Properties
  5. 106callsPage 30135 Shpfy Authentication Store
  6. 110callsTable 30102 Shpfy Shop SetStoreName
  7. 114callsPage 30135 Shpfy Authentication GetAuthorizationCode
  8. 116callsPage 30135 Shpfy Authentication GetAuthError
  9. 117callsPage 30135 Shpfy Authentication GetAuthError
  10. 120callsPage 30135 Shpfy Authentication State
  11. 122callsGetToken

GetToken line 126, local

  1. 133callsGetClientId
  2. 137callsGetClientSecret
  3. 140callsExecuteTokenRequest
  4. 141callsIsSuccessStatusCode
  5. 143callsResponseHasAccessToken
  6. 146callsSaveInstalledToken

SaveInstalledToken line 187, local

  1. 195writesTable 30138 Shpfy Registered Store New Insert
  2. 197callsGetScope
  3. 198writesTable 30138 Shpfy Registered Store New Modify
  4. 199callsSaveTokenResponse

SaveTokenResponse line 203, local

  1. 242callsAddSeconds
  2. 252callsAddSeconds
  3. 256writesTable 30138 Shpfy Registered Store New Modify
  4. 258callsTable 30138 Shpfy Registered Store New SetAccessToken
  5. 267callsTable 30138 Shpfy Registered Store New SetRefreshToken

EnsureValidAccessToken line 278, internal

  1. 286callsTable 30138 Shpfy Registered Store New HasRefreshToken
  2. 287callsTokenNeedsRefresh
  3. 290callsShouldAttemptMigration
  4. 297callsTable 30138 Shpfy Registered Store New HasRefreshToken
  5. 298callsTokenNeedsRefresh
  6. 299callsRefreshAccessToken
  7. 301callsTryMigrate

ForceTokenRefresh line 311, internal

  1. 319callsShouldForceRefresh
  2. 325callsShouldForceRefresh
  3. 329writesTable 30138 Shpfy Registered Store New Modify
  4. 333callsTable 30138 Shpfy Registered Store New HasRefreshToken
  5. 334callsRefreshAccessToken
  6. 336callsTryMigrate

ShouldForceRefresh line 342, local

  1. 346callsGetForceRefreshCooldown

TryMigrate line 354, local

  1. 358callsShouldAttemptMigration
  2. 361writesTable 30138 Shpfy Registered Store New Modify
  3. 362callsTable 30138 Shpfy Registered Store New GetAccessToken
  4. 363callsMigrateToExpiringToken

ShouldAttemptMigration line 366, local

  1. 370callsGetMigrationCooldown

MigrateToExpiringToken line 379, local

  1. 386callsGetClientId
  2. 393callsGetClientSecret
  3. 394callsTable 30138 Shpfy Registered Store New GetAccessToken
  4. 396callsExecuteTokenRequest
  5. 400callsIsSuccessStatusCode
  6. 400callsResponseHasAccessToken
  7. 401callsSaveTokenResponse

RefreshAccessToken line 408, local

  1. 416callsRefreshTokenExpired
  2. 418callsCreateReconnectErrorInfo
  3. 424callsGetClientId
  4. 428callsGetClientSecret
  5. 430callsTable 30138 Shpfy Registered Store New GetRefreshToken
  6. 432callsExecuteTokenRequest
  7. 434callsIsSuccessStatusCode
  8. 434callsResponseHasAccessToken
  9. 435callsSaveTokenResponse
  10. 443callsCreateReconnectErrorInfo
  11. 452callsTokenExpired

TokenNeedsRefresh line 457, local

  1. 462callsGetRefreshBufferMs

AccessTokenExist line 511, internal

  1. 516callsGetScope
  2. 517callsTable 30138 Shpfy Registered Store New GetAccessToken

IsRefreshTokenExpired line 525, internal

  1. 532callsTable 30138 Shpfy Registered Store New HasRefreshToken
  2. 534callsRefreshTokenExpired

ReconnectFromNotification line 537, internal

  1. 544callsTable 30102 Shpfy Shop RequestAccessToken
  2. 545callsTable 30102 Shpfy Shop GetShopSettings
  3. 546writesTable 30102 Shpfy Shop Modify

ReconnectFromError line 562, internal

  1. 573callsTable 30102 Shpfy Shop GetStoreName
  2. 574callsTable 30102 Shpfy Shop RequestAccessToken
  3. 575callsTable 30102 Shpfy Shop GetShopSettings
  4. 576writesTable 30102 Shpfy Shop Modify

AssertValidShopUrl line 582, internal

  1. 587callsCodeunit 3060 Uri IsValidURIPattern

IsValidHostName line 591

  1. 596callsCodeunit 3060 Uri IsValidURIPattern

EnableHttpRequestForShopifyConnector line 610, internal

  1. 616callsCodeunit 2504 Extension Management ConfigureExtensionHttpClientRequestsAllowance

CheckScopeChange line 619, internal

  1. 626callsTable 30102 Shpfy Shop GetStoreName
  2. 630callsGetScope