Skip to content
This repository was archived by the owner on Jan 24, 2019. It is now read-only.
This repository was archived by the owner on Jan 24, 2019. It is now read-only.

Support for a whitelist of --redirect-domains #399

@colemickens

Description

@colemickens

Per my comments here, I'd like to add support for --redirect-domains to take a comma-delimited list of whitelisted redirect domains.

Example scenario:

Currently, I can't seem to get things to work properly in terms of handling the redirect after the callback succeeds.

It seems like it's due to the filtering that happens here:

The same logic seems duplicated here:

I propose a PR such that:

  • there is a new --redirect-domains flag that takes a list of domains. example: (--redirect-domains=mickens.io,mickens.us).

  • the redirect filter is extended to allow any URLs that have a Host that ends with a value in the --redirect-domain list.

Does this sound reasonable?

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