Skip to content

Commit e4d7f72

Browse files
committed
Fix typo
1 parent 1c04a4c commit e4d7f72

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2TokenExchangeProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ private List<NameValuePair> fixedArgs() {
276276
List<NameValuePair> params = new ArrayList<>();
277277

278278
// Required parameters
279-
params.add(new BasicNameValuePair("grand_type", grantType));
279+
params.add(new BasicNameValuePair("grant_type", grantType));
280280
params.add(new BasicNameValuePair("requested_token_type", requestedTokenType));
281281

282282
// Optional parameters

auth-providers/oauth2-provider/src/test/java/tech/ydb/auth/OAuth2TokenExchangeProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private HttpResponse createResponse(String token, String tokenType, String scope
104104

105105
private String requestForm(String token) {
106106
return Stream.of(
107-
"grand_type=" + OAuth2TokenExchangeProvider.GRANT_TYPE,
107+
"grant_type=" + OAuth2TokenExchangeProvider.GRANT_TYPE,
108108
"requested_token_type=" + OAuth2TokenSource.ACCESS_TOKEN,
109109
"subject_token=" + token,
110110
"subject_token_type=" + OAuth2TokenSource.JWT_TOKEN
@@ -217,7 +217,7 @@ public void customRequestTest() {
217217
Assert.assertEquals("Bearer custom_token", identity.getToken());
218218

219219
String form = Stream.of(
220-
"grand_type=" + OAuth2TokenSource.ACCESS_TOKEN,
220+
"grant_type=" + OAuth2TokenSource.ACCESS_TOKEN,
221221
"requested_token_type=" + OAuth2TokenSource.REFRESH_TOKEN,
222222
"resource=Resource",
223223
"resource=OtherResource",

0 commit comments

Comments
 (0)