Skip to content

Instantly share code, notes, and snippets.

@zaccone
Created March 13, 2014 11:25
Show Gist options
  • Save zaccone/9526677 to your computer and use it in GitHub Desktop.
Save zaccone/9526677 to your computer and use it in GitHub Desktop.
def _get_assertion_params_from_env(self, context):
prefix = CONF.federation.assertion_prefix
for k, v in context['environment'].iteritems():
if k.startswith(prefix):
yield (k, v)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment