-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update tutorial on creating/registering a custom authentication strategy in LoopBack 4 #3876
Conversation
Updated the |
Now I need to add a new section describing the steps we took in PR loopbackio/loopback4-example-shopping#301 to make the |
f9f8ed7
to
950b659
Compare
2b939e9
to
e335c21
Compare
Added a new section: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good writeup 👍
c762f37
to
f352c78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've read the instruction but haven't tried it yet.
@@ -79,11 +79,11 @@ application, follow these steps: | |||
Try http://[::1]:3000/ping | |||
``` | |||
|
|||
2. In a browser, navigate to [http://[::1]:3000](http://127.0.0.1:3000) or | |||
1. In a browser, navigate to [http://[::1]:3000](http://127.0.0.1:3000) or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- In the "view file", the number is correct, but maybe we should use the right numbering?
- another nitpick: do we want to point user directly to API Explorer URL http://127.0.0.1:3000/explorer, instead of go to the root and click explorer. No strong opinion, just think this might be simpler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the "view file", the number is correct, but maybe we should use the right numbering?
I noticed that for numbered lists
in MD format, you can specify 1.
every time
so that is automatically renumbers for you. See https://www.markdownguide.org/basic-syntax/#ordered-lists .
Otherwise, we have to keep the numbering in proper order ourselves. Making them all 1.
saves us the hassle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another nitpick: do we want to point user directly to API Explorer URL http://127.0.0.1:3000/explorer, instead of go to the root and click explorer. No strong opinion, just think this might be simpler.
I guess I wanted them to see this screen:
also, when they execute : npm start
is outputs
which tells them the server is starting at localhost:3000 ; and some users expect a home page for the server at that address.
I guess I wanted to show them there is a home screen, and they have two links to choose from.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ @dhmlau
f352c78
to
ea4ecee
Compare
succeeds, the | ||
[user profile](https://github.com/strongloop/loopback-next/blob/master/packages/authentication/src/types.ts) | ||
1. Scroll to the top of the API Explorer, and you should see an `Authorize` | ||
button. This the place where you can set the JWT token. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: This
--> This is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the authentication tutorial with OpenAPI specification security scheme/requirement object declarations in order to enable the 'Authorize' button/dialog functionality in the API Explorer.
ea4ecee
to
4a67c48
Compare
Need to update this tutorial to make use of 'Authorize' button in API Explorer.
This capability was added by specifying certain
OpenAPI security scheme settings
inthe shopping cart application (see PR loopbackio/loopback4-example-shopping#301).
Instead of using a REST client application to interact with endpoints that need a JWT token to be passed in an Authorization header in a request, the user can now use the API Explorer to do this.
Connected to #3740
Checklist
👉 Read and sign the CLA (Contributor License Agreement) 👈
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated👉 Check out how to submit a PR 👈