frankspin Posted October 30, 2014 Share Posted October 30, 2014 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. Link to comment
deanishe Posted October 31, 2014 Share Posted October 31, 2014 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. Link to comment
frankspin Posted November 1, 2014 Author Share Posted November 1, 2014 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. Link to comment
deanishe Posted November 1, 2014 Share Posted November 1, 2014 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. Link to comment
frankspin Posted November 1, 2014 Author Share Posted November 1, 2014 I'm currently instructing users to manually copy+paste the token and save it. I'll look into the AppleScript method. Thanks! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now