Polish gh-9505
This commit is contained in:
@@ -59,6 +59,9 @@ public final class AuthorizationGrantType implements Serializable {
|
||||
|
||||
public static final AuthorizationGrantType PASSWORD = new AuthorizationGrantType("password");
|
||||
|
||||
/**
|
||||
* @since 5.5
|
||||
*/
|
||||
public static final AuthorizationGrantType JWT_BEARER = new AuthorizationGrantType(
|
||||
"urn:ietf:params:oauth:grant-type:jwt-bearer");
|
||||
|
||||
|
||||
@@ -60,6 +60,12 @@ public interface OAuth2ParameterNames {
|
||||
*/
|
||||
String CLIENT_ASSERTION = "client_assertion";
|
||||
|
||||
/**
|
||||
* {@code assertion} - used in Access Token Request.
|
||||
* @since 5.5
|
||||
*/
|
||||
String ASSERTION = "assertion";
|
||||
|
||||
/**
|
||||
* {@code redirect_uri} - used in Authorization Request and Access Token Request.
|
||||
*/
|
||||
@@ -111,11 +117,6 @@ public interface OAuth2ParameterNames {
|
||||
*/
|
||||
String PASSWORD = "password";
|
||||
|
||||
/**
|
||||
* {@code assertion} - used in Access Token Request.
|
||||
*/
|
||||
String ASSERTION = "assertion";
|
||||
|
||||
/**
|
||||
* {@code error} - used in Authorization Response and Access Token Response.
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -53,4 +53,10 @@ public class AuthorizationGrantTypeTests {
|
||||
assertThat(AuthorizationGrantType.PASSWORD.getValue()).isEqualTo("password");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getValueWhenJwtBearerGrantTypeThenReturnJwtBearer() {
|
||||
assertThat(AuthorizationGrantType.JWT_BEARER.getValue())
|
||||
.isEqualTo("urn:ietf:params:oauth:grant-type:jwt-bearer");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user