XeroAPI / Xero-NetStandard

A wrapper of the Xero API in the .NetStandard 2.0 framework. Supports Accounting, Payroll AU/US, and Files
MIT License
118 stars 119 forks source link

IdentityModel 7.0.0 compatibility issue #520

Open neoGeneva opened 1 week ago

neoGeneva commented 1 week ago

I get the following error when using IdentityModel 7.0.0 with Xero.NetStandard.OAuth2 6.0.0

System.MissingMethodException: Method not found: 'System.String IdentityModel.Client.RequestUrlExtensions.CreateAuthorizeUrl(IdentityModel.Client.RequestUrl, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.Nullable`1<Int32>, System.String, System.String, IdentityModel.Client.Parameters)'.
   at Xero.NetStandard.OAuth2.Client.XeroClient.BuildLoginUri(String state, String scope)
   at Xero.NetStandard.OAuth2.Client.XeroClient.BuildLoginUri(String state)
   at Xero.NetStandard.OAuth2.Client.XeroClient.BuildLoginUri()
github-actions[bot] commented 1 week ago

PETOSS-442

github-actions[bot] commented 1 week ago

Thanks for raising an issue, a ticket has been created to track your request

flexer911 commented 1 week ago

I also came across the same issue yesterday. I had to downgrade IdentityModel to v6.2.0 to get it working again. Looks like IdentityModel has changes the method signature of "CreateAuthorizeUrl()".