Skip to content

Allow wildcard redirect URLs #229

Closed
Closed
@johanbrook

Description

@johanbrook

We have a case where the redirect URLs are dynamic. I.e. something like http://*.ourdomain.com. It's something we don't have any control over. It's for our own apps, so the clients are trusted.

Since there doesn't seem to be a way for auth code flow to not use redirect URLs from the model, I'm wondering over if a wildcard solution is the way to go.

Instead of doing string matching (in here: https://github.com/thomseddon/node-oauth2-server/blob/master/lib/authCodeGrant.js#L107-L126), the code should match agains wildcards with * characters. In that case, we can store redirect URLs in the model, just like it is now, but the comparison would change.

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