Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alex268 committed Jun 14, 2024
1 parent 1c04a4c commit e4d7f72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ private List<NameValuePair> fixedArgs() {
List<NameValuePair> params = new ArrayList<>();

// Required parameters
params.add(new BasicNameValuePair("grand_type", grantType));
params.add(new BasicNameValuePair("grant_type", grantType));
params.add(new BasicNameValuePair("requested_token_type", requestedTokenType));

// Optional parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private HttpResponse createResponse(String token, String tokenType, String scope

private String requestForm(String token) {
return Stream.of(
"grand_type=" + OAuth2TokenExchangeProvider.GRANT_TYPE,
"grant_type=" + OAuth2TokenExchangeProvider.GRANT_TYPE,
"requested_token_type=" + OAuth2TokenSource.ACCESS_TOKEN,
"subject_token=" + token,
"subject_token_type=" + OAuth2TokenSource.JWT_TOKEN
Expand Down Expand Up @@ -217,7 +217,7 @@ public void customRequestTest() {
Assert.assertEquals("Bearer custom_token", identity.getToken());

String form = Stream.of(
"grand_type=" + OAuth2TokenSource.ACCESS_TOKEN,
"grant_type=" + OAuth2TokenSource.ACCESS_TOKEN,
"requested_token_type=" + OAuth2TokenSource.REFRESH_TOKEN,
"resource=Resource",
"resource=OtherResource",
Expand Down

0 comments on commit e4d7f72

Please sign in to comment.