Skip to content

Response model for login #20

Description

@johnmartins

The response model is currently undefined for "/api/core/auth/token". This should be resolved by introducing such a response model (should be defined in apps.core.authentication.models) such that it is properly documented in the automated API docs. This will make it slightly easier to implement authentication on the client side.

# apps.core.authentication.router
@router.post("/token",
             summary="Login using token",
             description="Login using Token")
async def login_with_token(form_data: OAuth2PasswordRequestForm = Depends()):
    """
    Authenticates the user when logging in by comparing hashed password values
    """
    return impl_login_with_token(form_data)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions