Getting a "401 - Bad credentials error" if the *optional* credentials are not supplied
jrfnl opened this issue · 4 comments
From the readme:
Pro-tip: If you provide a personal access token with Gist scope, as the environmental variable JEKYLL_GITHUB_TOKEN, Jekyll Gist will use the Gist API to speed up site generation.
This sounds like this is optional, but if not supplied, jekyll serve will error out with a 401 error on a local test install.
/cc @jekyll/plugin-core
https://developer.github.com/v3/gists/#authentication
You can read public gists and create them for anonymous users without a token; however, to read or write gists on a user's behalf the gist OAuth scope is required.
FYI: In my case I was just trying to display a public gist, nothing more.
This issue has been automatically marked as stale because it has not been commented on for at least two months.
The resources of the Jekyll team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.
This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.