encrypted_cookie icon indicating copy to clipboard operation
encrypted_cookie copied to clipboard

Add support for runtime configuration

Open GavinJoyce opened this issue 12 years ago • 4 comments

I'm building an application which serves many domains. Each domain has its own cookie secret so I need to be able configure the Encryptor at runtime.

I've quickly modified the rack app in my branch to achieve this:

https://github.com/RestPack/encrypted_cookie/blob/master/lib/encrypted_cookie.rb

Perhaps we could include a second version of the rack application for cases where the configuration is set at runtime? Is this something that you would be interested in including in this gem? I'll work on a proper PR with specs if you are.

GavinJoyce avatar Sep 16 '13 14:09 GavinJoyce

+1

I would use that feature if available..

mkristian avatar Sep 16 '13 14:09 mkristian

@cvonkleist Is this something that you'd like in this gem? Let me know and I'll cut a PR

GavinJoyce avatar Oct 14 '13 10:10 GavinJoyce

@GavinJoyce I'm overloaded with other projects ATM, and feeling really guilty about how long it takes me to get to issues and PRs. Making you a collaborator!

cvonkleist avatar Nov 28 '13 18:11 cvonkleist

Great, thanks. I'll work on this soon.

GavinJoyce avatar Nov 28 '13 20:11 GavinJoyce