Skip to content

Support adding example values to the Spring Security login endpoint. #3321

Description

@zhujianxintian

I want the login endpoint to automatically apply the properties from spring.security.user (the built-in properties of Spring Security), so that the login endpoint can have default values, and I don't have to manually enter the username and password every time.

spring:
  security:
    user:
      name: admin
      password: password

However, it is recommended to add a property to control whether to automatically apply this, because in production environments the API documentation might be exposed to third parties, and you may want to have a specific switch to avoid exposing the default username and password. This property is recommended to have a default value of false, requiring manual enabling.

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