Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/auth security #3590

Merged
merged 2 commits into from Aug 27, 2019
Merged

Refactor/auth security #3590

merged 2 commits into from Aug 27, 2019

Conversation

jannyHou
Copy link
Contributor

@jannyHou jannyHou commented Aug 21, 2019

A follow-up PR to update @loopback/authentication and @loopback/authorization to depend on @loopback/security

Tasks:

  • @loopback/authentication depends on @loopback/security
  • @loopback/authorization depends on @loopback/security
  • Docs update

Checklist

馃憠 Read and sign the CLA (Contributor License Agreement) 馃憟

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

馃憠 Check out how to submit a PR 馃憟

@jannyHou jannyHou changed the title Refactor/auth security [WIP]Refactor/auth security Aug 21, 2019
export const CURRENT_USER = BindingKey.create<UserProfile | undefined>(
'authentication.currentUser',
);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep AuthenticationBindings.CURRENT_USER as an alias to SecurityBinding.CURRENT_USER:

export const CURRENT_USER = SecurityBindings.CURRENT_USER;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jannyHou ^^^

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raymondfeng sure, added it.

@@ -13,6 +12,7 @@ import {
authorize,
Authorizer,
} from '../..';
import {SecurityBindings, securityId} from '../../../../security';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This need to be fixed to use @loopback/security.

@jannyHou jannyHou changed the title [WIP]Refactor/auth security [missing doc]Refactor/auth security Aug 22, 2019
@jannyHou jannyHou force-pushed the refactor/auth-security branch 2 times, most recently from b20c568 to 07a9c58 Compare August 26, 2019 15:00
@jannyHou jannyHou changed the title [missing doc]Refactor/auth security Refactor/auth security Aug 26, 2019
@jannyHou jannyHou merged commit 2be7e67 into master Aug 27, 2019
@jannyHou jannyHou deleted the refactor/auth-security branch August 27, 2019 14:19
jannyHou added a commit that referenced this pull request Sep 5, 2019
BREAKING CHANGE: PR#3590 rewrote type UserProfile, add the missing
breaking change tag here to amend the one in #3590
jannyHou added a commit that referenced this pull request Sep 5, 2019
BREAKING CHANGE: PR #3590 rewrote type UserProfile, add the missing
breaking change tag here to amend the one in #3590
jannyHou added a commit that referenced this pull request Sep 5, 2019
BREAKING CHANGE: PR #3590 rewrote type UserProfile, add the missing
breaking change tag here to amend the one in #3590
jannyHou added a commit that referenced this pull request Sep 5, 2019
BREAKING CHANGE: PR #3590 rewrote type UserProfile, add the missing
breaking change tag here to amend the one in #3590
jannyHou added a commit that referenced this pull request Sep 6, 2019
BREAKING CHANGE: PR #3590 rewrote type UserProfile, add the missing
breaking change tag here to amend the one in #3590
jannyHou added a commit that referenced this pull request Sep 6, 2019
BREAKING CHANGE: PR #3590 rewrote type UserProfile, add the missing
breaking change tag here to amend the one in #3590
jannyHou added a commit that referenced this pull request Sep 6, 2019
BREAKING CHANGE: PR #3590 rewrote type UserProfile, add the missing
breaking change tag here to amend the one in #3590
jannyHou added a commit that referenced this pull request Sep 6, 2019
BREAKING CHANGE: PR #3590 rewrote type UserProfile, add the missing
breaking change tag here to amend the one in #3590
jannyHou added a commit that referenced this pull request Sep 6, 2019
BREAKING CHANGE: PR #3590 rewrote type UserProfile, add the missing
breaking change tag here to amend the one in #3590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants