Skip to content
This repository has been archived by the owner on Mar 13, 2020. It is now read-only.

Labs/passport adapter #6

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3a1a978
fix: include user and token service interfaces in index.ts
emonddr May 12, 2019
bf60011
feat: add lb3 application
nabdelgadir Apr 26, 2019
bd0c450
chore: fix vulnerability
jannyHou May 13, 2019
a956d86
refactor(rest-explorer): improve test names
bajtos May 14, 2019
90ab9ce
chore: publish release
May 14, 2019
6fe956e
chore: add agnes' info into README
May 14, 2019
b87f0be
chore(context): improve test coverage for interception proxy
raymondfeng May 14, 2019
fe22f82
refactor: recover tests for auth action
jannyHou May 9, 2019
198af88
feat(context): leave local bindings and parent unchanged during close
raymondfeng May 11, 2019
e629558
chore(testlab): update @types/fs-extra dependency
raymondfeng May 14, 2019
433337b
docs: add stub service section
May 13, 2019
b5ea915
docs: rework note on top down approach
May 15, 2019
224f446
fix(docs): add life cycle observer cli to sidebar
dhmlau May 15, 2019
eeab36c
docs: fix lb4 graphQL tutorial steps
May 15, 2019
ba65261
chore(context): use name comparator consistently
raymondfeng May 17, 2019
07575ec
chore: update name of the repo
raymondfeng Apr 29, 2019
1eb8801
chore: update package-lock.json
raymondfeng May 13, 2019
554dd1c
chore: set up experimental folder and add initial doc
raymondfeng May 13, 2019
f08d325
chore: add experimental/*/dist to .gitignore
raymondfeng May 13, 2019
8bfe0b8
chore: update LABS.md
raymondfeng May 13, 2019
b21c12c
chore: remove bajtos from CODEOWNERS
bajtos May 14, 2019
3fa0bfc
feat: add passport adapter
jannyHou May 10, 2019
ebbce4a
docs: dummy package for spike
jannyHou May 10, 2019
4378e37
chore: update packages
jannyHou May 10, 2019
a2c4696
chore: move the package to experimental folder
jannyHou May 17, 2019
4c2c182
fixup!: fix the cherry picked commit
jannyHou May 17, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ coverage
api-docs
**/*.tgz
packages/*/dist
experimental/*/dist
examples/*/dist
benchmark/dist
**/package
Expand Down
35 changes: 18 additions & 17 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,32 @@
#
# See https://help.github.com/articles/about-codeowners/

* @bajtos @raymondfeng
* @raymondfeng

packages/authentication/* @bajtos @raymondfeng
packages/authentication/* @raymondfeng
packages/boot/* @raymondfeng @hacksparrow
packages/booter-lb3app/* @bajtos @nabdelgadir
packages/build/* @bajtos @raymondfeng
packages/http-caching-proxy/* @bajtos
packages/http-server/* @hacksparrow @bajtos
packages/cli/* @raymondfeng @bajtos
packages/context/* @bajtos @raymondfeng
packages/core/* @bajtos @raymondfeng
packages/booter-lb3app/* @nabdelgadir
packages/build/* @raymondfeng
packages/http-caching-proxy/*
packages/http-server/* @hacksparrow
packages/cli/* @raymondfeng
packages/context/* @raymondfeng
packages/core/* @raymondfeng
packages/metadata/* @raymondfeng
packages/openapi-spec-builder/* @bajtos @raymondfeng
packages/openapi-v3/* @bajtos @jannyHou
packages/openapi-v3-types/* @bajtos @jannyHou
packages/openapi-spec-builder/* @raymondfeng
packages/openapi-v3/* @jannyHou
packages/openapi-v3-types/* @jannyHou
packages/repository/* @raymondfeng
packages/repository-json-schema/* @bajtos
packages/rest/* @bajtos @raymondfeng
packages/repository-json-schema/*
packages/rest/* @raymondfeng
packages/service-proxy/* @raymondfeng
packages/testlab/* @bajtos
examples/todo/* @bajtos @hacksparrow
examples/todo/* @hacksparrow
examples/express-composition/* @nabdelgadir
examples/greeter-extension/* @raymondfeng
examples/hello-world/* @b-admike
examples/lb3-application/* @bajtos @nabdelgadir
examples/log-extension/* @hacksparrow
examples/rpc-server/* @hacksparrow
examples/soap-calculator/* @marioestradarosa
docs/* @bajtos @raymondfeng @hacksparrow @b-admike @jannyHou
experimental/passport-adapter/* @jannyHou @emonddr
docs/* @raymondfeng @hacksparrow @b-admike @jannyHou
125 changes: 125 additions & 0 deletions LABS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# LoopBack 4 Labs

We created `loopback-labs` monorepo to facilitate development of experimental
features without interfering with `loopback-next`.

`loopback-labs` is a logical `fork` of `loopback-next` as github does not allow
us to folk `loopback-next` into the same organization (`strongloop`).

We divide responsibilities of the two repositories as follows:

- `loopback-next`: the repository to develop and release production-ready
features.

- `loopback-labs`: the repository to develop and release experimental features.

Two-way interactions can happen between `loopback-labs` and `loopback-next`.

1. Keep `loopback-labs` in sync with `loopback-next` for production-ready
features by rebasing against `loopback-next@master`.

2. Graduate experimental features from `loopback-labs` into `loopback-next`.

![loopback-labs](./loopback-labs.png)

## Workflow

### Work on an experimental feature in `@loopback-labs`

1. Set up local git repository for `loopback-labs`

```sh
git clone [email protected]:strongloop/loopback-labs.git
cd loopback-labs
git remote add next [email protected]:strongloop/loopback-next.git
```

2. Work on an experimental feature

It follows the same process and flow as `loopback-next`:

- Create a feature branch
- Make changes in the feature branch
- Submit a PR against `loopback-labs@master`

Please make sure changes to production packages

3. Pull in changes from `loopback-next@master`

```sh
cd loopback-labs
git checkout master
git fetch --all
git rebase next/master
git push --force-with-lease
```

4. Rebase the experimental feature branch against master

```
cd loopback-labs
git checkout experimental/feature-1
git fetch --all
git rebase origin/master
git push --force-with-lease
```

### Graduate an experimental feature

1. Set up local git repository for `loopback-next`

```sh
cd loopback-next
git remote add labs [email protected]:strongloop/loopback-labs.git
```

2. Pull in the experimental feature from `loopback-labs` into `loopback-next`

```sh
cd loopback-next
git checkout -b experimental/feature-1
git fetch --all

// check-pick commits from `labs` into `experimental/feature-1` branch

// Move experimental modules from `experimental` to `packages`

// Create a PR
```

## Questions

- Do we merge experimental features into `loopback-labs@master` or keep each of
them isolated in `loopback-labs@labs/<my-experimental-feature>` branch?

To keep an experimental feature fully isolated and make it easy to graduate into
`loopback-next`, we should consider the following branching strategy illustrated
by an experimental feature named `socketio`.

1. Create an integration branch for SocketIO:

```sh
git checkout -b labs/socketio
```

2. Create a development branch for SocketIO:

```sh
git checkout -b experimental/socketio
```

3. Start to commit code into `experimental/socketio`

4. Submit a PR against `labs/socketio`

5. Merge the PR from `experimental/socketio` into `labs/socketio`

6. Graduate `socketio` into `loopback-next`:

```sh
cd loopback-next
git checkout -b feature/sockeio
git fetch --all
git rebase labs/labs/socketio
git push
```
80 changes: 13 additions & 67 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,74 +1,19 @@
# loopback-next
# loopback-labs

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/strongloop/loopback)
[![Travis Build Status](https://travis-ci.org/strongloop/loopback-next.svg?branch=master)](https://travis-ci.org/strongloop/loopback-next)
[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/q8vp7wrdn2ak6801/branch/master?svg=true)](https://ci.appveyor.com/project/strongloop/loopback-next/branch/master)
[![Coverage Status](https://coveralls.io/repos/github/strongloop/loopback-next/badge.svg?branch=master)](https://coveralls.io/github/strongloop/loopback-next?branch=master)
[![Greenkeeper badge](https://badges.greenkeeper.io/strongloop/loopback-next.svg)](https://greenkeeper.io/)
[![Travis Build Status](https://travis-ci.org/strongloop/loopback-labs.svg?branch=master)](https://travis-ci.org/strongloop/loopback-labs)
[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/q8vp7wrdn2ak6801/branch/master?svg=true)](https://ci.appveyor.com/project/strongloop/loopback-labs/branch/master)
[![Coverage Status](https://coveralls.io/repos/github/strongloop/loopback-labs/badge.svg?branch=master)](https://coveralls.io/github/strongloop/loopback-labs?branch=master)

LoopBack makes it easy to build modern applications that require complex
integrations.
Experimental features for
[loopback-next](https://github.com/strongloop/loopback-next).

- Fast, small, powerful, extensible core
- Generate real APIs with a single command
- Define your data and endpoints with OpenAPI
- No maintenance of generated code

## Status: General Availability

LoopBack 4 GA (General Availability) has been released in October 2018, read
more in [the announcement post](http://strongloop.com/strongblog/loopback-4-ga).

The documentation website is https://loopback.io/doc/en/lb4/.

Learn about the latest and greatest
[features and technologies in LoopBack 4](https://loopback.io/doc/en/lb4/Crafting-LoopBack-4.html)
by using it for your next project. Start by having a look at
[Getting Started](https://loopback.io/doc/en/lb4/Getting-started.html).

Check the
[API documentation](https://apidocs.loopback.io/@loopback%2fdocs/apidocs.html)
for all the API usages in each package.

[LoopBack 3](https://loopback.io/doc/en/lb3/) became active LTS version, and
[LoopBack 2](https://loopback.io/doc/en/lb2/) became maintenance LTS version.

| Version | Status | Published | EOL |
| ---------- | --------------- | --------- | -------------------- |
| LoopBack 4 | Current | Oct 2018 | Apr 2021 _(minimum)_ |
| Loopback 3 | Active LTS | Dec 2016 | Dec 2020 |
| Loopback 2 | Maintenance LTS | Jul 2014 | Apr 2019 |

Please refer to our
[Long Term Support Policy](https://loopback.io/doc/en/contrib/Long-term-support.html)
for more details.

## Installation

Make sure you have the following installed:

- [Node.js](https://nodejs.org/en/download/) >= 8.9.0

Install LoopBack 4 CLI to help create new projects as follows:

```shell
npm i -g @loopback/cli
```

To create your first LoopBack 4 application, see
[Getting Started](http://loopback.io/doc/en/lb4/Getting-started.html).

## Documentation

- [Official documentation](http://loopback.io/doc/en/lb4/)
- [API documentation](http://apidocs.loopback.io/#LoopBack4)
- [FAQ](http://loopback.io/doc/en/lb4/FAQ.html)
- [LoopBack 3 vs LoopBack 4](http://loopback.io/doc/en/lb4/LoopBack-3.x.html)
- [Tutorials](http://loopback.io/doc/en/lb4/Tutorials.html)
- [Examples](http://loopback.io/doc/en/lb4/Examples.html)
## Status: Experimental

## Contributing

Check out [LABS.md](./LABS.md) to understand the workflow to develop
experimental features in `loopback-labs`.

See the following resources to get you started:

- [Contributing Guidelines](./docs/CONTRIBUTING.md)
Expand All @@ -94,8 +39,8 @@ You can join the team by posting a comment to
| [![b-admike]](http://github.com/b-admike) | [![dhmlau]](http://github.com/dhmlau) | [![jannyhou]](http://github.com/jannyHou) |
| Hage Yaapa | Nora Abdelgadir | Mario Estrada |
| [![hacksparrow]](https://github.com/hacksparrow) | [![nabdelgadir]](https://github.com/nabdelgadir) | [![marioestradarosa]](https://github.com/marioestradarosa) |
| Hugo Da Roit | Dominique Emond | |
| [![yaty]](https://github.com/yaty) | [![emonddr]](https://github.com/emonddr) | |
| Hugo Da Roit | Dominique Emond | Agnes Lin |
| [![yaty]](https://github.com/yaty) | [![emonddr]](https://github.com/emonddr) | [![agnes512]](https://github.com/agnes512) |

See
[all contributors](https://github.com/strongloop/loopback-next/graphs/contributors).
Expand All @@ -115,3 +60,4 @@ See
[marioestradarosa]: https://avatars2.githubusercontent.com/u/4633823?v=3&s=60
[yaty]: https://avatars3.githubusercontent.com/u/11981803?v=3&s=60
[emonddr]: https://avatars0.githubusercontent.com/u/6864736??v=3&s=60
[agnes512]: https://avatars3.githubusercontent.com/u/50331796?v=3&s=60
8 changes: 8 additions & 0 deletions benchmark/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.2.5](https://github.com/strongloop/loopback-next/compare/@loopback/[email protected]...@loopback/[email protected]) (2019-05-14)

**Note:** Version bump only for package @loopback/benchmark





## [1.2.4](https://github.com/strongloop/loopback-next/compare/@loopback/[email protected]...@loopback/[email protected]) (2019-05-10)

**Note:** Version bump only for package @loopback/benchmark
Expand Down
2 changes: 1 addition & 1 deletion benchmark/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions benchmark/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@loopback/benchmark",
"version": "1.2.4",
"version": "1.2.5",
"private": true,
"description": "Benchmarks measuring performance of our framework.",
"keywords": [
Expand Down Expand Up @@ -35,9 +35,9 @@
"!*/__tests__"
],
"dependencies": {
"@loopback/example-todo": "^1.5.11",
"@loopback/openapi-spec-builder": "^1.1.9",
"@loopback/rest": "^1.11.1",
"@loopback/example-todo": "^1.5.12",
"@loopback/openapi-spec-builder": "^1.1.10",
"@loopback/rest": "^1.11.2",
"@types/byline": "^4.2.31",
"@types/debug": "^4.1.0",
"@types/request-promise-native": "^1.0.15",
Expand All @@ -49,8 +49,8 @@
"request-promise-native": "^1.0.5"
},
"devDependencies": {
"@loopback/build": "^1.5.3",
"@loopback/testlab": "^1.2.8",
"@loopback/build": "^1.5.4",
"@loopback/testlab": "^1.2.9",
"@types/mocha": "^5.0.0",
"@types/node": "^10.11.2",
"mocha": "^6.1.3",
Expand Down
12 changes: 12 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.18.0](https://github.com/strongloop/loopback-next/compare/@loopback/[email protected]...@loopback/[email protected]) (2019-05-14)


### Features

* **context:** add binding comparator to sort bindings ([ae3d61f](https://github.com/strongloop/loopback-next/commit/ae3d61f))
* add lb3 application ([bf60011](https://github.com/strongloop/loopback-next/commit/bf60011))





## [1.17.1](https://github.com/strongloop/loopback-next/compare/@loopback/[email protected]...@loopback/[email protected]) (2019-05-10)

**Note:** Version bump only for package @loopback/docs
Expand Down
1 change: 1 addition & 0 deletions docs/apidocs.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ <h3>List of packages</h3>
<li><a href="./openapi-spec-builder.html">@loopback/openapi-spec-builder</a></li>
<li><a href="./openapi-v3-types.html">@loopback/openapi-v3-types</a></li>
<li><a href="./openapi-v3.html">@loopback/openapi-v3</a></li>
<li><a href="./passport-adapter.html">@loopback/passport-adapter</a></li>
<li><a href="./repository.html">@loopback/repository</a></li>
<li><a href="./repository-json-schema.html">@loopback/repository-json-schema</a></li>
<li><a href="./rest.html">@loopback/rest</a></li>
Expand Down
2 changes: 1 addition & 1 deletion docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@loopback/docs",
"version": "1.17.1",
"version": "1.18.0",
"description": "Documentation for LoopBack 4",
"homepage": "https://github.com/strongloop/loopback-next/tree/master/docs",
"author": "IBM Corp.",
Expand All @@ -20,7 +20,7 @@
"clean": "lb-clean loopback-docs*.tgz package api-docs site/readmes"
},
"devDependencies": {
"@loopback/build": "^1.5.3"
"@loopback/build": "^1.5.4"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions docs/site/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ $ lb4 example
soap-calculator: An example on how to integrate SOAP web services.
express-composition: A simple Express application that uses LoopBack 4 REST API.
greeter-extension: An example showing how to implement the extension point/extension pattern.
lb3-application: An example LoopBack 3 application mounted in a LoopBack 4 project.
```

Please follow the instructions in
Expand Down
Loading