Giter Club home page Giter Club logo

nodejs-rest-http-secured's Introduction

Node.js CI Coverage Status

nodejs-rest-http-secured

Quickstart to expose a REST Greeting endpoint using Node.js& Secured by Red Hat SSO

SSO Server Setup

This example requires a Red Hat SSO Server to be running. You can create one easily by using the service.sso.yaml file by running:

oc create -f service.sso.yaml

deploying the Example Application

You will need to know the Auth URL from the SSO server that was deployed in the previous step.

To deploy the example, run:

npm run openshift -- -d SSO_AUTH_SERVER_URL=<auth url from sso server>

nodejs-rest-http-secured's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

nodejs-rest-http-secured's Issues

Wrong response code when not logged in

If user invokes the greeting service and is not logged in, the service should return code 401 (Unauthenticated) instead it returns 403 (access denied).

Admin should not have access to the greeting service

The greeting service allows access to admin user.
User admin should not be authorized to use greeting service, so when invoking the service, logged in as admin, the service should return E403 (access denied).

No ID in response

Due to docs, the responses should contain ID of the request, it does not.

add license-reporter

Adding in the license-reporter module, https://github.com/bucharest-gold/license-reporter

pacakge.json - Probably only really 2 updates, a "postinstall" npm script that runs the license-reporter

index.js - An endpoint that exposes the created html license report

  • .gitignore the created directory
  • files property in the package.json updated with the created license directory

Update node version to 10.x

With the release of the 10.x community s2i images, we need to updated the --nodeVersion to be 10.x

Also create a branch that holds onto the 8.x versions. Not sure yet if these will continue to be updated

Once we add 10.x, we should probably make the boosters versions 2.0.0

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.