Giter Club home page Giter Club logo

labs-node-working-with-apis's People

Contributors

eemanioui avatar jespookta avatar jesposito avatar kateharney avatar kazemicode avatar notmyself avatar xijing-zhang avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

labs-node-working-with-apis's Issues

Failure in Opening Auth0 Extension Through CLI

Description

image

When I click the hyperlink at the second point, I do not receive any feedback. I expect Auth0 extension (if any) opens and view my tenant configuration.

Reproduction

Go to step 2 of 2 of the code tour. Click the hyperlink at the first point, then the one at the second point.

Environment

Please provide the following:

  • Version of this library used: 1.1.1
  • Version of the platform or framework used, if applicable:
  • Other relevant versions (language, server software, OS, browser):
  • Other modules/plugins/libraries that might be involved:

inconsistent values

Hi Team,

As I was going through the lab under this repo and after going through the labs under this repo I couldn't help but notice a difference when it comes to handling the response_type field within the authorizationParams object that's passed as an argument to the auth middleware.

In the lab under this repo, a value of "code" is assigned to it:
image
In the labs under this repo, a value of "code id_token" is assigned to it:
image

While the value assigned to the response_type field differs from one lab to the other, both of them deal with a regular Web App that requires the Authorization Code Workflow and both of them work. My questions:

Is there any side effect to using "code" over "code id_token" or vice versa?
Which one is recommended as best practice?

Duplicate `/expenses` route

Hi Team,

At Step #5 of 7 (2: Configure the Web Application to Pull Expenses from the API) the instruction is to:

Modify the Expenses Route

Now we'll modify the "/expenses" route in a similar way. Compare the block below to what's currently in the code. As before, we're adding error handling, and defining the path to the relevant data in our Expenses API.

app.get("/expenses", requiresAuth(), async (req, res, next) => {
    try {
        const expenses = await axios.get(`${API_URL}/reports`);
        res.render("expenses", {
           user: req.oidc && req.oidc.user,
           expenses: expenses.data,
        });
    } catch (err) {
        next(err);
    }
});

โ†ช Insert Code , then continue to the next step.


However, this ends up replacing the user endpoint handler instead as it is highlighted by default:
wrong highlighted section

Please Note, I didn't highlight the /user endpoint handler in the above screenshot, it was highlight by default.

After clicking on insert code, the /user endpoint handler is replaced by the new /expenses Get handler and we end up with 2 handlers for the same GET route, like so:
duplicate routes

I even deleted the codespace lab and restarted it again and this time, I highlighted the /expenses endpoint to be replaced. However, the issue still persisted by replacing the user endpoint instead.
doesn't work even when the right endpoint is highlighted

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.