Jump to content
nikivi

How to send HTTP request with OAuth safely inside Alfred

Recommended Posts

Posted (edited)

I have this workflow and inside it in a red Bash Run Script I want to send an HTTP request that needs as OAuth my GitHub username and password.

 

I want to be able to share this workflow with other people and thus I don't want to put my GitHub credentials in the workflow. The request I need to send is this: https://developer.github.com/v3/repos/#delete-a-repository 

 

Actually I think I can get a GitHub OAuth token and save it in Alfred dirs somewhere and then use that but those Alfred directories always confused me. ?

Edited by nikivi

Share this post


Link to post
2 minutes ago, nikivi said:

needs as OAuth my GitHub username and password

 

Then you and/or the service you're using aren't doing OAuth properly. The whole point of OAuth is so you don't have to give random software your password.

 

If you really do need username and password, then obviously you store them in Keychain.

Share this post


Link to post

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
×