Skip to content

hackclub/tablecloth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tablecloth

Revokes Airtable PATs (Personal Access Tokens) via enterprise admin API.

Setup

bundle install
cp .env.example .env
# Edit .env with your credentials

Getting Credentials

  1. AIRTABLE_API_KEY: Create a PAT at https://airtable.com/create/tokens with enterprise.user:read scope
  2. AIRTABLE_ENTERPRISE_ID: Your enterprise ID (starts with ent)
  3. AIRTABLE_SESSION_COOKIE: Copy the entire Cookie header from browser DevTools while logged in
  4. AIRTABLE_CSRF_TOKEN: Decode __Host-airtable-session (base64) and extract csrfSecret
  5. API_TOKEN: Secret token for authenticating requests to this service

Running

bundle exec ruby app.rb
# or
bundle exec puma

API

POST /revoke

Revokes a PAT and returns the owner's email.

Request:

{"token": "patXXX.secret"}

Response:

{"success": true, "owner_email": "[email protected]"}

Requires Authorization: Bearer <API_TOKEN> header.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published