The Tools We Use For Ampersand
  • Introduction
  • Tools used in the Ampersand project
  • Version control with Git
  • How to release an Ampersand upgrade
  • Documenting with GitBook
    • Getting started with GitBook
    • Do's and Dont's in Ampersand documentation
  • Building
    • Building an Ampersand Compiler with Stack
    • Baking a Docker image that contains the Ampersand Compiler
    • Testing with Docker on your own laptop
    • Automated builds
  • Prototype framework
  • Automation of releasing (CI/CD)
    • Github packages
  • Installation of RAP
    • Deploying to your own laptop
    • Deploying RAP4 in the Azure cloud
    • Deploying OUNL RAP4
    • Maintaining RAP4
    • Making Docker images
    • Deployment Configuration
    • Details
  • Functionality of RAP4
    • Student
    • Tutor
    • Account Manager
    • Graduate Student
  • Deploying with Kubernetes
  • Authentication and access management with OAuth
  • Ampersand language support
  • Group 1
    • Development using VS Code
Powered by GitBook
On this page
  • Setting up with Github as access provider
  • Experimenting from a laptop
Export as PDF

Authentication and access management with OAuth

PreviousDeploying with KubernetesNextAmpersand language support

Last updated 4 years ago

An Ampersand application may grant access to named users. We have done this before using the (Open Authorization). This allows access to specific private data on a different website, without requiring the user to hand over their credentials (e.g. username/password).

Setting up with Github as access provider

I made a separate Github organization, RAP-OUNL, to serve as access provider for RAP4.

callback URL:

Experimenting from a laptop

For experimentation purposes, I added the following line to C:\Windows\System32\drivers\etc on my Windows 7 laptop.

127.0.0.1 example.com

Then I flushed the local name server in a command line window.

C:\> ipconfig /flushdns

Then I brought up a browser window, to see that example.com is a valid URL. Now I can experiment with OUauth from the laptop, because the OAuth server can return messages to example.com.

open standard OAuth
http://example.com/AmpersandPrototypes/RAP4/api/v1/oauthlogin/callback/github