Giter VIP home page Giter VIP logo

curityio / spa-using-token-handler Goto Github PK

View Code? Open in Web Editor NEW
64.0 5.0 19.0 1.81 MB

API driven OpenID Connect SPA security, using only the most secure cookies in the browser

Home Page: https://curity.io/resources/learn/token-handler-overview/

License: Apache License 2.0

Dockerfile 4.32% TypeScript 53.10% Shell 34.42% CSS 0.19% HTML 0.94% JavaScript 7.04%
oauth2 spa token-handler openid-connect react code-example

spa-using-token-handler's Introduction

SPA using the Token Handler Pattern

Quality Availability

A Single Page Application (SPA) that implements OpenID Connect using recommended browser security.
The SPA uses a Backend for Frontend (BFF) approach, in line with best practices for browser based apps.
A modern evolution of Backend for Frontend is used, called the Token Handler Pattern.

Logical Components

Architecture Benefits

This provides the best separation of web and API concerns, to maintain all of the benefits of an SPA architecture:

  • Strongest Browser Security, with only SameSite=strict cookies
  • Great User Experience due to the separation of Web and API concerns
  • Productive Developer Experience with only simple security code needed in the SPA
  • Deploy Anywhere, such as to a Content Delivery Network

Run the End-to-end Flow

The SPA can be quickly run in an end-to-end flow on a development computer by following these guides:

Website Documentation

More Information

Please visit curity.io for more information about the Curity Identity Server.

spa-using-token-handler's People

Contributors

duraisamysathya avatar gary-archer avatar ju-cu avatar mtrojanowski avatar phi2039 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

spa-using-token-handler's Issues

Problem encountered calling the OAuth Agent

Mac OS, Docker Desktop (4.5.0 (74594)).
Everything done followed by instructions (https://github.com/curityio/spa-using-token-handler/blob/main/doc/Standard.md and video here - https://curity.io/resources/learn/token-handler-spa-example/), but..

Problem starts from here:
"Then browse to http://www.example.com/ and sign in with the following test user name and password:"

When I visit the link, I get:

image

My hosts file:

image

image

Looks like local hosts file is not working or something wrong with port 80.

I go to resources/docker-compose-standard.yml and change port to 8888:

image

Then I run ./deploy.sh again and ...

image

Any ideas?

Command in Financial doc fails

In the Troubleshoot section of Finance.md this command fails if the default build and deploy commands have been used.

export REVERSE_PROXY_CONTAINER_ID=$(docker container ls | grep reverse-proxy | awk '{print $1}')
docker logs -f $REVERSE_PROXY_CONTAINER_ID

The issue is grep reverse-proxy. There is no container with that name. Its is named something like spa-kong-api-gateway-1

Unable to pull the docker images

Hi all,
I am trying to run this demo but I have been getting some errors to pull the docker images.

./deploy.sh
...
Error response from daemon: pull access denied for custom_kong, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Problem encountered starting Docker components
...

What is the docker registry?

Cheers.

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.