You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE.md
+12
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,24 @@
1
1
In order to efficiently and accurately address your issue or feature request, please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. Please delete any sections or questions below that do not pertain to this request.
2
2
3
+
For general support or usage questions, please use the [Auth0 Community](https://community.auth0.com/) or [Auth0 Support](https://support.auth0.com).
4
+
3
5
### Description
4
6
5
7
Description of the bug or feature request and why it's a problem. Consider including:
6
8
7
9
- The use case or overall problem you're trying to solve
8
10
- Information about when the problem started
9
11
12
+
### Prerequisites
13
+
14
+
-[ ] I have checked the [README documentation](https://github.com/auth0/angular2-jwt/blob/master/README.md).
15
+
-[ ] I have checked the [Auth0 Community](https://community.auth0.com/) for related posts.
16
+
-[ ] I have checked for related or duplicate [Issues](https://github.com/auth0/angular2-jwt
17
+
/issues) and [PRs](https://github.com/auth0/angular2-jwt
18
+
/pulls).
19
+
-[ ] I have read the [Auth0 general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md).
20
+
-[ ] I have read the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
21
+
-[ ] I am reporting this to the correct repository.
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+2
Original file line number
Diff line number
Diff line change
@@ -19,5 +19,7 @@ Please include relevant links supporting this change such as a:
19
19
20
20
### Checklist
21
21
22
+
-[ ] I have read the [Auth0 general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
23
+
-[ ] I have read the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
22
24
-[ ] All code quality tools/guidelines in the [CONTRIBUTING documentation](../CONTRIBUTING.md) have been run/followed
23
25
-[ ] All relevant assets have been compiled as directed in the [CONTRIBUTING documentation](../CONTRIBUTING.md), if applicable
### **NOTE:** This library is now at version 3 and is published on npm as `@auth0/angular-jwt`. If you're looking for the pre-v1.0 version of this library, it can be found in the `pre-v1.0` branch and on npm as `angular2-jwt`.
6
+
7
+
**@auth0/angular-jwt v3 is to be used with Angular v6+ and RxJS v6+. For Angular v4.3 to v5+, use @auth0/angular-jwt v1**
8
+
9
+
This library provides an `HttpInterceptor` which automatically attaches a [JSON Web Token](https://jwt.io) to `HttpClient` requests.
10
+
11
+
This library does not have any functionality for (or opinion about) implementing user authentication and retrieving JWTs to begin with. Those details will vary depending on your setup, but in most cases, you will use a regular HTTP request to authenticate your users and then save their JWTs in local storage or in a cookie if successful.
12
+
13
+
> **Note:** This library can only be used with Angular 4.3 and higher because it relies on an `HttpInterceptor` from Angular's `HttpClient`. This feature is not available on lower versions.
4
14
5
15
## Installation
6
16
7
17
```bash
8
18
# installation with npm
9
-
npm install @avatsaev/angular-jwt
19
+
npm install @auth0/angular-jwt
10
20
11
21
# installation with yarn
12
-
yarn add @avatsaev/angular-jwt
22
+
yarn add @auth0/angular-jwt
13
23
```
14
24
15
25
## Usage: Standalone
@@ -19,7 +29,7 @@ injectable features, you can simply create an instance of the utility and use it
Authenticated requests should only be sent to domains you know and trust. Many applications make requests to APIs from multiple domains, some of which are not controlled by the developer. Since there is no way to know what the API being called will do with the information contained in the request, it is best to not send the user's token to all APIs in a blind fashion.
99
109
100
-
List any domains you wish to allow authenticated requests to be sent to by specifying them in the the `whitelistedDomains` array. **Note that standard http port 80 and https port 443 requests don't require a port to be specified. A port is only required in the whitelisted host name if you are authenticating against a non-standard port e.g. localhost:3001**
110
+
List any domains you wish to allow authenticated requests to be sent to by specifying them in the `whitelistedDomains` array. **Note that standard http port 80 and https port 443 requests don't require a port to be specified. A port is only required in the whitelisted host name if you are authenticating against a non-standard port e.g. localhost:3001**
101
111
102
112
```ts
103
113
// ...
@@ -212,7 +222,7 @@ Import the `JWT_OPTIONS` `InjectionToken` so that you can instruct it to use you
212
222
Create a factory function and specify the options as you normally would if you were using `JwtModule.forRoot` directly. If you need to use a service in the function, list it as a parameter in the function and pass it in the `deps` array when you provide the function.
- Add authentication with [multiple authentication sources](https://auth0.com/docs/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, among others**, or enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.
336
+
- Add authentication through more traditional **[username/password databases](https://auth0.com/docs/connections/database/custom-db)**.
337
+
- Add support for **[linking different user accounts](https://auth0.com/docs/link-accounts)** with the same user.
338
+
- Support for generating signed [Json Web Tokens](https://auth0.com/docs/jwt) to call your APIs and **flow the user identity** securely.
339
+
- Analytics of how, when and where users are logging in.
340
+
- Pull data from other sources and add it to the user profile, through [JavaScript rules](https://auth0.com/docs/rules/current).
341
+
342
+
## Create a free Auth0 account
343
+
344
+
1. Go to [Auth0](https://auth0.com/signup) and click Sign Up.
345
+
2. Use Google, GitHub or Microsoft Account to login.
346
+
347
+
## Issue Reporting
348
+
349
+
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
0 commit comments