auth0-training / labs-node-working-with-apis Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
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.
Go to step 2 of 2 of the code tour. Click the hyperlink at the first point, then the one at the second point.
Please provide the following:
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:
In the labs under this repo, a value of "code id_token"
is assigned to it:
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?
Hi Team,
At Step #5 of 7 (2: Configure the Web Application to Pull Expenses from the API)
the instruction is to:
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:
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:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.