Changed success logs to info

This commit is contained in:
Ziver Koc 2021-08-29 15:14:25 +02:00
parent 12b0fb219e
commit ef10430d54
2 changed files with 16 additions and 16 deletions

View file

@ -42,12 +42,12 @@ import java.util.logging.Logger;
*
* <pre>
* From RFC:
* +---------+ +---------------+
* | |&#62;---(D)-- Authorization Code ----&#62;| |
* | Client | and Redirection URI | Authorization |
* | | | Server |
* | |&#60;---(E)----- Access Token -------&#60;| |
* +---------+ (w/ Optional Refresh Token) +---------------+
* +---------+ +---------------+
* | | &#62;---(D)-- Authorization Code ----&#62; | |
* | Client | and Redirection URI | Authorization |
* | | | Server |
* | | &#60;---(E)----- Access Token -------&#60; | |
* +---------+ (w/ Optional Refresh Token) +---------------+
* </pre>
*
* @see <a href="https://tools.ietf.org/html/rfc6749#section-4">RFC 6749: Chapter 4</a>
@ -161,9 +161,9 @@ public class OAuth2AuthorizationPage implements HttpPage {
return;
}
// Setup the redirect
// Prepare the redirect
logger.warning("OAuth2 successful authorization of client: " + clientId);
logger.info("OAuth2 successful authorization of client: " + clientId);
redirect(out, url);
}

View file

@ -40,13 +40,13 @@ import zutil.parser.DataNode;
*
* <pre>
* From RFC:
* +---------+ +---------------+
* | | | |
* | |&#62;--(A)- Client Authentication ---&#62;| Authorization |
* | Client | | Server |
* | |&#60;--(B)---- Access Token ---------&#60;| |
* | | | |
* +---------+ +---------------+
* +---------+ +---------------+
* | | | |
* | | &#62;--(A)- Client Authentication ---&#62; | Authorization |
* | Client | | Server |
* | | &#60;--(B)---- Access Token ---------&#60; | |
* | | | |
* +---------+ +---------------+
* </pre>
*
*
@ -162,7 +162,7 @@ public class OAuth2TokenPage extends HttpJsonPage {
if (clientId == null)
clientId = registry.getClientIdForAuthenticationCode(authorizationCode);
logger.warning("OAuth2 successful token provisioning for client: " + clientId);
logger.info("OAuth2 successful token provisioning for client: " + clientId);
String token = registry.generateToken();
long timeoutMillis = registry.registerAccessToken(clientId, token);