1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-07-13 01:40:48 +02:00

Integrate cookie builder with OAuth2 Proxy

This commit is contained in:
Joel Speed
2021-03-23 13:13:44 +00:00
parent 19e59da0e8
commit 93026e4c82
2 changed files with 18 additions and 4 deletions

View File

@ -402,7 +402,7 @@ func (patTest *PassAccessTokenTest) Close() {
func (patTest *PassAccessTokenTest) getCallbackEndpoint() (httpCode int, cookie string) {
rw := httptest.NewRecorder()
csrf, err := cookies.NewCSRF(patTest.proxy.CookieOptions)
csrf, err := cookies.NewCSRF(patTest.proxy.csrfCookieBuilder, patTest.proxy.encryptionSecret)
if err != nil {
panic(err)
}