@@ -163,7 +163,7 @@ component accessors="true" singleton threadsafe {
163
163
/**
164
164
* Logout a user and invalidate their access token
165
165
*
166
- * @user
166
+ * @user
167
167
* @customClaims
168
168
*/
169
169
function logout (){
@@ -245,7 +245,7 @@ component accessors="true" singleton threadsafe {
245
245
// Verify it
246
246
if ( isNull ( oUser ) || ! len ( oUser .getId () ) ) {
247
247
// Announce the invalid user
248
- variables .interceptorService .processState (
248
+ variables .interceptorService .announce (
249
249
" cbSecurity_onJWTInvalidUser" ,
250
250
{ payload : arguments .payload }
251
251
);
@@ -261,7 +261,7 @@ component accessors="true" singleton threadsafe {
261
261
.setPrivateValue ( variables .settings .authentication .prcUserVariable , oUser );
262
262
263
263
// Announce the valid authentication
264
- variables .interceptorService .processState (
264
+ variables .interceptorService .announce (
265
265
" cbSecurity_onJWTValidAuthentication" ,
266
266
{ payload : arguments .payload , user : oUser }
267
267
);
@@ -289,7 +289,7 @@ component accessors="true" singleton threadsafe {
289
289
var results = getTokenStorage ().clear ( this .decode ( arguments .token ).jti );
290
290
291
291
// Announce the token invalidation
292
- variables .interceptorService .processState ( " cbSecurity_onJWTInvalidation" , { token : arguments .token } );
292
+ variables .interceptorService .announce ( " cbSecurity_onJWTInvalidation" , { token : arguments .token } );
293
293
294
294
return results ;
295
295
}
@@ -313,7 +313,7 @@ component accessors="true" singleton threadsafe {
313
313
getTokenStorage ().clearAll ( arguments .async );
314
314
315
315
// Announce the token invalidation
316
- variables .interceptorService .processState ( " cbSecurity_onJWTInvalidateAllTokens" );
316
+ variables .interceptorService .announce ( " cbSecurity_onJWTInvalidateAllTokens" );
317
317
318
318
if ( variables .log .canInfo () ) {
319
319
variables .log .info ( " All tokens cleared via token storage clear all" );
@@ -442,7 +442,7 @@ component accessors="true" singleton threadsafe {
442
442
}
443
443
444
444
// Announce the invalid claims
445
- variables .interceptorService .processState (
445
+ variables .interceptorService .announce (
446
446
" cbSecurity_onJWTInvalidClaims" ,
447
447
{ token : arguments .token , payload : decodedToken }
448
448
);
@@ -463,7 +463,7 @@ component accessors="true" singleton threadsafe {
463
463
}
464
464
465
465
// Announce the token expiration
466
- variables .interceptorService .processState (
466
+ variables .interceptorService .announce (
467
467
" cbSecurity_onJWTExpiration" ,
468
468
{ token : arguments .token , payload : decodedToken }
469
469
);
@@ -478,7 +478,7 @@ component accessors="true" singleton threadsafe {
478
478
}
479
479
480
480
// Announce the rejection, token not found in storage
481
- variables .interceptorService .processState (
481
+ variables .interceptorService .announce (
482
482
" cbSecurity_onJWTStorageRejection" ,
483
483
{ token : arguments .token , payload : decodedToken }
484
484
);
@@ -507,7 +507,7 @@ component accessors="true" singleton threadsafe {
507
507
.setPrivateValue ( " jwt_payload" , decodedToken );
508
508
509
509
// Announce the valid parsing
510
- variables .interceptorService .processState (
510
+ variables .interceptorService .announce (
511
511
" cbSecurity_onJWTValidParsing" ,
512
512
{ token : arguments .token , payload : decodedToken }
513
513
);
@@ -635,7 +635,7 @@ component accessors="true" singleton threadsafe {
635
635
}
636
636
637
637
// Announce the token expiration
638
- variables .interceptorService .processState ( " cbSecurity_onJWTExpiration" , { token : arguments .token } );
638
+ variables .interceptorService .announce ( " cbSecurity_onJWTExpiration" , { token : arguments .token } );
639
639
640
640
throw ( type = " TokenExpiredException" , message = " Token has expired" );
641
641
} catch ( any e ) {
@@ -789,7 +789,7 @@ component accessors="true" singleton threadsafe {
789
789
}
790
790
791
791
// Announce the creation
792
- variables .interceptorService .processState (
792
+ variables .interceptorService .announce (
793
793
" cbSecurity_onJWTCreation" ,
794
794
{
795
795
token : jwtToken ,
0 commit comments