File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export class MultiSamlStrategy extends AbstractStrategy {
39
39
this . _options = samlConfig ;
40
40
}
41
41
42
- authenticate ( req : RequestWithUser , options : AuthenticateOptions ) : void {
42
+ authenticate ( req : Request , options : AuthenticateOptions ) : void {
43
43
this . _options . getSamlOptions ( req , ( err , samlOptions ) => {
44
44
if ( err ) {
45
45
return this . error ( err ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
VerifyWithoutRequest ,
11
11
VerifyWithRequest ,
12
12
} from "./types" ;
13
+ import { Request } from "express" ;
13
14
14
15
export abstract class AbstractStrategy extends PassportStrategy {
15
16
static readonly newSamlProviderOnConstruct : boolean ;
@@ -56,7 +57,7 @@ export abstract class AbstractStrategy extends PassportStrategy {
56
57
this . _passReqToCallback = ! ! options . passReqToCallback ;
57
58
}
58
59
59
- authenticate ( req : RequestWithUser , options : AuthenticateOptions ) : void {
60
+ authenticate ( req : Request , options : AuthenticateOptions ) : void {
60
61
if ( this . _saml == null ) {
61
62
throw new Error ( "Can't get authenticate without a SAML provider defined." ) ;
62
63
}
@@ -256,7 +257,7 @@ export abstract class AbstractStrategy extends PassportStrategy {
256
257
redirect ( url : string , status ?: number ) : void {
257
258
super . redirect ( url , status ) ;
258
259
}
259
- success ( user : any , info ?: any ) : void {
260
+ success ( user : unknown , info ?: unknown ) : void {
260
261
super . success ( user , info ) ;
261
262
}
262
263
}
You can’t perform that action at this time.
0 commit comments