Method Not Found: after IdentityModel package updated to 7.0.0
SDK you're using (please complete the following information):
- Version 9.1.0
- IdentityModel 7.0.0
Describe the bug After updating to v9.1.0, and v7.0.0 of IdentityModel and removing the RestSharp package, attempting to connect my app to Xero api I get a Method not found exception when calling "client.BuildLoginUri();"
To Reproduce Steps to reproduce the behavior:
- Install Xero.NetStandard.OAuth2 (9.1.0) and Xero.NetStandard.OAuth.Client (1.6.0) packages
- Update IdentityModel package to 7.0.0
- Create XeroConfiguration object
- Create XeroClient object with config object
- call client.BuildLoginUri();
- Exception is thrown
Expected behavior Expected to have a URL to be returned from BuildLoginUri method
Screenshots N/A
PETOSS-581
Thanks for raising an issue, a ticket has been created to track your request
Downgrading identity model to 5.2 worked for me.
We have been unable to upgrade these 2 packages for months due to this exact issue.
The issue appears to be the Xero.NetStandard.OAuth2Client package needs updating.
<PackageVersion Include="Microsoft.Identity.Abstractions" Version="6.0.0" />
<PackageVersion Include="IdentityModel" Version="6.2.0" />
When we upgrade these to v7+ we get method not found exception when calling "client.BuildLoginUri();"
We have been unable to upgrade these 2 packages for months due to this exact issue. The issue appears to be the
Xero.NetStandard.OAuth2Clientpackage needs updating.<PackageVersion Include="Microsoft.Identity.Abstractions" Version="6.0.0" /> <PackageVersion Include="IdentityModel" Version="6.2.0" />When we upgrade these to v7+ we get method not found exception when calling "client.BuildLoginUri();"
I concur, the problem is not just the Xero.NetStandard.OAuth2 package needing an update, it's also the Xero.NetStandard.OAuth2Client nuget package that needs versioning.
Was there any update on this getting triaged?
There is a code fix on the repo, but a new version of the Xero.NetStandard.OAuth2Client package has not been released. What's going on here?
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