Skip to content

V5.0 dev #5

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

Closed
wants to merge 2 commits into from
Closed
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
/.vscode/*.code-workspace
/.vscode/settings.json

# codecoverage
/.nyc_output
/coverage


# misc
npm-debug.log
# folders
Expand Down
10 changes: 10 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"all": true,
"reporter": [
"lcovonly",
"html",
"text",
"text-summary"
]
}
3 changes: 0 additions & 3 deletions lib/handlers/authenticate-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ export class AuthenticateHandler {
);
}

// Extend model object with request
this.model.request = request;

try {
let token = await this.getTokenFromRequest(request);
token = await this.getAccessToken(token);
Expand Down
3 changes: 0 additions & 3 deletions lib/handlers/authorize-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ export class AuthorizeHandler {
);
}

// Extend model object with request
this.model.request = request;

const client = await this.getClient(request);
const user = await this.getUser(request, response);

Expand Down
2 changes: 0 additions & 2 deletions lib/handlers/revoke-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ export class RevokeHandler {
'Invalid request: content must be application/x-www-form-urlencoded',
);
}
// Extend model object with request
this.model.request = request;

try {
const client = await this.getClient(request, response);
Expand Down
3 changes: 0 additions & 3 deletions lib/handlers/token-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ export class TokenHandler {
);
}

// Extend model object with request
this.model.request = request;

try {
const client = await this.getClient(request, response);
const data = await this.handleGrantType(request, client);
Expand Down
1 change: 0 additions & 1 deletion lib/interfaces/model.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { AuthorizationCode, Client, RefreshToken, Token, User } from '.';
import { Request } from '../request';

export interface BaseModel {
request: Request;
/**
* Invoked to generate a new access token.
*
Expand Down
Loading