Skip to content

Allow different hostnames for login and validate #41

@jonocodes

Description

@jonocodes

Some network setups have different DNS routes for the login URL and the validation URL. omniauth-cas assumes there is one FQDN for both of these routes. Looking at the code it always appends the host, instead of allowing this to be overridden:
https://github.com/dlindahl/omniauth-cas/blob/master/lib/omniauth/strategies/cas.rb#L155

However other CAS clients allow for this flexability, for example:
https://github.com/rubycas/rubycas-client#a-more-complicated-example

This way I could specify something like
:cas_base_url => "https://external.route.to.cas.com/",
:login_url => "https://external.route.to.cas.com/login",
:logout_url => "https://external.route.to.cas.com/logout",
:validate_url => "https://internal.cas/proxyValidate",

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