useridentity-middleware
v2.0.1
Published
An express middlware to provide user information and authentication/authorization information
Downloads
6
Keywords
Readme
UserIdentity middleware
An express middlware to provide user information and authentication/authorization information
Default configuration
{
id_token: 'x-user-id-token',
authServiceName: 'auth'
}
#example data
req.userData() =
{ iat: '1491807120',
iss: 'http://localhost:8080',
email: '[email protected]',
sid: '2cf16539-fa48-4f8b-889e-6afd3fe78e0a',
sub: '[email protected]',
exp: '1491814320',
at_hash: 'x6lnVF6XfZ5TjsWyuwDSGw',
phoneno: 'userdata: NULL',
aud: 'oidcCLIENT',
nonce: 'f223ede1e35935f58c65be23aa7422f1',
username: '[email protected]' }