Skip to content

login redirect url #56

Closed
Closed
@ghost

Description

I usually use the default server from django to make my development: python manager.py runserver (no different port/ip). Which makes the straight forward configuration to use this app (without need to override a thing) produces a invalid redirect URL for the providers login request. But even if i change my ip to localhost the redirect URL still being evaluated as 127.0.0.1 which is not a valid address for redirections.

I think if we could check the base domain and make a swift translation from 127.0.0.1 to localhost without anymore modification over the code. I think something like that is useful because i don't think it's a good flow to test the logins only on stage environments. I thought about include the redirect URL as a column over the table or use some settings.py variable like:

ALLACCESS = {
    "facebook": {
        "scopes": [],
        "redirect": "localhost:8000/some_url.html"
    }
}

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