{"repo":"go-pkgz/auth","free":true,"listed":false,"github":"https://github.com/go-pkgz/auth","clone":"git clone https://github.com/go-pkgz/auth.git","description":"Authenticator via oauth2, direct, email and telegram","language":"Go","stars":1348,"topics":["golang","go","library","authentication","oauth2","oauth2-client","login","custom-oauth2","middleware","jwt"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"auth - authentication via oauth2, direct and email This library provides \"social login\" with Github, Google, Facebook, Microsoft, Twitter, Yandex, Battle.net, Apple, Patreon, Discord and Telegram as well as custom auth providers and email verification. - Multiple oauth2 providers can be used at the same time - Special dev provider allows local testing and development - JWT stored in a secure cookie with XSRF protection. Cookies can be session-only - Minimal scopes with user name, id and picture (avatar) only - Direct authentication with user's provided credential checker - Verified authentication with user's provided sender (email, im, etc) - Custom oauth2 server and ability to use any third party provider - Integrated avatar proxy with an FS, boltdb and gridfs storage - Support of user-defined storage for avatars - Identicon for default avatars - Black list with user-defined validator - Multiple aud (audience) supported - Secure key with customizable SecretReader - Ability to store an extra information to token and retrieve on login - Pre-auth and post-auth hooks to handle custom use cases. - Middleware for easy integration into http routers - Wrappers to extract user info from the request - Role based access control v1 vs v2 Differences The v2 version of this library is now the actively developed version, and we recommend using it for new projects. Key differences include: - JWT library updated to use github.com/golang-jwt/jwt/v5 (from v3) - JWT token claims use modern stru","default_branch":null,"files":null,"tree":[],"storefront":"/r/go-pkgz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/go-pkgz/auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}