-
Notifications
You must be signed in to change notification settings - Fork 80
Readme auth #2378
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
base: master
Are you sure you want to change the base?
Readme auth #2378
Changes from 2 commits
6f34707
42e1872
c470c08
9af2fe6
9e779f0
bc96338
ccd3397
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -141,6 +141,21 @@ npm i @sourceloop/authentication-service | |||||||||||||||||||||
| - It works for almost all authentication methods provided by this service. | ||||||||||||||||||||||
| - Use `/verify-otp` to enter otp or code from authenticator app. | ||||||||||||||||||||||
| for using Google Authenticator user needs to pass client id in the payload which is optional in case for OTP | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - **Oauth- using Cognito** - | ||||||||||||||||||||||
| - Make sure you have your cognito setup over aws. You can take reference from [here](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication.html). | ||||||||||||||||||||||
| - add the below envs- | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| COGNITO_AUTH_CALLBACK_URL= \ | ||||||||||||||||||||||
| COGNITO_AUTH_CLIENT_DOMAIN=\ | ||||||||||||||||||||||
| COGNITO_AUTH_CLIENT_ID=\ | ||||||||||||||||||||||
| COGNITO_AUTH_CLIENT_SECRET=\ | ||||||||||||||||||||||
| COGNITO_AUTH_REGION= | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| COGNITO_AUTH_CALLBACK_URL refers to the API endpoint /auth/cognito-auth-redirect provided by authentication service | ||||||||||||||||||||||
| - we are using the loopback4-authentication package inside the backend service. we have setup the User, AuthClient UserCredential Models and the api /auth/cognito and /auth/cognito-auth-redirect via authentication service. You only need to bind the providers as stated in [loopback4-authentication](https://github.com/sourcefuse/loopback4-authentication) | ||||||||||||||||||||||
| - on redirecting back to the application with the code generated by the call back api , application can use that code to sent to /auth/token api to get the token for your application. | ||||||||||||||||||||||
|
||||||||||||||||||||||
| - on redirecting back to the application with the code generated by the call back api , application can use that code to sent to /auth/token api to get the token for your application. | |
| - on redirecting back to the application with the code generated by the call back api , application can use that code to send to /auth/token api to get the token for your application. |
Outdated
Copilot
AI
Dec 5, 2025
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.
Spacing error: Extra space before comma after 'api'.
| - on redirecting back to the application with the code generated by the call back api , application can use that code to sent to /auth/token api to get the token for your application. | |
| - on redirecting back to the application with the code generated by the call back api, application can use that code to sent to /auth/token api to get the token for your application. |
Copilot
AI
Dec 5, 2025
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.
Inconsistent capitalization: 'redis' should be 'Redis' to match proper noun convention.
| redis datasource - | |
| run - ```npm install loopback-connector-kv-redis --save``` | |
| ```typescript | |
| for redis, datasource example is as below | |
| Redis datasource - | |
| run - ```npm install loopback-connector-kv-redis --save``` | |
| ```typescript | |
| For Redis, datasource example is as below |
Copilot
AI
Dec 5, 2025
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.
Inconsistent capitalization and style: Should be formatted as a proper sentence, e.g., 'For Redis, the datasource example is as follows:'
| for redis, datasource example is as below | |
| For Redis, the datasource example is as follows: |
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.
Inconsistent capitalization: 'Oauth' should be 'OAuth' to match the naming convention used elsewhere in the document (see line 160).