Skip to content

Custom login url to override Django-Admin login_url #1663

@krestenlaust

Description

@krestenlaust

Is your feature request related to a problem? Please describe.

For my application, I need to have a custom login view parallel to default admin login. Specifically a one-time password login form.

Describe the solution you'd like

Add a 'login_url' parameter to OAUTH2_PROVIDER-settings that overrides settings.login_url,
I've already implemented my need in this older version: https://github.com/krestenlaust/django-oauth-toolkit/tree/2.4.0-custom-login-url

Describe alternatives you've considered

Some other way to configure a login form or url.

Additional context

I am using a separate login page, because my admin "staff" users are distinct from the other types of users I have "Members". So I have created a custom authentication backend that authenticates these other types of users, by creating a companion User and attaching it.

This way the default admin login still authenticates my "staff" users, and DOT redirects to my custom login which provides form details not in default admin login, to let the other authentication backend authenticate them

f-klubben/stregsystemet#617

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions