leewillis77 / wp-github-oembed

WordPress Github "oEmbed" plugin
GNU General Public License v2.0
69 stars 19 forks source link

[GitHub API] Deprecation notice for authentication via URL query parameters #32

Closed CodyMcMichael closed 4 years ago

CodyMcMichael commented 4 years ago

Hey, we are using your plugin on one of our sites and we received this email from Github. Is this something you are planning on addressing or working on? Thanks a bunch!


Hello there!

On February 3rd, 2020 at 22:15 (UTC) your application used its client_id and client_secret (with the User-Agent WordPress Github oEmbed plugin)

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

leewillis77 commented 4 years ago

v2.0 supports authenticating with Personal Access Tokens:

add_filter( 'github-embed-access-token', function ( $v ) {
    return 'INSERTYOURPERSONALACCESSTOKENHERE';
} );
add_filter( 'github-embed-access-token-username', function ( $v ) {
    return 'INSERTYOURUSERNAMEHERE';
} );