From be50e250081967da00966617c9599567da712739 Mon Sep 17 00:00:00 2001 From: jannyHou Date: Thu, 9 Apr 2020 17:12:34 -0400 Subject: [PATCH] fix: copyright --- extensions/authentication-jwt/README.md | 6 +++--- extensions/authentication-jwt/index.d.ts | 4 ++-- extensions/authentication-jwt/index.js | 4 ++-- extensions/authentication-jwt/index.ts | 4 ++-- .../authentication-jwt/src/__tests__/unit/jwt.service.ts | 5 +++++ extensions/authentication-jwt/src/index.ts | 5 +++++ .../authentication-jwt/src/jwt-authentication-component.ts | 5 +++++ extensions/authentication-jwt/src/keys.ts | 5 +++++ extensions/authentication-jwt/src/models/index.ts | 5 +++++ extensions/authentication-jwt/src/repositories/index.ts | 5 +++++ extensions/authentication-jwt/src/services/index.ts | 5 +++++ 11 files changed, 44 insertions(+), 9 deletions(-) diff --git a/extensions/authentication-jwt/README.md b/extensions/authentication-jwt/README.md index 6f04ee8ae1a9..45a93bff8ba8 100644 --- a/extensions/authentication-jwt/README.md +++ b/extensions/authentication-jwt/README.md @@ -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); @@ -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', @@ -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 diff --git a/extensions/authentication-jwt/index.d.ts b/extensions/authentication-jwt/index.d.ts index 32733e892d9b..7506e77c9fe6 100644 --- a/extensions/authentication-jwt/index.d.ts +++ b/extensions/authentication-jwt/index.d.ts @@ -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 diff --git a/extensions/authentication-jwt/index.js b/extensions/authentication-jwt/index.js index edfea480527e..8b6848eee96b 100644 --- a/extensions/authentication-jwt/index.js +++ b/extensions/authentication-jwt/index.js @@ -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 diff --git a/extensions/authentication-jwt/index.ts b/extensions/authentication-jwt/index.ts index 217ffb985feb..c7799dce1b24 100644 --- a/extensions/authentication-jwt/index.ts +++ b/extensions/authentication-jwt/index.ts @@ -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 diff --git a/extensions/authentication-jwt/src/__tests__/unit/jwt.service.ts b/extensions/authentication-jwt/src/__tests__/unit/jwt.service.ts index 231fceb7437c..5d40e0adad34 100644 --- a/extensions/authentication-jwt/src/__tests__/unit/jwt.service.ts +++ b/extensions/authentication-jwt/src/__tests__/unit/jwt.service.ts @@ -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'; diff --git a/extensions/authentication-jwt/src/index.ts b/extensions/authentication-jwt/src/index.ts index be6d18e9e8c1..8e07d02f8d24 100644 --- a/extensions/authentication-jwt/src/index.ts +++ b/extensions/authentication-jwt/src/index.ts @@ -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'; diff --git a/extensions/authentication-jwt/src/jwt-authentication-component.ts b/extensions/authentication-jwt/src/jwt-authentication-component.ts index 1ee3c5fc86a5..8ca4593ba2eb 100644 --- a/extensions/authentication-jwt/src/jwt-authentication-component.ts +++ b/extensions/authentication-jwt/src/jwt-authentication-component.ts @@ -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, diff --git a/extensions/authentication-jwt/src/keys.ts b/extensions/authentication-jwt/src/keys.ts index 96d6793751f5..e2b399fa0ca3 100644 --- a/extensions/authentication-jwt/src/keys.ts +++ b/extensions/authentication-jwt/src/keys.ts @@ -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'; diff --git a/extensions/authentication-jwt/src/models/index.ts b/extensions/authentication-jwt/src/models/index.ts index bdc0afd3e7c1..87f489e88cfa 100644 --- a/extensions/authentication-jwt/src/models/index.ts +++ b/extensions/authentication-jwt/src/models/index.ts @@ -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'; diff --git a/extensions/authentication-jwt/src/repositories/index.ts b/extensions/authentication-jwt/src/repositories/index.ts index 7041ea28ec98..ec84dbc609f2 100644 --- a/extensions/authentication-jwt/src/repositories/index.ts +++ b/extensions/authentication-jwt/src/repositories/index.ts @@ -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'; diff --git a/extensions/authentication-jwt/src/services/index.ts b/extensions/authentication-jwt/src/services/index.ts index 28e6f6a0597b..9586e8f1ae37 100644 --- a/extensions/authentication-jwt/src/services/index.ts +++ b/extensions/authentication-jwt/src/services/index.ts @@ -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';