提交 05c15d51 编写于 作者: 智布道's avatar 智布道 👁

🍻 Modify the comment content

上级 a3a571d2
......@@ -42,8 +42,8 @@ public class ApprovalEndpoint extends AbstractEndpoint {
/**
* The default authorization confirmation page pops up
*
* @param request Current request
* @param response Current response
* @param request current HTTP request
* @param response current HTTP response
* @throws IOException IOException
*/
public void showConfirmPage(HttpServletRequest request, HttpServletResponse response) throws IOException {
......@@ -76,7 +76,7 @@ public class ApprovalEndpoint extends AbstractEndpoint {
/**
* Generate the html of the authorization confirmation page
*
* @param request Current request
* @param request current HTTP request
* @return Confirm the html of the authorization page
*/
private String createConfirmPageHtml(HttpServletRequest request) {
......@@ -127,8 +127,8 @@ public class ApprovalEndpoint extends AbstractEndpoint {
/**
* Generate the scope list of the authorization confirmation page
*
* @param param Parameters of the current request
* @param request Current request
* @param param Parameters of the current HTTP request
* @param request current HTTP request
* @return the scope list of the authorization confirmation page
*/
private String createScopes(IdsRequestParam param, HttpServletRequest request) {
......@@ -152,7 +152,7 @@ public class ApprovalEndpoint extends AbstractEndpoint {
/**
* Reorganize scope information
*
* @param param Parameters of the current request
* @param param Parameters of the current HTTP request
* @return List
*/
private List<Map<String, Object>> getScopeInfo(IdsRequestParam param) {
......
......@@ -48,13 +48,13 @@ public class AuthorizationEndpoint extends AbstractEndpoint {
private final IdsAuthorizationProvider idsAuthorizationProvider = new IdsAuthorizationProvider(oauth2Service);
/**
* Authorize current request
* Authorize current HTTP request
* <p>
* When logged in, the method returns the callback url (with parameters such as code)
* <p>
* When not logged in, the method returns the login url (with the parameters of the current request)
* When not logged in, the method returns the login url (with the parameters of the current HTTP request)
*
* @param request Current request
* @param request current HTTP request
* @return Callback url or authorization url
* @throws IOException IOException
*/
......@@ -81,13 +81,13 @@ public class AuthorizationEndpoint extends AbstractEndpoint {
/**
* User-initiated consent authorization
*
* @param request current request
* @param request current HTTP request
* @return Return the callback url (with parameters such as code)
*/
public IdsResponse<String, String> agree(HttpServletRequest request) {
IdsRequestParam param = IdsRequestParamProvider.parseRequest(request);
// The scope checked by the user may be inconsistent with the scope passed in the current request
// The scope checked by the user may be inconsistent with the scope passed in the current HTTP request
String[] requestScopes = request.getParameterValues("scopes");
Set<String> scopes = null;
if (ArrayUtil.isEmpty(requestScopes)) {
......@@ -113,7 +113,7 @@ public class AuthorizationEndpoint extends AbstractEndpoint {
/**
* Generate callback url
*
* @param param Parameters in the current request
* @param param Parameters in the current HTTP request
* @param responseType oauth authorized response type
* @param clientDetail Currently authorized client
* @return Callback url
......
......@@ -47,8 +47,8 @@ public class ErrorEndpoint extends AbstractEndpoint {
/**
* Obtain exception information from the request url and display the exception page
*
* @param request Current request
* @param response Current response
* @param request current HTTP request
* @param response current HTTP response
* @throws IOException IOException
*/
public void showErrorPage(HttpServletRequest request, HttpServletResponse response) throws IOException {
......@@ -64,7 +64,7 @@ public class ErrorEndpoint extends AbstractEndpoint {
*
* @param error error type
* @param errorDescription error description
* @param response Current response
* @param response current HTTP response
* @throws IOException IOException
*/
public void showErrorPage(String error, String errorDescription, HttpServletResponse response) throws IOException {
......
......@@ -45,7 +45,7 @@ public class UserInfoEndpoint extends AbstractEndpoint {
/**
* Get the currently logged-in user information through the access token
*
* @param request current request
* @param request current HTTP request
* @return IdsResponse
* @see <a href="https://openid.net/specs/openid-connect-core-1_0.html#UserInfo" target="_blank">5.3. UserInfo Endpoint</a>
* @see <a href="https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse" target="_blank">5.3.2. Successful UserInfo Response</a>
......
......@@ -40,7 +40,7 @@ public class AbstractIdsFilter {
/**
* Whether it is a servlet request that needs to be ignored
*
* @param request The current request to be intercepted
* @param request The current HTTP request to be intercepted
* @return boolean, the request does not need to be intercepted when true is returned
*/
protected boolean isIgnoredServletPath(HttpServletRequest request) {
......
......@@ -44,7 +44,7 @@ public enum ErrorResponse {
INVALID_REDIRECT_URI("invalid_redirect_uri", "The requested callback URL is incorrect."),
UNSUPPORTED_GRANT_TYPE("unsupported_grant_type", "The grant type is not supported by the authorization server, or the current client is not authorized for the grant type."),
UNSUPPORTED_RESPONSE_TYPE("unsupported_response_type", "The response type is not supported by the authorization server, or the current client does not allow the response type."),
ACCESS_DENIED("access_denied", "The authorization server rejected the current request。"),
ACCESS_DENIED("access_denied", "The authorization server rejected the current HTTP request。"),
SERVER_ERROR("server_error", "The authorization server is temporarily unavailable. Please try again later."),
AUTHORIZATION_FAILED("authorization_failed", "Authorization failed, please contact the systems administrator."),
EXPIRED_TOKEN("expired_token", "The requested token has expired (access token, refresh token, or id token)."),
......
......@@ -87,7 +87,7 @@ public class IdsTokenProvider {
* RFC6749 4.3. Resource Owner Password Credentials Grant
*
* @param param request params
* @param request current request
* @param request current HTTP request
* @return IdsResponse
* @see <a href="https://tools.ietf.org/html/rfc6749#section-4.3" target="_blank">4.3. Resource Owner Password Credentials Grant</a>
*/
......
......@@ -69,7 +69,7 @@ public class OauthUtil {
}
/**
* @param requestScopes The scope parameter in the current request
* @param requestScopes The scope parameter in the current HTTP request
* @param clientScopes Scope in client detail
* @return After the verification is passed, return the scope list
*/
......@@ -111,7 +111,7 @@ public class OauthUtil {
/**
* Verify the callback url
*
* @param requestRedirectUri The callback url passed in the current request
* @param requestRedirectUri The callback url passed in the current HTTP request
* @param clientDetail client detail
*/
public static void validateRedirectUri(String requestRedirectUri, ClientDetail clientDetail) {
......@@ -160,7 +160,7 @@ public class OauthUtil {
/**
* Verify the response type
*
* @param requestResponseType The response type in the current request
* @param requestResponseType The response type in the current HTTP request
* @param clientResponseTypes Response type in client detail
*/
public static void validateResponseType(String requestResponseType, String clientResponseTypes) {
......@@ -173,7 +173,7 @@ public class OauthUtil {
/**
* Verify the grant type
*
* @param requestGrantType The grant type in the current request
* @param requestGrantType The grant type in the current HTTP request
* @param clientGrantTypes Grant type in client detail
* @param equalTo {@code requestGrantType} Must match grant type value
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册