Skip to content

Devtools: Enable automatic logins at dev time #3331

@cbeams

Description

@cbeams

Per brainstorming with @rwinch:

I just went through the process of enabling remember-me authentication, essentially so I don't have to log into my application every time I re-start gradle bootRun.

It would be nice if Boot's devtools solved this by introducing a DeveloperLoginFilter or some such that would set the security context automatically with a fake user (or a username of my choosing, configured in application.yml). This approach would be like in kind to the recent additions to Spring Security Test, e.g. @WithMockUser, only happening at development runtime, not just test-time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions