I am working on an web application. Which uses oauth to authenticate from different services.
Is there any risk of securing these tokens and secret directly into database. Or should I encrypt them ?
What are the general security pattern for saving oauth token and secret
This thread answers all of your questions:
Securly Storing OpenID identifiers and OAuth tokens
Essentially, the following are dependent among themselves one or other way:
Unless the consumer key/secret are also at risk, you don’t need to encrypt the access token/secret. The access tokens can only be used in combination with the consumer key/secret which generated them.