Allow access tokens to be gathered as parameters too (#1098)

This commit is contained in:
Clément Oudot 2016-10-24 14:17:02 +00:00
parent 89527b47f2
commit 33fe8f11dd

View File

@ -1129,6 +1129,9 @@ sub getEndPointAccessToken {
if ( $authorization =~ /^Bearer (\w+)/i ) {
$self->lmLog( "Bearer access token", 'debug' );
$access_token = $1;
} elsif ( $self->param('access_token') ) {
$self->lmLog( "GET/POST access token", 'debug' );
$access_token = $self->param('access_token');
}
return $access_token;