forked from steemit/condenser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
518 secure server session (steemit#823)
* Adds authentication proof for server. (close steemit#518) * Rename fromm koa-crypto-session to crypto-session * some more merging updates.. * make sure logged in account is used in notifications * remove config.login_challenge_description * depricate login_challenge call; don't call login_account if already logged in * Sign login challenge with posting key only (active commented out). steemit#518 * remove active verification from session.auth (probably temp) * Fix challenge string sigining. * remove some debug output * remove some commented out code * remove session.auth, use session.login_challenge instead, pass login_challenge as single token * Small login challenge data-structure fix. * Notifications api warning if not logged in. * Notifications api warning if not logged in. * Adjust notification api warning if not logged in * should make it call /login_account even if page wasn't refreshed after logout * small code rearrangment
- Loading branch information
Valentine Zavgorodnev
authored
Dec 9, 2016
1 parent
8c0f1cb
commit 611370f
Showing
11 changed files
with
108 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import Immutable from 'immutable'; | ||
import createModule from 'redux-modules'; | ||
import {PropTypes} from 'react'; | ||
|
||
const {string, object, shape, oneOf} = PropTypes; | ||
const defaultState = Immutable.fromJS({user: {}}); | ||
|
||
export default createModule({ | ||
name: 'offchain', | ||
initialState: defaultState, | ||
transformations: [] | ||
}); | ||
export default function reducer(state = defaultState, action) { | ||
if (action.type === 'user/SAVE_LOGIN_CONFIRM') { | ||
if (!action.payload) { | ||
state = state.set('account', null); | ||
} | ||
} | ||
return state; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
] | ||
} | ||
}, | ||
"server_session_secret": "", | ||
"helmet": {}, | ||
"registrar": { | ||
"account": "-", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters