Skip to content

Commit

Permalink
fix: copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
jannyHou committed Apr 9, 2020
1 parent 63f544b commit be50e25
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 9 deletions.
6 changes: 3 additions & 3 deletions extensions/authentication-jwt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class TestApplication extends BootMixin(
this.static('/', path.join(__dirname, '../public'));

// - enable jwt auth -
// Add security spec (To be done: refactor it to an enhancer)
// Add security spec (Future work: refactor it to an enhancer)
this.addSecuritySpec();
// Mount authentication system
this.component(AuthenticationComponent);
Expand All @@ -103,7 +103,7 @@ export class TestApplication extends BootMixin(
// Currently there is an extra function to
// merge the security spec into the application.
// This will be improved with a coming enhancer.
// See section [To Be Done](#to-be-done)
// See section [Future Work](#future-work)
addSecuritySpec(): void {
this.api({
openapi: '3.0.0',
Expand Down Expand Up @@ -184,7 +184,7 @@ The code snippet for whoAmI function:
The complete file is in
[user.controller.ts](https://github.com/strongloop/loopback-next/tree/master/extensions/authentication-jwt/src/__tests__/fixtures/controllers/user.controller.ts)

## To Be Done
## Future Work

The security specification is currently manually added in the application file.
The next step is to create an enhancer in the component to automatically bind
Expand Down
4 changes: 2 additions & 2 deletions extensions/authentication-jwt/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/extension-health
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/extension-authentication-jwt
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

Expand Down
4 changes: 2 additions & 2 deletions extensions/authentication-jwt/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/extension-health
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/extension-authentication-jwt
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

Expand Down
4 changes: 2 additions & 2 deletions extensions/authentication-jwt/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/extension-health
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/extension-authentication-jwt
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/extension-authentication-jwt
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

import {HttpErrors} from '@loopback/rest';
import {securityId} from '@loopback/security';
import {expect} from '@loopback/testlab';
Expand Down
5 changes: 5 additions & 0 deletions extensions/authentication-jwt/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/extension-authentication-jwt
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './jwt-authentication-component';
export * from './keys';
export * from './models';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/extension-authentication-jwt
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

import {registerAuthenticationStrategy} from '@loopback/authentication';
import {
Application,
Expand Down
5 changes: 5 additions & 0 deletions extensions/authentication-jwt/src/keys.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/extension-authentication-jwt
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

import {TokenService, UserService} from '@loopback/authentication';
import {BindingKey} from '@loopback/core';
import {User} from './models';
Expand Down
5 changes: 5 additions & 0 deletions extensions/authentication-jwt/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/extension-authentication-jwt
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './user-credentials.model';
export * from './user.model';
5 changes: 5 additions & 0 deletions extensions/authentication-jwt/src/repositories/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/extension-authentication-jwt
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './user-credentials.repository';
export * from './user.repository';
5 changes: 5 additions & 0 deletions extensions/authentication-jwt/src/services/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/extension-authentication-jwt
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './jwt.auth.strategy';
export * from './jwt.service';
export * from './security.spec';
Expand Down

0 comments on commit be50e25

Please sign in to comment.