java - why we are storing the client secret as plain text in database in spring OAuth 2.0? -


i new guy spring oauth 2.0. use "client credentials" grant type our resource server .while implementing type not sure maintaining "client id" , "client secret" plain text in databases. hack these client id , client secret , may miss use these if store client secret plain text.

can 1 please let know whether there way keep these values "client id" , "client secret" in encrypted format?.

is there default option available in spring oauth 2.0 encode , decode it?

please let usknow there specific reason store client secret plain text?

thanks,

you must not save client secret plain text. client secret must not decryptable. use org.springframework.security.crypto.bcrypt.bcryptpasswordencoder , encrypt client secret using bcrypt algorithm.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -