Code Monkey home page Code Monkey logo

shibboleth-survey's Introduction

Shibboleth-Survey-Auth - Redcap External Module

What does it do?

A simple Redcap external module to force the user to login prior to responding on a survey; optionally, you can verify that they are on the allow list as well. This module will work with any login method that sets a PHP-accessible header value (i.e. something in $_SERVER like HTTP_REMOTE_USER). This is usually Shibboleth, but other login methods may function similarly. Typically on a Redcap instance using some SSO solution all traffic is directed to the SSO sign-on page with the exception of end points like /api/* and /surveys/* so that they maybe accessed by everyone. When this EM is enabled all traffic to the project's surveys are redirected to a dummy loign page that is not behind the api or survey endpoints. This redirect forces a login to occur, after which the user is then directed to the typical survey page. Review system level config prior to using.

Installing

You can install the module by droping it directly in your modules folder (i.e. /modules/shibboleth_survey_auth_v1.0.0).

System-Level Configuration

  • Grace Period - The length of time to allow the login to be valid. By default this is 15 minutes. This time is checked when any page initally loads, including the completion page.
  • Header Field - Location in the $_SERVER array where your SSO solution stashes the username. Probably identical to the shibboleth configuration set for your Redcap instance.

shibboleth-survey's People

Contributors

aanunez avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.