← Back to plugin index

Mask Token

Description
Logs an excerpt of the token. The parameters must be chosen considering the 'Token Random Part Length' in the OAuth 2.0 configuration: a larger token length may allow for a larger number of characters to be logged.

Be aware that logging token information is detrimental to security.

Type name
MaskTokenLogStrategy
Class
com.airlock.iam.oauth2.application.configuration.logging.MaskTokenLogStrategy
May be used by
Properties
Number Of Leading Characters (numberOfLeadingCharacters)
Description
Number of leading characters to log.
Attributes
Integer
Mandatory
Number Of Trailing Characters (numberOfTrailingCharacters)
Description
Number of trailing characters to log.
Attributes
Integer
Mandatory
YAML Template (with default values)

type: MaskTokenLogStrategy
id: MaskTokenLogStrategy-xxxxxx
displayName: 
comment: 
properties:
  numberOfLeadingCharacters:
  numberOfTrailingCharacters: