enjalot / blockbuilder

Create, fork and edit d3.js code snippets for use with bl.ocks.org right in the browser, no terminal required.
Other
323 stars 59 forks source link

update Github auth to Basic Authentication #252

Open micahstubbs opened 4 years ago

micahstubbs commented 4 years ago

we got this email from github back in February 2020:

On February 6th, 2020 at 21:41 (UTC) your application (building-blocks-prod) used its client_id and client_secret (with the User-Agent Bl.ock Builder) as part of a set of query parameters to access an endpoint through the GitHub API:

https://api.github.com/gists/bfadecc96183c48d13b7b90bcf358a61

Please use Basic Authentication instead as using OAuth credentials in query parameters has been deprecated.

Depending on your API usage, we'll be sending you this email reminder at most once every 3 days. Just one URL that was accessed with a User-Agent combination will be listed in the email reminder, not all.

Visit https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/#authenticating-using-query-parameters for more information.

Thanks, The GitHub Team

curran commented 2 years ago

Yo let's do this! How hard can it be?

Here's the auth code for VizHub that currently works for GitHub auth https://github.com/vizhub-core/vizhub/blob/main/vizhub-v2/packages/controllers/src/jwtAuth/index.js

Would be awesome to revive blockbuilder, for old times' sake. Hope y'all have been well!