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

@ -43,10 +43,10 @@ import java.util.logging.Logger;
* <pre> * <pre>
* From RFC: * From RFC:
* +---------+ +---------------+ * +---------+ +---------------+
* | |&#62;---(D)-- Authorization Code ----&#62;| | * | | &#62;---(D)-- Authorization Code ----&#62; | |
* | Client | and Redirection URI | Authorization | * | Client | and Redirection URI | Authorization |
* | | | Server | * | | | Server |
* | |&#60;---(E)----- Access Token -------&#60;| | * | | &#60;---(E)----- Access Token -------&#60; | |
* +---------+ (w/ Optional Refresh Token) +---------------+ * +---------+ (w/ Optional Refresh Token) +---------------+
* </pre> * </pre>
* *
@ -161,9 +161,9 @@ public class OAuth2AuthorizationPage implements HttpPage {
return; 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); redirect(out, url);
} }

View file

@ -42,9 +42,9 @@ import zutil.parser.DataNode;
* From RFC: * From RFC:
* +---------+ +---------------+ * +---------+ +---------------+
* | | | | * | | | |
* | |&#62;--(A)- Client Authentication ---&#62;| Authorization | * | | &#62;--(A)- Client Authentication ---&#62; | Authorization |
* | Client | | Server | * | Client | | Server |
* | |&#60;--(B)---- Access Token ---------&#60;| | * | | &#60;--(B)---- Access Token ---------&#60; | |
* | | | | * | | | |
* +---------+ +---------------+ * +---------+ +---------------+
* </pre> * </pre>
@ -162,7 +162,7 @@ public class OAuth2TokenPage extends HttpJsonPage {
if (clientId == null) if (clientId == null)
clientId = registry.getClientIdForAuthenticationCode(authorizationCode); 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(); String token = registry.generateToken();
long timeoutMillis = registry.registerAccessToken(clientId, token); long timeoutMillis = registry.registerAccessToken(clientId, token);