only support loading idp tokens via bearer tokens (#5545)

This commit is contained in:
Caleb Doxsey 2025-03-26 09:47:40 -06:00 committed by GitHub
parent b188a168af
commit 38ca6d52b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 73 deletions

View file

@ -30,6 +30,8 @@ func testOptions(t *testing.T) *config.Options {
opts.Services = config.ServiceAll
opts.SharedKey = "80ldlrU2d7w+wVpKNfevk6fmb8otEx6CqOfshj2LwhQ="
opts.CookieSecret = "OromP1gurwGWjQPYb1nNgSxtbVB5NnLzX6z5WOKr0Yw="
bearerTokenFormatIDPAccessToken := config.BearerTokenFormatIDPAccessToken
opts.BearerTokenFormat = &bearerTokenFormatIDPAccessToken
hpkePrivateKey, err := opts.GetHPKEPrivateKey()
require.NoError(t, err)