Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to using OAuth and tokens #7

Open
tamagokun opened this issue Apr 15, 2018 · 0 comments
Open

Move to using OAuth and tokens #7

tamagokun opened this issue Apr 15, 2018 · 0 comments

Comments

@tamagokun
Copy link
Member

tamagokun commented Apr 15, 2018

User creates a build URL by providing their repo URL, any configuration options. That request takes them to OAuth for Github or Bitbucket, etc, and gets a token. Token can be used to clone repo and perform build.

  1. POST /deployments {repo: 'github.com/ripeworks/mysite.git'}
  2. Please visit this URL: https://oauth.github.com/authorize?code=xxxxxxxxxxx
  3. redirect back to deployment with token
  4. {deployment: 'https://jekyllbuild.com/1odkcoz0'}

Any POST sent to the final URL will trigger a build.

https://blog.github.com/2012-09-21-easier-builds-and-deployments-using-git-over-https-and-oauth/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant