Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #6 from ritou/draft27

Changed token_type response "bearer" to "Bearer".
  • Loading branch information...
commit 426b05e8452bee2ae8bc149dfc2435db31858f57 2 parents ffa055d + 5c2842e
@lyokato authored
View
2  lib/OAuth/Lite2/Server/GrantHandler/AuthorizationCode.pm
@@ -46,7 +46,7 @@ sub handle_request {
&& $access_token->isa("OAuth::Lite2::Model::AccessToken"));
my $res = {
- token_type => 'bearer',
+ token_type => 'Bearer',
access_token => $access_token->token,
};
View
2  lib/OAuth/Lite2/Server/GrantHandler/ClientCredentials.pm
@@ -37,7 +37,7 @@ sub handle_request {
&& $access_token->isa("OAuth::Lite2::Model::AccessToken"));
my $res = {
- token_type => 'bearer',
+ token_type => 'Bearer',
access_token => $access_token->token,
};
$res->{expires_in} = $access_token->expires_in
View
2  lib/OAuth/Lite2/Server/GrantHandler/Password.pm
@@ -46,7 +46,7 @@ sub handle_request {
&& $access_token->isa("OAuth::Lite2::Model::AccessToken"));
my $res = {
- token_type => 'bearer',
+ token_type => 'Bearer',
access_token => $access_token->token,
};
$res->{expires_in} = $access_token->expires_in
View
2  lib/OAuth/Lite2/Server/GrantHandler/RefreshToken.pm
@@ -37,7 +37,7 @@ sub handle_request {
&& $access_token->isa("OAuth::Lite2::Model::AccessToken"));
my $res = {
- token_type => 'bearer',
+ token_type => 'Bearer',
access_token => $access_token->token,
};
$res->{expires_in} = $access_token->expires_in
View
2  t/030_server/token_endpoint/authorization_code.t
@@ -139,7 +139,7 @@ sub test_error {
client_secret => q{secret_value},
redirect_uri => q{http://example.org/callback},
}, {
- token_type => q{bearer},
+ token_type => q{Bearer},
token => q{access_token_0},
expires_in => q{3600},
refresh_token => q{refresh_token_0},
View
4 t/030_server/token_endpoint/client_credentials.t
@@ -96,7 +96,7 @@ sub test_error {
client_id => q{foo},
client_secret => q{bar},
}, {
- token_type => q{bearer},
+ token_type => q{Bearer},
token => q{access_token_0},
expires_in => q{3600},
refresh_token => q{refresh_token_2},
@@ -107,7 +107,7 @@ sub test_error {
client_id => q{buz},
client_secret => q{hoge},
}, {
- token_type => q{bearer},
+ token_type => q{Bearer},
token => q{access_token_1},
expires_in => q{3600},
refresh_token => q{refresh_token_3},
View
2  t/030_server/token_endpoint/password.t
@@ -137,7 +137,7 @@ sub test_error {
username => q{user_1},
password => q{pass_1},
}, {
- token_type => q{bearer},
+ token_type => q{Bearer},
token => q{access_token_0},
expires_in => q{3600},
refresh_token => q{refresh_token_1},
View
2  t/030_server/token_endpoint/refresh.t
@@ -118,7 +118,7 @@ sub test_error {
client_secret => q{bar},
refresh_token => $auth_info->refresh_token,
}, {
- token_type => q{bearer},
+ token_type => q{Bearer},
token => q{access_token_0},
expires_in => q{3600},
refresh_token => q{refresh_token_0},
Please sign in to comment.
Something went wrong with that request. Please try again.