Skip to content

Support Oauth2 Middleware πŸŽ‰

Choose a tag to compare

@yezz123 yezz123 released this 01 Jan 01:24
· 1390 commits to main since this release
7312915

What's Changed

Middleware - Oauth2

The OAuth 2.0 authorization framework is a protocol that allows a user to grant a third-party website or application access to the user's protected resources, without necessarily revealing their long-term credentials or even their identity.

Starlette middleware for authentication through oauth2's via a secret key, which is often used to add authentication and authorization to a web application that interacts with an API on behalf of the user.

That's why AuthX provides a Configuration MiddlewareOauth2 to configure the OAuth2 middleware.

from authx import MiddlewareOauth2

class AuthenticateMiddleware(MiddlewareOauth2):
    PUBLIC_PATHS = {"/public"}

Code Enhancement

  • Remove unnecessary calls to enumerate when the index variable is not used. by @yezz123 in #179
  • chore: Create a Basic Example to serve the utility of AuthX by @yezz123 in #178
  • Clean DocString & Define Functions by @yezz123 in #189

Full Changelog: 0.1.4...0.2.0