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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] LinkedIn endpoint and syndicator #752

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3.9'
services:
mongo:
container_name: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
image: mongo:7.0.11
network_mode: bridge
ports:
- '27018:27017'
restart: always
volumes:
- mongo-data:/data/db
volumes:
mongo-data:
external: true
11 changes: 11 additions & 0 deletions indiekit.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const config = {
plugins: [
"@indiekit-test/frontend",
"@indiekit/endpoint-json-feed",
"@indiekit/endpoint-linkedin",
"@indiekit/post-type-audio",
"@indiekit/post-type-event",
"@indiekit/post-type-jam",
Expand All @@ -27,6 +28,7 @@ const config = {
"@indiekit/preset-eleventy",
"@indiekit/store-github",
"@indiekit/syndicator-internet-archive",
"@indiekit/syndicator-linkedin",
"@indiekit/syndicator-mastodon",
],
publication: {
Expand Down Expand Up @@ -60,6 +62,11 @@ const config = {
},
},
},
"@indiekit/endpoint-linkedin": {
callbackUrl: process.env.LINKEDIN_CALLBACK_URL,
clientId: "78fnklq6mank6p",
clientSecret: process.env.LINKEDIN_CLIENT_SECRET,
},
"@indiekit/endpoint-media": {
imageProcessing: {
resize: {
Expand All @@ -83,6 +90,10 @@ const config = {
accessKey: process.env.INTERNET_ARCHIVE_ACCESS_KEY,
secretKey: process.env.INTERNET_ARCHIVE_SECRET_KEY,
},
"@indiekit/syndicator-linkedin": {
checked: true,
authorProfileUrl: process.env.LINKEDIN_AUTHOR_PROFILE_URL,
},
"@indiekit/syndicator-mastodon": {
checked: true,
url: process.env.MASTODON_URL,
Expand Down
171 changes: 171 additions & 0 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"postinstall": "husky",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"dev": "node --watch-path=./ packages/indiekit/bin/cli.js serve",
"dev": "node --watch-path=./ packages/indiekit/bin/cli.js serve --port 3333",
"start": "indiekit serve",
"lint:prettier": "prettier . --check",
"lint:prettier:fix": "prettier . --write",
Expand Down
20 changes: 20 additions & 0 deletions packages/endpoint-linkedin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# @indiekit/endpoint-linkedin

LinkedIn OAuth 2.0 endpoints for Indiekit.

## Installation

`npm i @indiekit/endpoint-linkedin`

## Usage

Add `@indiekit/endpoint-linkedin` to your list of plug-ins, specifying options as required:

```js
{
"plugins": ["@indiekit/endpoint-linkedin"],
"@indiekit/endpoint-linkedin": {
"mountPath": "/linkedin/authorize",
},
}
```
6 changes: 6 additions & 0 deletions packages/endpoint-linkedin/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading