Skip to content

When accessing RedirectToLogin from the service under tlb inside the enterprise, the wrong proxy ip address will appear as the callback host #45

@chyroc

Description

@chyroc

I deployed a service and printed the header information of the request. The X-Forwarded-Host field is an ip, which is frustrating

image

https://github.com/go-cas/cas/blob/v2.2.2/client.go#L113

image

Then the RedirectToLogin function 302 to the sso.xx.com/cas/login?service=10.x.x.x:1234/cas address, which is not the same as the callback address I set in the enterprise, resulting in authentication failure

Can we set the redirected host in some way?

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