[wp-meta] [Making WordPress.org] #5061: Upgrade GitHub OAuth Usage

Making WordPress.org noreply at wordpress.org
Thu Feb 27 03:01:39 UTC 2020


#5061: Upgrade GitHub OAuth Usage
----------------------+-----------------------
 Reporter:  pento     |       Owner:  dd32
     Type:  task      |      Status:  accepted
 Priority:  normal    |   Milestone:
Component:  Profiles  |  Resolution:
 Keywords:            |
----------------------+-----------------------

Comment (by afragen):

 What GitHub is doing is deprecating the auth token in a query arg.

 The solution is to use the same auth token in a Basic Auth header.

 The format from the {{{http_request_args}}} filter is

  {{{$args['headers']['Authorization'] = token my_current_auth_token';}}}

 Assuming the authentication is via {{{wp_remote_get()}}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5061#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list