Skip to content

Commit

Permalink
Fix OpenAPI generation for NoAuthAuthentication
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Sep 22, 2021
1 parent 6ea4e14 commit ec678b3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugins/auth/fps_auth/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,11 @@
)


class NoAuth(SecurityBase):
def __call__(self):
return "noauth"


class NoAuthAuthentication(BaseAuthentication):
def __init__(self, user: UserDB, name: str = "noauth"):
super().__init__(name, logout=False)
self.user = user
self.scheme = NoAuth()
self.scheme = None # type: ignore

async def __call__(self, credentials, user_manager):
noauth_user = await user_manager.user_db.get_by_email(NOAUTH_EMAIL)
Expand Down

0 comments on commit ec678b3

Please sign in to comment.