GithubHelp home page GithubHelp logo

michaelawyu / auth-server-sample Goto Github PK

View Code? Open in Web Editor NEW
79.0 79.0 46.0 400 KB

Samples for Understanding OAuth2 and Building a Basic Authorization Server of Your Own Beginner's Guide

License: Apache License 2.0

Python 54.29% HTML 7.16% JavaScript 38.55%

auth-server-sample's People

Contributors

michaelawyu 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

auth-server-sample's Issues

oauth2 server setup

How i can setup oauth2 on our server, after that I can use this sample code.

I am going to create basic authentication with use of oauth2.0. Please suggest the step which i need to do here and some integration url and command

Issues with GCF/index.md

  1. Deploy command should be --trigger-http and --runtime=nodejs14 (or swap 14 for more recent version). When deploying need to agree to authorised access to the function.

  2. The property with ac-enabled should have client-id as sample-ac-client (not a repeat of sample-ropc-client) and have the client-secret property set

  3. The sample-acpkce-client has https://www.google.com as its client-secret value instead of sample-client-secret.

  4. The POST commands should have the url in double quotes (at least for windows)

  5. PKCE example: Verifier is mis-spelt as verfier.

  6. Resource Owner example: username=sample-user not sample-username.

  7. PUG file needs updating with GCP region and project values before deployment.

  8. To generate pem key files you can use openssl on command line as:

openssl genrsa -aes256 -out priv.pem 4096
openssl rsa -in priv.pem -pubout > public.pem
openssl rsa -in priv.pem -out private.pem

Last step is needed to remove passphrase which will cause tutorial to fail.

Issues with tutorial

I found this code after reading Understanding OAuth2 and Deploying a Basic Authorization Service to Cloud Functions tutorial. I wanted to bring two items to your attention with the tutorial:

  1. "Download the code here" redirects to https://cloud.google.com/code and returns a 404 error
  2. The tutorial currently contains this content:

screen shot 2018-08-20 at 11 33 21 am

You write that implicit and client credentials are reserved for special clients, and then also reference implicit and client credentials as the flows that "other clients" can use. Is this a typo? Should it instead be something like:
Highly trusted apps -> Resource Owner Password Credentials
Less trusted apps -> Authorization Code

Thank you for the tutorial.

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.