-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
83 additions
and
7 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,3 +166,5 @@ flake8-errors.txt | |
RELEASE.txt | ||
site-packages | ||
reports | ||
temp.py | ||
todo.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Accessing templates in private repositories | ||
|
||
Cookie composer can integrate with some third-party services in order to access private repositories. | ||
|
||
```{note} | ||
Currently only GitHub is supported. | ||
``` | ||
|
||
## GitHub | ||
|
||
At your terminal, enter `cookie-composer auth login`: | ||
|
||
```console | ||
$ cookie-composer auth login | ||
First copy your one-time code: A25E-0A58 | ||
Then visit https://github.com/login/device in your browser, and paste the code when prompted. | ||
Press Enter to open github.com in your browser... | ||
``` | ||
|
||
Copy the one-time code (`A25E-0A58` in this example), and press Enter or Return to open your browser to the correct page. | ||
|
||
You will arrive at a page similar to this: | ||
|
||
![Activate the device](/_static/img/device-activation.png) | ||
|
||
Paste the code (or enter each character individually) and press the continue button. | ||
|
||
You will see an authorization page, similar to: | ||
|
||
![Authorize cookie-composer](/_static/img/authorize-composer.png) | ||
|
||
Press the "Authorize callowayproject" button to allow cookie-composer read-only access to your repositories. | ||
|
||
Then you will see: | ||
|
||
![All done!](/_static/img/authorize-done.png) | ||
|
||
And you can close the browser window. | ||
|
||
Your terminal will now look like: | ||
|
||
```console | ||
$ cookie-composer auth login | ||
First copy your one-time code: A25E-0A58 | ||
Then visit https://github.com/login/device in your browser, and paste the code when prompted. | ||
Press Enter to open github.com in your browser... | ||
Waiting for authorization.............Authenticated to GitHub | ||
``` | ||
|
||
Now when you provide any GitHub template link, Cookie Composer is able to access them as you with read-only access. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# How To... | ||
|
||
```{toctree} | ||
--- | ||
maxdepth: 2 | ||
--- | ||
access-private-templates | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ hidden: | |
installation | ||
tutorial/index | ||
topic-guides/index | ||
how-to/index | ||
cli | ||
api | ||
contributing | ||
|