lib/agx/sync/client.rb in agx-0.1.5 vs lib/agx/sync/client.rb in agx-0.2.0
- old
+ new
@@ -11,12 +11,13 @@
domain = (prod ? "agxplatform.com" : "qaagxplatform.com")
@client_id = client_id || ENV['AGX_SYNC_CLIENT_ID']
@client_secret = client_secret || ENV['AGX_SYNC_CLIENT_SECRET']
@site = "https://sync.#{domain}"
@host = host || "sync.#{domain}"
- @authorize_url = "https://auth.#{domain}/Account/Authorize"
- @token_url = "https://auth.#{domain}/Account/Token"
- @version = version || "v3"
+ @authorize_url = "https://auth.#{domain}/identity/connect/Authorize"
+ @token_url = "https://auth.#{domain}/identity/connect/Token"
+ @oic_config_url = "https://auth.#{domain}/.well-known/openid- configuration"
+ @version = version || "v4"
@sync_id = sync_id
@api_url = "#{@site}/api/#{@version}/Account/#{@sync_id}/"
@headers = {
'Content-Type' => "application/json",
'Accept' => "application/json",