Bug 41521: Fix forbidden patterns (trailing spaces and http)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
This commit is contained in:
parent
8c46e76045
commit
d0ee8f5a6e
|
|
@ -408,11 +408,11 @@ An example:
|
|||
client_id => $client_id,
|
||||
client_secret => $client_secret,
|
||||
});
|
||||
my $redirect_url = $ils->auth_url("http://myapp.com/ils-auth");
|
||||
my $redirect_url = $ils->auth_url("https://myapp.com/ils-auth");
|
||||
$response->redirect($redirect_url);
|
||||
...
|
||||
After successful authentication at the provider, provider redirects
|
||||
back to specified app url (http://myapp.com/ils-auth)
|
||||
back to specified app url (https://myapp.com/ils-auth)
|
||||
|
||||
/ils-auth handler:
|
||||
my $auth_token = $req->param( $ils->auth_token_param_name )
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ use parent qw(WebService::ILS::JSON);
|
|||
|
||||
use constant API_VERSION => "v1";
|
||||
|
||||
use constant DISCOVERY_API_URL => "http://api.overdrive.com/";
|
||||
use constant TEST_DISCOVERY_API_URL => "http://integration.api.overdrive.com/";
|
||||
use constant DISCOVERY_API_URL => "https://api.overdrive.com/";
|
||||
use constant TEST_DISCOVERY_API_URL => "https://integration.api.overdrive.com/";
|
||||
|
||||
=head1 CONSTRUCTOR
|
||||
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ use Data::Dumper;
|
|||
|
||||
use parent qw(WebService::ILS::OverDrive);
|
||||
|
||||
use constant CIRCULATION_API_URL => "http://patron.api.overdrive.com/";
|
||||
use constant TEST_CIRCULATION_API_URL => "http://integration-patron.api.overdrive.com/";
|
||||
use constant CIRCULATION_API_URL => "https://patron.api.overdrive.com/";
|
||||
use constant TEST_CIRCULATION_API_URL => "https://integration-patron.api.overdrive.com/";
|
||||
use constant OAUTH_BASE_URL => "https://oauth.overdrive.com/";
|
||||
use constant TOKEN_URL => OAUTH_BASE_URL . 'token';
|
||||
use constant AUTH_URL => OAUTH_BASE_URL . 'auth';
|
||||
|
|
@ -123,7 +123,7 @@ An example:
|
|||
client_secret => $client_secret,
|
||||
library_id => $library_id,
|
||||
});
|
||||
my $redirect_url = $overdrive->auth_url("http://myapp.com/overdrive-auth");
|
||||
my $redirect_url = $overdrive->auth_url("https://myapp.com/overdrive-auth");
|
||||
$response->redirect($redirect_url);
|
||||
...
|
||||
/overdrive-auth handler:
|
||||
|
|
|
|||
|
|
@ -639,7 +639,7 @@ sub native_item_summary {
|
|||
|
||||
=head2 native_holds ()
|
||||
|
||||
See L<http://developer.rbdigital.com/endpoints/title-holds>
|
||||
See L<https://developer.rbdigital.com/endpoints/title-holds>
|
||||
|
||||
=cut
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue