<s> '''<STR_LIT>''' <EOL> from lux . core import Parameter , LuxExtension <EOL> from . backends import TokenBackend , SessionBackend <EOL> from . views import Authorization , ComingSoon <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ] <EOL> class Extension ( LuxExtension ) : <EOL> _config = [ <EOL> Parameter ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) , <EOL> Parameter ( '<STR_LIT>' , '<STR_LIT>' , <EOL> "<STR_LIT>" ) <EOL> ] <EOL> def on_config ( self , app ) : <EOL> self . require ( app , '<STR_LIT>' ) <EOL> def on_token ( self , app , request , token , user ) : <EOL> if user and user . is_authenticated ( ) : <EOL> token [ '<STR_LIT:username>' ] = user . username <EOL> token [ '<STR_LIT>' ] = user . id <EOL> token [ '<STR_LIT:name>' ] = user . full_name </s>
