{"repo":"hackclub/auth","free":true,"listed":false,"github":"https://github.com/hackclub/auth","clone":"git clone https://github.com/hackclub/auth.git","description":"a better basket to put all your eggs in","language":"Ruby","stars":80,"topics":["idp","oauth2","saml","saml2","oidc"],"license":null,"category":"auth-billing-email","readme_excerpt":"Hack Club Auth This is the Rails codebase powering https://auth.hackclub.com! contributing ask around in #idv-dev or poke nora! avoid questions that can be answered by reading the source code, but otherwise i'd be happy to help you get up to speed :-D kindly bin/lint your code before you submit it! local dev setup prerequisites you'll need: - ruby 3.4.4+ (i use mise to manage this) - node.js + yarn - postgres (see below) - imagemagick & libvips (image processing) - libxmlsec1 (SAML signing) on macOS: database easiest way is docker. if you don't have it and you're on macOS, orbstack works well enough. this gives you a postgres instance at postgresql://postgres@localhost:5432/identity vault development . if you've got your own postgres running somewhere, that works too – just point at it. environment create a .env.development file: that's it for local dev – lockbox will use a deterministic dev key automatically. see environment variables below for the full list. install & setup the seeds create a dev account with 2FA already set up. it'll print out the TOTP secret – add that to your authenticator app. running the thing if you want hot reload on css & js, also run bin/vite dev in another terminal. logging in to the backend 1. go to http://localhost:3000/login 2. enter identity@hackclub.com 3. grab the verification code from http://localhost:3000/letter opener 4. enter your TOTP code (from the authenticator app you set up during seeding) 5. head to http://localhost:3000/backend t","default_branch":null,"files":null,"tree":[],"storefront":"/r/hackclub","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hackclub/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."}