GithubHelp home page GithubHelp logo

k12-sso's Introduction

PHP K12 SSO

This is a php example of setting up an SSO (Single Sign-On) from Blackbaud onProducts.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. Please read the SSO Tutorial first.

Local Setup

Copy the .env.example file to a local .env and ensure all the settings are correct for your local environment, filling in the secret keys or providing their own values when necessary.

Add your application configuration to a .env file in the root of your project. Make sure the .env file is added to your .gitignore so it is not checked-in the code

Example

S3_BUCKET="dotenv"
SECRET_KEY="souper_seekret_key"

Prerequisites

  • Local Server running PHP
  • Ability to clone or download code from Github
  • Ability to create SSO in onProducts (Platform Manager role)

Anatomy of provided JWT

Properties Description
iat Issued At. The time the token was generated, this is used to help ensure that a given token gets used shortly after it's generated.
jwt JSON Web Token ID. A unique id for the token, used to prevent token replay attacks.
exp Expiration time of token ( 5 Minutes from iat )
nbf Defines the time before which the JWT MUST NOT be accepted for processing ( Set to iat )
iss The issuer of the token. ie: https://SCHOOLNAME.myschoolapp.com
aud The audience of the token. ie: The domain of the redirect url from the SSO Settings screen.
uid User Id from Profile
hid Host Id from Profile
onapi Url to get more user info. Must have API Access and valid API Token

Built With

  • JWT - JSON Web Tokens
  • Composer - Dependency Manager for PHP
  • lcobucci/jwt - A simple library to work with JSON Web Token and JSON Web Signature

k12-sso's People

Contributors

blackbaud-jakespirek avatar blackbaud-joshlyford avatar

Watchers

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