Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI: login logout #4220

Merged
merged 4 commits into from
Aug 29, 2024
Merged

OpenAPI: login logout #4220

merged 4 commits into from
Aug 29, 2024

Conversation

markxiong0122
Copy link
Collaborator

login/logout api using OAS

Copy link
Collaborator

@DanielRyanSmith DanielRyanSmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 comment here

api/login_api.py Outdated
Comment on lines 33 to 36
request = SignInRequest.from_dict(self.request.json)
token = request.credential
if not token:
raise werkzeug.exceptions.BadRequest(description="Missing required field 'credential'")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth catching the error from_dict will raise if they json does not match what is needed to create the object here (this is done in your previous changes in cues_api)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. thanks!

@markxiong0122 markxiong0122 merged commit d841c89 into main Aug 29, 2024
7 checks passed
@markxiong0122 markxiong0122 deleted the openapi-login branch August 29, 2024 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants