Skip to content

CreateAuthorizeUrl Method Not Found #576

Open
@SimonEvans482

Description

@SimonEvans482

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions