1 from ..overrides import override
2 from ..importer import modules
3 from gi.repository import GObject
5 Signon = modules['Signon']._introspection_module
10 __gtype__ = GObject.type_from_name('GStrv')
12 class AuthSession(Signon.AuthSession):
14 # Convert list of strings into a GStrv
15 def process(self, session_data, mechanism, callback, userdata):
17 for (key, value) in session_data.items():
18 if isinstance(value, list):
19 cleaned_data[key] = GStrv(value)
21 cleaned_data[key] = value
22 Signon.AuthSession.process(self, cleaned_data, mechanism, callback, userdata)
24 AuthSession = override(AuthSession)
25 __all__.append('AuthSession')