Skip to content

redirect_uri protocol mismatch (behind HAProxy, LinkedIn provider) #524

Description

@marko-rbn

Greetings,

My application is behind a proxy which handles all SSL support, so the application itself is set up as non-secure website in IIS. When sign-in request goes out to LinkedIn, the "redirect_uri" uses "http://" prefix, but LinkedIn expects "https://". According to your code, looks like Request.Scheme is being used to set the protocol part. I tried using ProxyHost option, but that doesn't accept the protocol part (it's still prepended with "http://").

ProxyProtocol option would have been a useful feature, or allowing to override the protocol in ProxyHost ;) What solution would you recommend that would override "redirect_uri" in the request to incorporate "https"?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions