Making WordPress.org


Ignore:
Timestamp:
07/07/2021 01:52:55 AM (3 years ago)
Author:
dd32
Message:

Trac: Update the GitHub PR Bot & Slack Mentions Bot to use cookie based authentication to access trac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/class-trac.php

    r10972 r11099  
    123123                [
    124124                    'Content-Type: application/json',
    125                     'Authorization: Basic ' . base64_encode( $this->credentials[0] . ':' . $this->credentials[1] ),
     125                    'Cookie: ' . LOGGED_IN_COOKIE . '=' . wp_generate_auth_cookie( get_user_by( 'login', $this->credentials[0] )->ID, time()+60, 'logged_in' ),
    126126                ],
    127127            'content'       => json_encode( [
Note: See TracChangeset for help on using the changeset viewer.