Giter Club home page Giter Club logo

fakecas's Introduction

FakeCAS

FakeCAS is a development tool that aims to ease the process of creating a CAS client by pretending to be a CAS 1.0 compliant server. This means you don’t have to setup an actual CAS server to test your client code. In addition, it gives you an easy way to play with some of the parameters that are sent back and forth between the client and the server.

Capabilities

Currently, FakeCAS supports only what I need it to, and is thus not fully CAS 1.0 compliant. It supports the following URLs and gives back a fake, randomlly generated ticket (which is probably not compliant):

  • GET /login?service=some_url - Stores the service and displays a login prompt for the user.

  • POST /login?service=some_url - Accepts the POST username parameter generated from the login page (or your own code if you prefer) and redirects to the service stored via GET /login. You can override the stored service by providing a new one as an optional parameter.

  • GET /logout?service=some_url - Clears the saved data and redirects to the requested service.

  • GET /validate?ticket=12345-67890-12345-67890 - If the ticket is found, it prints out "yes\n#{username}". Otherwise, it prints out no.

Development Plan

Currently FakeCAS does just enough to be useful to me, however I do have some plans for it.

  1. Make it look a little bit nicer by actually providing some styles for the login page.

  2. Flesh out the CAS 1.0 compatibility.

  3. Work on CAS 2.0 compatibility.

  4. Ensure it works with all versions of the CAS specification.

Contributing

If you would like to help on any of the development fronts, just fork the repo and send me a pull request. If you’re intereseted in becoming a core contributer, send me a few useful pull requests first, then contact me with how you’d like to help and I’ll put you on the team!

If you’re a designer and want to create a really great landing page for FakeCAS, contact me through Github and we’ll get things under way. I’m not much of a designer myself, so any help from a professional designer (i.e. one who makes any money from design work) would be greatly appreciated!

fakecas's People

Contributors

topherfangio avatar

Stargazers

Aaron Shim avatar Derek D Owens avatar

Watchers

 avatar James Cloos avatar

Forkers

aaronshim

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.