Jump to content

Working with OAuth


Recommended Posts

Posted

I know I've seen a few workflows pull it off but I'm just curious if anyone has any specific input on having Alfred handle OAuth? I would prefer to go that route over directing people to request API keys. I'm just not quite able to conceptualize how to have Alfred grab the auth token after approval.

 

I tried looking through some workflows that incorporate it but I wasn't able to fully see how it was being pulled off.

Posted

Which OAuth API are you looking to use?

 

It is a fairly complicated thing to implement, so you should probably try to find an existing library for the particular OAuth API you want to use.

Posted

I was planning to try and clean up some of my workflows where you can use OAuth for access. Mainly Slack, Uber and Trello. I found some libraries in python for OAuth I just wasn't sure if there was a good way to get the token passed back into Alfred.

Posted

I think it has to go via HTTP, so you need to start a local webserver. You could get the token into Alfred is via a shared data store, e.g. Keychain.

Alternatively, you could have the server process run your workflow in Alfred via AppleScript.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...