Skip to content

Conversation

@Zerohertz
Copy link
Owner

@Zerohertz Zerohertz commented Jan 31, 2025

What type of PR is this?

  • feat
  • fix
  • refactor
  • test
  • infra
  • ci/cd
  • docs
  • chore

What this PR does / why we need it

class PasswordOAuthRequest(OAuthRequest):
grant_type: Annotated[str, Form(pattern="password")]
username: Annotated[
str,
Form(
min_length=5,
max_length=50,
pattern=r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$",
),
]
password: Annotated[str, Form(min_length=8, max_length=30)]

  • Swagger UI 내에서 OAuth를 바로 사용할 수 있도록 기능 추가 (resolves: [Feat] Swagger UI에서 OAuth 2.0 수행 #33)
  • Swagger UI의 customizing을 위한 swagger-ui-bundle.jsswagger-ui.css 추가
  • BaseResponse인 경우에만 APIResponse를 return 하도록 변경
  • 변경점에 따른 test code 추가

@Zerohertz Zerohertz self-assigned this Jan 31, 2025
@Zerohertz Zerohertz merged commit 2e3a522 into main Jan 31, 2025
23 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] Swagger UI에서 OAuth 2.0 수행 [Refactor] OAuth 2.0

2 participants