|
544 | 544 | subject.options.client_options[:connection_build] = proc do |builder| |
545 | 545 | builder.request :url_encoded |
546 | 546 | builder.adapter :test do |stub| |
547 | | - stub.get('/oauth2/v2/tokeninfo?access_token=valid_access_token') do |env| |
| 547 | + stub.get('/oauth2/v3/tokeninfo?access_token=valid_access_token') do |env| |
548 | 548 | [200, {'Content-Type' => 'application/json; charset=UTF-8'}, MultiJson.encode( |
549 | | - :issued_to => '000000000000.apps.googleusercontent.com', |
550 | | - :audience => '000000000000.apps.googleusercontent.com', |
551 | | - :user_id => '000000000000000000000', |
552 | | - :scope => 'profile email', |
553 | | - :expires_in => 3514, |
554 | | - |
555 | | - :verified_email => true, |
556 | | - :access_type => 'online' |
| 549 | + :aud => "000000000000.apps.googleusercontent.com", |
| 550 | + :sub => "123456789", |
| 551 | + :email_verified => "true", |
| 552 | + |
| 553 | + :access_type => "offline", |
| 554 | + :scope => "profile email", |
| 555 | + :expires_in => 436 |
557 | 556 | )] |
558 | 557 | end |
559 | | - stub.get('/oauth2/v2/tokeninfo?access_token=invalid_access_token') do |env| |
| 558 | + stub.get('/oauth2/v3/tokeninfo?access_token=invalid_access_token') do |env| |
560 | 559 | [400, {'Content-Type' => 'application/json; charset=UTF-8'}, MultiJson.encode(:error_description => 'Invalid Value')] |
561 | 560 | end |
562 | 561 | end |
|
0 commit comments