Skip to content

Commit d8c5da4

Browse files
Merge pull request #18 from VEBERArnaud/fix/default-authentication
fix(auth): wrong case for auth-provider
2 parents af43cf8 + 5d540a6 commit d8c5da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node-client/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ export class KubeConfig {
117117
opts.cert = this.bufferFromFileOrString(user.certFile, user.certData);
118118
opts.key = this.bufferFromFileOrString(user.keyFile, user.keyData);
119119
let token = null;
120-
if (user['auth-provider'] && user['auth-provider']['config']) {
121-
let config = user['auth-provider']['config'];
120+
if (user.authProvider && user.authProvider.config) {
121+
let config = user.authProvider.config;
122122
// This should probably be extracted as auth-provider specific plugins...
123123
token = 'Bearer ' + config['access-token'];
124124
let expiry = config['expiry'];

0 commit comments

Comments
 (0)