Giter Site home page Giter Site logo

Comments (9)

timothoms avatar timothoms commented on June 6, 2024 1

That sounds great, and seems the right way to go. I will try out the set_airtable_api_key()with a new PAT. (And will report back if it doesn't work as expected.) Thanks.

from rairtable.

matthewjrogers avatar matthewjrogers commented on June 6, 2024

Hey there @timothoms -- thanks for bringing this to my attention!

I'm not sure if they use (or will use) PATs in the same manner as they currently use the API key. Right now, the API key stored by set_airtable_api_key() is passed to an Authorization header in the relevant GET/POST/PATCH/DELETE request. If PATs are going to be expected differently, I'll have to make some changes to keep set_airtable_api_key() compliant. I took a quick look at the API documentation and don't see anything yet.

When there's a clear path forward, I'll likely deprecate set_airtable_api_key() in favor of a new function. My guess is that the major functionality it will need is improved error handling, as it'd be easy to have permissions errors related to PAT scope the the current function might not surface in a helpful way.

from rairtable.

timothoms avatar timothoms commented on June 6, 2024

Great, thanks! Might be useful to keep set_airtable_api_key() until Airtable deprecates it in Jan 2024.

Does this documentation help?: https://airtable.com/developers/web/api/authentication

from rairtable.

matthewjrogers avatar matthewjrogers commented on June 6, 2024

That's perfect, I hadn't seen that. That confirms that the tokens and api keys are used in the same way, so the set function will actually work as-is, though I think there should be a PAT-specific function for clarity

I'm thinking that the cadence for retiring set_airtable_api_key() would be

  1. Add deprecation warnings to set_airtable_api_key() and release a new set_airtable_pat function
  2. End of 2024, remove set_airtable_api_key

Since the PATs have scope limitations, it seems like it might be useful to have a means of storing more than one PAT and being able to select between them.

from rairtable.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.