CKAN: custom authentication but with default session handling -
CKAN: custom authentication but with default session handling -
what direct approach implement hook ckan login mechanism, allows 1 define user log in based on apache environment headers instead of validating username/password.
when writing plugin implements ckan.plugins.iauthenticator
class requires both login()
, identify()
method. 1 has define way of keeping track of user.
however, want check whether trusted info (shibboleth environment variables) available , log in corresponding user, in effect bypassing login form, leaving session handling ckan internals.
can write iauthenticator
plugin identify()
method looks these environment variables, , if don't need login()
method leave blank?
def login(self): pass
i think should work. ckan calls identify()
1 time each request decide user loggged in. calls login()
1 time each time login form submitted.
apart identify()
check on each request, rest of ckan's session handling go on work normal plugin.
authentication ckan
Comments
Post a Comment