-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose MSAL PoP for Consistent CSP Integration (#542)
* progress * missing test files * clean up * fix popkey * clean up unnecessary method * address comments * cleanup * add comments * update nil to explicit function * cleanup * cleanup
- Loading branch information
1 parent
d3cc69c
commit 8d6ce2f
Showing
8 changed files
with
59 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package pop | ||
|
||
import ( | ||
"github.com/Azure/kubelogin/pkg/internal/pop" | ||
) | ||
|
||
// AcquirePoPTokenConfidential retrieves a Proof of Possession (PoP) token using confidential client credentials. | ||
// It utilizes the internal pop.AcquirePoPTokenConfidential function to obtain the token. | ||
var AcquirePoPTokenConfidential = pop.AcquirePoPTokenConfidential |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package pop | ||
|
||
import "github.com/Azure/kubelogin/pkg/internal/pop" | ||
|
||
// GetSwPoPKey retrieves a software Proof of Possession (PoP) key using RSA encryption. | ||
// It utilizes the internal pop.GetSwPoPKey function to obtain the key. | ||
var GetSwPoPKey = pop.GetSwPoPKey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package pop | ||
|
||
import ( | ||
"github.com/Azure/kubelogin/pkg/internal/pop" | ||
) | ||
|
||
// This is the MSAL implementation of AuthenticationScheme. | ||
// For more details, see the MSAL repo interface: | ||
// https://github.com/AzureAD/microsoft-authentication-library-for-go/blob/4a4dafcbcbd7d57a69ed3bc59760381232c2be9c/apps/internal/oauth/ops/authority/authority.go#L146 | ||
type PoPAuthenticationScheme = pop.PoPAuthenticationScheme | ||
|
||
type SwKey = pop.SwKey |