Skip to content

Commit cf0c9c6

Browse files
committed
refresh: rephrase the warn texts
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent c4d89f2 commit cf0c9c6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/handle/refresh.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,16 +405,17 @@ apr_byte_t oidc_refresh_access_token_before_expiry(request_rec *r, oidc_cfg_t *c
405405

406406
t_expires = oidc_session_get_access_token_expires(r, session);
407407
if (t_expires <= 0) {
408-
oidc_warn(r, "no access token expires_in stored in the session (i.e. returned from in the "
409-
"authorization response), so cannot refresh the access token based on TTL requirement");
408+
oidc_warn(
409+
r, "no access token expires_in stored in the session (i.e. returned from the OP in the "
410+
"authorization response), so the access token cannot be refreshed based on the TTL requirement");
410411
return FALSE;
411412
}
412413

413414
// NB: this fails early: when no refresh token was returned, an error will be returned on
414415
// the first authenticated request, unrelated to the actual access token expiry timestamp
415416
if (oidc_session_get_refresh_token(r, session) == NULL) {
416-
oidc_warn(r, "no refresh token stored in the session, so cannot refresh the access token based on TTL "
417-
"requirement");
417+
oidc_warn(r, "no refresh token stored in the session, so the access token cannot be refreshed based on "
418+
"the TTL requirement");
418419
return FALSE;
419420
}
420421

0 commit comments

Comments
 (0)