Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateAuthorizeUrl Method Not Found #576

Open
SimonEvans482 opened this issue Nov 11, 2024 · 4 comments
Open

CreateAuthorizeUrl Method Not Found #576

SimonEvans482 opened this issue Nov 11, 2024 · 4 comments

Comments

@SimonEvans482
Copy link

SDK you're using (please complete the following information):

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

Describe the bug
When attempting to authorise via Pkce, I am getting an exception on client.BuildLoginUriPkce(codeverifier), in:

    Public Function GetLoginURI() As String
        codeverifier = GetRandomString()
        Return client.BuildLoginUriPkce(codeverifier)
    End Function

Exception Text:

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.Nullable1, System.String, System.String, IdentityModel.Client.Parameters)'.'`

To Reproduce
Steps to reproduce the behavior:

  1. Initiate an instance of XeroClient with XeroConfiguration
  2. generate a codeverifier string
  3. call client.BuildLoginUriPkce(codeverifier)

Expected behavior
Pkce auth flow to run without exception

Screenshots
I don't think necessary

Additional context
Have been using the SDK for a number of years without issue. May have recently updated NuGet package to latest version. This may be a reoccurrence of ticket #384

Copy link

PETOSS-672

Copy link

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

@SimonEvans482
Copy link
Author

downgrading IdentityModel to 6.2.0 does resolve the issue, so presume version 7.0.0 support just needs to be added...

@ReviveDigitalTeam
Copy link

This is the same as issue: #554

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants