Changeset 57dcceb in OpenWorkouts-current


Ignore:
Timestamp:
Feb 13, 2019, 1:12:57 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
eb20dc8
Parents:
c6abc0c
Message:

(#46) - Move session_factory and authn_policy salt hashes to the config/ini files

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • development.ini

    rc6abc0c r57dcceb  
    2525# '127.0.0.1' and '::1'.
    2626# debugtoolbar.hosts = 127.0.0.1 ::1
     27
     28# session and auth secret hashes (used in ow/__init__.py)
     29session.secret = V4j:DL12^Gs//ho5)V94$j"Ue"F%%wn
     30{BT]KrSx`b3pmRj<Z&e3QP|fgPGEZT@\#
     31auth.secret = l9|^@~wQoVKPQoI`GHK5M9ps@S7L:QNU?pF}.jI(9RWZVc<EM)aQv/j~l\#xC++;5
     32
    2733
    2834###
  • ow/__init__.py

    rc6abc0c r57dcceb  
    1919    """
    2020    session_factory = SignedCookieSessionFactory(
    21         'V4j:DL12^Gs//ho5)V94$j"Ue"F%wn
    22 {BT]KrSx`b3pmRj<Z&e3QP|fgPGEZT@#',
     21        secret=settings['session.secret'],
    2322        cookie_name='ow-session')
    2423
    2524    authn_policy = AuthTktAuthenticationPolicy(
    26         'l9|^@~wQoVKPQoI`GHK5M9ps@S7L:QNU?pF}.jI(9RWZVc<EM)aQv/j~l#xC++;5',
     25        secret=settings['auth.secret'],
    2726        callback=groupfinder,
    2827        hashalg='sha512')
  • production.ini

    rc6abc0c r57dcceb  
    1717
    1818retry.attempts = 3
     19
     20session.secret = SET_THIS_BEFORE_RUNNING_THE_APP
     21auth.secret = SET_THIS_BEFORE_RUNNING_THE_APP
     22
    1923
    2024###
  • staging.ini

    rc6abc0c r57dcceb  
    1717
    1818retry.attempts = 3
     19
     20session.secret = Ir%%TViNv{S%%TuzHfOXZN=4gOu5O/prD\q6As3=GEa8RujI+9f?:[:-tI&KtPWTF8
     21auth.secret = wI[/t0Pr9qQsRX?yYInT=+b_:<iySt|b/7?yjRHR5F`[E/MbsUZGtmPw&FZlIu0B
     22
    1923
    2024###
Note: See TracChangeset for help on using the changeset viewer.