Xero-NetStandard icon indicating copy to clipboard operation
Xero-NetStandard copied to clipboard

IdentityModel 7.0.0 compatibility issue

Open neoGeneva opened this issue 1 year ago • 4 comments

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()

neoGeneva avatar Jun 25 '24 04:06 neoGeneva

PETOSS-442

github-actions[bot] avatar Jun 25 '24 04:06 github-actions[bot]

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

github-actions[bot] avatar Jun 25 '24 04:06 github-actions[bot]

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()".

flexer911 avatar Jun 25 '24 08:06 flexer911

Yep, also got this issue myself.

JamesOPCS avatar Sep 05 '24 12:09 JamesOPCS

Fix is available in the latest version of .net sdk 9.2.0

ankushkhandare95 avatar Sep 18 '24 05:09 ankushkhandare95

Hey @ankushkhandare95, this doesn't seem to be fixed. Looks like there's a new version of Xero.NetStandard.OAuth2 but the issue is in XeroClient which is in Xero.NetStandard.OAuth2Client.

neoGeneva avatar Oct 15 '24 03:10 neoGeneva

I am getting Method Not Found in the Accounting API method UpdateOrCreateContactsAsync

lucasriechelmann avatar Oct 25 '24 08:10 lucasriechelmann

This issue is not resolved yet, please patch Xero.NetStandard.OAuth2Client

ReviveDigitalTeam avatar Feb 03 '25 22:02 ReviveDigitalTeam

Did this get resolved? I have the same issue when trying to add new Xero tennants: "Method not found: 'System.String IdentityModel.Client.RequestUrlExtensions.CreateAuthorizeUrl"

Version: Xero.NetStandard.OAuth2 - 9.2.0. Xero.NetStandard.OAuth2Client - 1.6.0 IdentityModel - 7.0.0

slykiwi avatar Apr 22 '25 00:04 slykiwi

@slykiwi No, I don't believe so. Though for me it's less of an issue now since IdentityModel is now Duende.IdentityModel, so while Xero uses the old version, I can use the newer version without any versioning issues.

neoGeneva avatar Apr 22 '25 00:04 neoGeneva