issues
search
simeonwillbanks
/
mygists
Organize Your Gists!
https://www.mygists.info
Other
13
stars
2
forks
source link
Secure OAuth Token
#25
Closed
simeonwillbanks
closed
11 years ago
simeonwillbanks
commented
11 years ago
Fixes #24
In Production, force ssl
Add MyGists::Secure with .encrypt and .decrypt class methods
Encoded token should be utf8 for PostgreSQL
Add profiles.token to persist OAuth token from GitHub
After authenticating with GitHub, save the passed back token
Only set GitHub avatar into users session
Overload Profile#token to respond with decrypted token
Remove ProfileDecorator#token, so Profile model can respond to the message
Fixes #24