Giter Club home page Giter Club logo

api_express_javascript_hello-world's People

Contributors

byron-okta avatar

Stargazers

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

Watchers

 avatar

api_express_javascript_hello-world's Issues

[docs] considerations for potentially better tutorial clarity

1. Github instructions: In the very first section which reads Start by cloning the api_express_javascript_hello-world repository on its starter branch: it would be helpful to make tutorial language more explicitly highlight git checkout staging after cloning (which drop student into main). Student will see unfamiliar errors if they have not checked out staging branch when the execute npm run dev command further on.

2. API setup instructions: The tutorial provides https://hello-world.example.com with an explicit COPY button, but if user uses this in their Auth0 Mgmt console, they may get initial error stating "you don't have access to this URL". This happened to me, not sure why (perhaps this some kind of serverless cacheing issue?). On my second try, I was able to get this working with this URL from the tutorial: https://hello-world.example.com

4. API setup instructions: After successfully creating the API, the user is brought to the Quickstart page on the Auth0 management console -- that gives instructions that should be ignored, yet the tutorial is silent on what to do (if anything) with instructions on this page

1. Choose a JWT library
As your API will be parsing JWT formatted access tokens, you will need to setup these capabilities on your API.
You can navigate to jwt.io and choose from there. Remember to pick a library that support your selected signing algorithm.

2. Configuring your API to accept RS256 signed tokens
Configure the library that will validate the access tokens in your API. Validating a token means that you are certain you can trust its contents.

These instructions direct the user to install yet another npm library that is referenced at yet another page: https://jwt.io/libraries?language=Node.js. which is confusing. Should the user install one of these libraries as suggested, or ignore them? Tutorial should clearly state what to do -- I ignored this quickstart page, and was able to complete the tutorial successfully, but it's not a confidence building exercise to read and then ignore instructions.

5. Get the Auth0 domain: my company domain does not follow the exact pattern of tenant-name.region.auth0.com listed in the tutorial (it does not have "region" element...). Recommend Auth0 move the blue box in tutorial that is just below where the user pastes in their domain, to just a few lines above -- perhaps above the step that starts with: Paste the Auth0 domain value.... which would be more helpful to the new reader.

6. PORT env var. The env var name PORT is very common, used by other apps, and will likely already be used in user env for other projects. If the user follows the tutorial and does not check existing env vars, they will get this strange error if PORT is already defined to another number, and their Auth0 tutorial webserver is running: curl: (7) Failed to connect to localhost port 6060 after 0 ms: Connection refused. They may think there is a mistake with their tutorial or setup.


To avoid conflicts and confusion with a new env value for PORT - recommend Auth0 refactor this PORT var name to something unique like PORT_AUTH0_API_DEMO across all files, so there is no conflict. I was going to do a branch, but thought for a simple fix, maybe easier for maintainer to search/replace.

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.