Giter Site home page Giter Site logo

franklinchen / single-sign-on-kata Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emilybache/single-sign-on-kata

0.0 3.0 0.0 1.54 MB

a kata useful for understanding Test Doubles

License: MIT License

Java 8.12% Python 9.53% Scala 5.70% C# 22.72% JavaScript 1.93% TypeScript 6.31% PHP 10.05% CMake 12.13% C++ 23.51%

single-sign-on-kata's Introduction

Single Sign On Kata

Sometimes corporate security measures can really get out of hand. You log into your machine when you arrive in the morning, then log in again to your email client, then log in again to the corporate intranet, then log in again to your project file sharing area, then log in again ... Typing your password ten times before you can actually do anything gets pretty irritating. There are various ways to solve the problem, and in this Kata we're looking at one of them.

The way it works is the first time you log in to any service, you give your username and password, and the service validates these credentials against a central registry. The Single Sign On Registry then gives you a token. Then when you want to access a different service, you give it this token instead of having to type in your username and password again. The service can then check with the Single Sign On Registry whether the token is valid, and if it is, you get seamless access. If the Single Sign On Registry doesn't recognize your token, it will notify the service and your request will be denied.

For this Kata, your job is to develop a new service, that uses the Single Sign On registry. The actual functionality of the service is simple - it says "Hello Emily!" (or whatever your name is) if your single sign on token is valid.

The starting code here is the interface for the Single Sign On Registry.

Test Doubles

This kata is useful for practicing using different kinds of test doubles. I have used it as a worked example in my book "Mocks, Fakes and Stubs"

Credits

The original design of this Kata was by Fredrik Wendt and he published it on the codingdojo.org wiki

single-sign-on-kata's People

Contributors

dependabot[bot] avatar emilybache avatar esterdanielytterbrink avatar quimcalpe avatar rojoangel avatar

Watchers

 avatar  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.