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

OAuth for cloning local git repo #29

Open
klokan opened this issue Sep 2, 2016 · 0 comments
Open

OAuth for cloning local git repo #29

klokan opened this issue Sep 2, 2016 · 0 comments

Comments

@klokan
Copy link
Member

klokan commented Sep 2, 2016

I have realised that OAuth can be used to create the clone (including write access) to a repo.
This means the @jekylledit user would not need to be used at all - and after installation of the JekyllEdit - the web could just ask the admin user for his GitHub OAuth permission to GitHub and clone the repo he specify for him.

This will make first deploy significantly easier.

Cloning is done this way:

git clone https://<token>:[email protected]/owner/repo.git

(from https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-https-and-oauth)

To request the OAuth token there is a simple Web Application Flow - https://developer.github.com/v3/oauth/#web-application-flow
@o1da is using it already in our clientportal project.

The application Client ID / Client Secret is registered under klokantech organisation.
It could be passed to Docker via a system variable - so non-klokantech deploys are easy.

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