First, understand the current authentication in DocsGPT by reviewing the codebase (likely in app/auth or similar). Then, research authentik's OAuth2/OIDC integration by reading their documentation at https://goauthentik.io/docs/. Finally, propose a plan for integrating authentik as an authentication provider, considering user registration and login flows.