File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
import https = require( 'https' ) ;
2
- import request = require( 'request' ) ;
3
2
4
3
import { User } from './config_types' ;
5
4
6
5
export interface Authenticator {
7
6
isAuthProvider ( user : User ) : boolean ;
8
- applyAuthentication ( user : User , opts : request . Options | https . RequestOptions ) : Promise < void > ;
7
+ applyAuthentication ( user : User , opts : https . RequestOptions ) : Promise < void > ;
9
8
}
Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ export class KubeConfig implements SecurityAuthentication {
483
483
}
484
484
}
485
485
486
- private async applyAuthorizationHeader ( opts : request . Options | https . RequestOptions ) : Promise < void > {
486
+ private async applyAuthorizationHeader ( opts : https . RequestOptions ) : Promise < void > {
487
487
const user = this . getCurrentUser ( ) ;
488
488
if ( ! user ) {
489
489
return ;
@@ -504,7 +504,7 @@ export class KubeConfig implements SecurityAuthentication {
504
504
}
505
505
}
506
506
507
- private async applyOptions ( opts : request . Options | https . RequestOptions ) : Promise < void > {
507
+ private async applyOptions ( opts : https . RequestOptions ) : Promise < void > {
508
508
this . applyHTTPSOptions ( opts ) ;
509
509
await this . applyAuthorizationHeader ( opts ) ;
510
510
}
You can’t perform that action at this time.
0 commit comments