Skip to content

Commit

Permalink
Release/dependency update (#111)
Browse files Browse the repository at this point in the history
* Bump axios from 0.21.4 to 0.22.0

Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 0.22.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](axios/axios@v0.21.4...v0.22.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* update workflow

* Bump ts-node from 8.10.2 to 10.3.0

Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.10.2 to 10.3.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](TypeStrong/ts-node@v8.10.2...v10.3.0)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump axios from 0.22.0 to 0.23.0

Bumps [axios](https://github.com/axios/axios) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](axios/axios@v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump typescript from 3.9.10 to 4.4.4

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.10 to 4.4.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v3.9.10...v4.4.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump @open-template-hub/common from 2.1.15 to 3.0.1

Bumps [@open-template-hub/common](https://github.com/open-template-hub/common) from 2.1.15 to 3.0.1.
- [Release notes](https://github.com/open-template-hub/common/releases)
- [Commits](open-template-hub/common@2.1.15...3.0.1)

---
updated-dependencies:
- dependency-name: "@open-template-hub/common"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* update readme

* update description

* fix typo

* update workflow

* Workflow/dependency check

* Workflow/dependency check

* Bump axios from 0.23.0 to 0.24.0

Bumps [axios](https://github.com/axios/axios) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](axios/axios@v0.23.0...v0.24.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Workflow/dependency check

* Workflow/dependency check

* Bump express-promise-router from 3.0.3 to 4.1.1

Bumps [express-promise-router](https://github.com/express-promise-router/express-promise-router) from 3.0.3 to 4.1.1.
- [Release notes](https://github.com/express-promise-router/express-promise-router/releases)
- [Changelog](https://github.com/express-promise-router/express-promise-router/blob/trunk/CHANGELOG.md)
- [Commits](express-promise-router/express-promise-router@v3.0.3...v4.1.1)

---
updated-dependencies:
- dependency-name: express-promise-router
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* added app.json for Heroku Express Deploy

* axios header fix

* update common

* Workflow/dependency check

* dependency update

* update package.json

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
furknyavuz and dependabot[bot] authored Dec 13, 2021
1 parent 66095e2 commit e046fdf
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ updates:
target-branch: 'workflow/dependency-update'
labels:
- 'workflow'
milestone: 1
milestone: 2
2 changes: 0 additions & 2 deletions .github/workflows/cron-dependency-checker-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
run: npm i
- name: Npm Outdated
run: npm run outdated
- name: Build
run: npm run buildProd

- name: Git Commit and Push
run: |
Expand Down
5 changes: 4 additions & 1 deletion .run/outdated.run.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="outdated" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="outdated" />
<command value="run" />
<scripts>
<script value="outdated" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

<h1 align="center">
Open Template Hub - Auth Server Template v2
Open Template Hub - Auth Server Template v3
</h1>

[![License](https://img.shields.io/github/license/open-template-hub/auth-server-template?color=43b043&style=for-the-badge)](LICENSE)
Expand All @@ -15,9 +15,8 @@ Open Template Hub - Auth Server Template v2
[![Release](https://img.shields.io/github/release/open-template-hub/auth-server-template?include_prereleases&color=43b043&style=for-the-badge)](https://github.com/open-template-hub/auth-server-template/releases)
[![SonarCloud](https://img.shields.io/sonar/quality_gate/open-template-hub_auth-server-template?server=https%3A%2F%2Fsonarcloud.io&label=Sonar%20Cloud&style=for-the-badge&logo=sonarcloud)](https://sonarcloud.io/dashboard?id=open-template-hub_auth-server-template)
[![Postman](https://img.shields.io/badge/Postman-Test%20Results-FF6C37?style=for-the-badge&logo=postman)](https://github.com/open-template-hub/auth-server-template/blob/develop/assets/test-results/postman.html)
[![BTC](https://img.shields.io/badge/Donate-BTC-ORANGE?color=F5922F&style=for-the-badge&logo=bitcoin)](https://commerce.coinbase.com/checkout/8313af5f-de48-498d-b2cb-d98819ca7d5e)

Auth Server Template is an open source authentication server that has simple and generic design to connect your authentication system with every OAuth 2.0 and OAuth supporting third party companies like Google, Facebook, Twitter or LinkedIn. We are also supporting regular username password authentication system
Auth Server Template is a generic open-source authentication server that has a simple yet powerful design to connect your business with all OAuth 2.0 and OAuth supporting third-party companies (like Google, Facebook, Twitter, or LinkedIn). It also supports a basic username-password authentication system.

## Ways to Begin

Expand Down
27 changes: 27 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "auth-server-template",
"description": "Auth Server Template is a generic open-source authentication server that has a simple yet powerful design to connect your business with all OAuth 2.0 and OAuth supporting third-party companies (like Google, Facebook, Twitter, or LinkedIn). It also supports a basic username-password authentication system.",
"website": "https://opentemplatehub.com/product/server/auth-server-template",
"repository": "https://github.com/open-template-hub/auth-server-template",
"logo": "https://raw.githubusercontent.com/open-template-hub/open-template-hub.github.io/master/assets/logo/server/auth-server-logo.png",
"keywords": [
"nodejs",
"template",
"oauth",
"oauth2 express",
"authentication",
"server facebook-login",
"twitter-login google-login",
"social-login linkedin-login",
"nodejs-express github-login",
"twitch-login",
"backend",
"rest",
"node",
"nodejs",
"typescript",
"template",
"server template",
"open template hub"
]
}
11 changes: 7 additions & 4 deletions app/controller/social-login.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class SocialLoginController {
} else {
throw new Error( 'Method Not Implemented' );
}
} catch ( e ) {
} catch ( e: any ) {
console.error( e );
e.responseCode = ResponseCode.FORBIDDEN;
throw e;
Expand Down Expand Up @@ -470,11 +470,14 @@ export class SocialLoginController {
};

let headers = oauth.toHeader( oauth.authorize( request_data ) );

const oAuthRequestTokenResponse = await axios.post<any>(

let axiosHeader: Record<string, string> = {};
axiosHeader.Authorization = headers.Authorization;

const oAuthRequestTokenResponse: any = await axios.post<any>(
`${ config.request_token_uri }`,
{},
{ headers }
{ headers: axiosHeader }
);

const urlParams = new URLSearchParams( oAuthRequestTokenResponse.data );
Expand Down
8 changes: 5 additions & 3 deletions app/route/index.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

import {
context,
context, DebugLogUtil,
EncryptionUtil,
ErrorHandlerUtil,
MessageQueueProvider,
Expand Down Expand Up @@ -40,8 +40,9 @@ export namespace Routes {
var environment: Environment;
var message_queue_provider: MessageQueueProvider;
var postgresql_provider: PostgreSqlProvider;
const errorHandlerUtil = new ErrorHandlerUtil();

let errorHandlerUtil: ErrorHandlerUtil;
const debugLogUtil = new DebugLogUtil();

var publicRoutes: string[] = [];
var adminRoutes: string[] = [];

Expand All @@ -56,6 +57,7 @@ export namespace Routes {

export function mount(app: any) {
environment = new Environment();
errorHandlerUtil = new ErrorHandlerUtil( debugLogUtil, environment.args() );

message_queue_provider = new MessageQueueProvider(environment.args());

Expand Down
2 changes: 1 addition & 1 deletion dependency-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ console.log(
'\n' +
'\n' +
'<h1 align="center">\n' +
'Open Template Hub - Auth Server Template v2\n' +
'Open Template Hub - Auth Server Template v3\n' +
' <br/>\n' +
'(outdated packages)\n' +
'</h1>\n' +
Expand Down
7 changes: 3 additions & 4 deletions docs/OUTDATED.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<p align="center">
<a href="https://opentemplatehub.com">
<a href="https://opentemplatehub.com">
<img src="https://raw.githubusercontent.com/open-template-hub/open-template-hub.github.io/master/assets/logo/server/auth-server-logo.png" alt="Logo" width=200>
</a>
</p>


<h1 align="center">
Open Template Hub - Auth Server Template v2
Open Template Hub - Auth Server Template v3
<br/>
(outdated packages)
</h1>

Following packages are not updated in the develop branch yet. So, if you want to update outdated packages on your own risk, update the package.json and install dependencies.

| Package | Current | Wanted | Latest | Location |
| --- | --- | --- | --- | --- |

<table align="right"><tr><td><a href="https://opentemplatehub.com"><img src="https://raw.githubusercontent.com/open-template-hub/open-template-hub.github.io/master/assets/logo/brand-logo.png" width="50px" alt="oth"/></a></td><td><b>Open Template Hub © 2021</b></td></tr></table>

28 changes: 12 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-server-template",
"description": "Auth Server Template is an open source authentication server that has simple and generic design to connect your authentication system with every OAuth 2.0 and OAuth supporting third party companies like Google, Facebook, Twitter or LinkedIn. We are also supporting regular username password authentication system",
"description": "Auth Server Template is a generic open-source authentication server that has a simple yet powerful design to connect your business with all OAuth 2.0 and OAuth supporting third-party companies (like Google, Facebook, Twitter, or LinkedIn). It also supports a basic username-password authentication system.",
"version": "3.0.1",
"license": "MIT",
"main": "auth-server.main.ts",
Expand All @@ -12,31 +12,27 @@
"outdated": "node dependency-checker.ts > docs/OUTDATED.md"
},
"dependencies": {
"@open-template-hub/common": "^2.1.15",
"@types/bcrypt": "^3.0.0",
"@open-template-hub/common": "^3.0.3",
"@types/bcrypt": "^5.0.0",
"@types/capitalize": "^2.0.0",
"@types/cors": "^2.8.9",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.6",
"@types/uuid": "^8.0.0",
"axios": "^0.21.1",
"@types/uuid": "^8.3.3",
"axios": "^0.24.0",
"bcrypt": "^5.0.0",
"body-parser": "^1.19.0",
"capitalize": "^2.0.3",
"body-parser": "^1.19.1",
"capitalize": "^2.0.4",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"express-promise-router": "^3.0.3",
"express-promise-router": "^4.1.1",
"oauth-1.0a": "^2.2.6",
"ts-node": "^8.1.0",
"typescript": "^3.4.5",
"ts-node": "^10.3.0",
"typescript": "^4.5.3",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/bcrypt": "^3.0.0",
"@types/capitalize": "^2.0.0",
"@types/cors": "^2.8.9",
"nodemon": "^2.0.2"
"nodemon": "^2.0.15"
},
"git repository": "https://github.com/open-template-hub/auth-server-template",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '2.3.5';
export const version = '3.0.1';

0 comments on commit e046fdf

Please sign in to comment.