Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:dev:add_authentication_method [2017/12/08 14:03]
apeterova fixed links
tutorial:dev:add_authentication_method [2021/01/19 14:15] (current)
apeterova fixme - validate
Line 76: Line 76:
  
 Now you must add the main thing - the implementation of the method ''public LoginDto authenticate(LoginDto loginDto)''. Now you must add the main thing - the implementation of the method ''public LoginDto authenticate(LoginDto loginDto)''.
 +
 +FIXME Since 10.7, the method validate should be also implemented.
  
 The [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/security/api/dto/LoginDto.java|LoginDto]] input parameter contains username and password filled by the user. Note that the password is of the type [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/security/api/domain/GuardedString.java|GuardedString]]. When you want to get the real string value of the password, use the method ''asString()'', but be sure you don't write this value anywhere in plaintext (particularly not in the log)! The [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/security/api/dto/LoginDto.java|LoginDto]] input parameter contains username and password filled by the user. Note that the password is of the type [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/security/api/domain/GuardedString.java|GuardedString]]. When you want to get the real string value of the password, use the method ''asString()'', but be sure you don't write this value anywhere in plaintext (particularly not in the log)!
  • by apeterova