Giter Site home page Giter Site logo

oauth2's Introduction

OAuth2

  Knowledge of this code flow is important to understand how to correctly authorise an OAuth 2 connection.
  Details are found here: https://oauth.net/2/pkce/

flowchart outlining the authentication process using OAuth2.0 and PKCE security image

Methods

  • getStudentEvents
  • getSchoolCalendar
  • getParentNotifications
  • setAcknowledgeParentNotification
  • getParentDeepLinkURL
  • getStudents
  • getStudentEDiary
  • getCalendarCategories
  • GetSchoolCampuses
  • getSchoolYearGroups
  • GetPublicCalendar

TASS API Gateway Setup

  • Application ID
  • Application Name
  • Login Title
  • Authorisation Title
  • Redirect URI

URLs required to authenticate and authorise the OAuth 2 connection

  • Core URLs required for base functionality:

    • Authorize: https://{site's domain}/tassweb/api/parent/oauth/authorize/index.cfm
    • Token: https://{site's domain}/tassweb/api/parent/oauth/token/index.cfm
  • Utility URLs (Using a combination of these URLs desirable to provide standard OAuth behaviour):

    • Introspect: https://{site's domain}/tassweb/api/parent/oauth/introspect/index.cfm
    • Logout: https://{site's domain}/tassweb/api/parent/oauth/logout/index.cfm
    • Revoke: https://{site's domain}/tassweb/api/parent/oauth/revoke/index.cfm
    • Userinfo: https://{site's domain}/tassweb/api/parent/oauth/userinfo/index.cfm
  • Core URLs required for base functionality:

    • Callback (optional): https://{site's domain}/tassweb/api/parent/oauth/callback/index.cfm
    • Verify (optional): https://{site's domain}/tassweb/api/parent/oauth/verify/index.cfm
  • Additional information regarding implementation:

    • Authorisation Type: OAuth 2.0 "authorization code flow"
    • Add Authorization Data to: Request Headers
    • Header Prefix: Bearer
    • Grant Type: Authorization Code (with PKCE)
  • Example of an Authorisation request:

    • Client ID: (TASS OAuth Application ID) (eg.tasslogintest)
    • Client Secret: none
    • Code Challenge Method: SHA-256
    • Scope: See “OAuth 2 Scope” section of the spec.
    • State: (user defined) ( not required , but recommended ) (Possible “testchangestate” for testing)

Postman - Authorization - Configuration Options Setup

  • Type: OAuth 2.0
  • Header Prefix: Bearer
  • Callback URL: same as "Redirect URI" from TASS Setup
  • Client ID: same as "Application ID" from TASS Setup
  • Scope: include all in the "Scopes" list, student_events, school_calendar, ...

Scopes

  Knowledge of the “scope” is required to determine what data is returned to the API based on “permission based” data points.  

  OAuth2 “scope” would need to be passed as a list of the endpoints you would like the parent / app to have access to. Using this list we will present the parent with a brief description of the information the app would have access to and once they have authenticated and authorised the app to have access, only the included scopes would be available as endpoint calls when using the access_token provided.

  These are user defined and outlined below.

  Details are found here: https://oauth.net/2/scope/

oauth2's People

Contributors

tassweb-fang avatar bradftass avatar tassweb-talon avatar audrey357 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.