Add client auth plugin for Azure Active Directory

This plugin acquires a fresh access token for apiserver from Azure Active
Directory using the device code flow. The access token is saved in the
configuration in order to be reused for upcomming accesses to appiserver.
In additon the access token is automatically refreshed when expired.

Kubernetes-commit: 682d5ec01f37c65117b2496865cc9bf0cd9e0902
This commit is contained in:
Cosmin Cojocar
2017-04-03 09:56:27 +02:00
committed by Kubernetes Publisher
parent fabe644bb3
commit e12b58626c
7 changed files with 581 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ package auth
import (
// Initialize all known client auth plugins.
_ "k8s.io/client-go/plugin/pkg/client/auth/azure"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
)