Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Commit

Permalink
document defaults for securely storing api tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Jan 13, 2015
1 parent ff7941c commit bd1596a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,14 @@ use Warden::Manager do |config|
:client_secret => 'barfoo',
:scope => 'user,repo',
:redirect_uri => '/admin/oauth/callback' }

config.serialize_from_session { |key| Warden::GitHub::Verifier.load(key) }
config.serialize_into_session { |user| Warden::GitHub::Verifier.dump(user) }
end
```

The two serialization methods store the API token in the session securely via the `WARDEN_GITHUB_VERIFIER_SECRET` environmental variable.

### Parameters

The config parameters and their defaults are listed below.
Expand Down

0 comments on commit bd1596a

Please sign in to comment.