Skip to content

Commit

Permalink
Merge pull request #38 from mattboehm/sso-fix
Browse files Browse the repository at this point in the history
Update sso plugin to set ckanext-ldap-user
  • Loading branch information
tanderegg committed Feb 14, 2017
2 parents a89b017 + 4f68174 commit 1e2f649
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckanext/cfpb_extrafields/plugin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from ckan.lib.helpers import flash_error
import ckan.plugins as p
import ckan.plugins.toolkit as tk
import pylons
import validators as v
import options as opts
import datastore_actions as ds
Expand Down Expand Up @@ -531,6 +532,7 @@ def identify(self):
header_name = tk.config.get("ckanext.cfpb_sso.http_header", "From")
username = tk.request.headers.get(header_name)
if username:
pylons.session["ckanext-ldap-user"] = username
tk.c.user = username

class ExportPlugin(p.SingletonPlugin):
Expand Down

0 comments on commit 1e2f649

Please sign in to comment.