Giter Club home page Giter Club logo

dalrae.cap.demo.githubauth's Introduction

About this PoC

Demonstrating a CAP application with a VUE front end that uses social login in the form of Github logon using Passport as middleware, and a custom CAP authorisation function.

To replicate

You'll need a Github oAuth app, please use this helpful document to create one. For Homepage URL, enter http://localhost:4004, and for authorisation callback URL, enter http://localhost:4004/auth/github/callback.

After that, copy the client ID, secret and callback URL into the provided .env.example and rename it to .env.

If you do not run this project under port 4004, you have to adjust the paths used in your oAuth app.

The intention

The intention of this proof of concept is to prove that custom authentication works and that CAP can integrate with practical and production ready authorisation platforms other than XSUAA.

This app demonstrates that, if the Github session cookie is not present, all actions on the CAP service are rejected with a 401. Once the oAuth dance is completed, the user can proceed.

Disclaimer

This app does not store any user information, nor is any information about you collected. It is a local project only for development and demonstration purposes.

dalrae.cap.demo.githubauth's People

Contributors

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