internal/outpost: fix incorrect usage of golang SHA API (#14981) Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens L. <jens@goauthentik.io>
This commit is contained in:
		![98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com](/assets/img/avatar_default.png) gcp-cherry-pick-bot[bot]
					gcp-cherry-pick-bot[bot]
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							7a4518be26
						
					
				
				
					commit
					43637b8a75
				
			| @ -5,6 +5,7 @@ import ( | ||||
| 	"crypto/sha256" | ||||
| 	"crypto/tls" | ||||
| 	"encoding/gob" | ||||
| 	"encoding/hex" | ||||
| 	"fmt" | ||||
| 	"html/template" | ||||
| 	"net/http" | ||||
| @ -118,8 +119,8 @@ func NewApplication(p api.ProxyOutpostConfig, c *http.Client, server Server, old | ||||
| 	mux := mux.NewRouter() | ||||
|  | ||||
| 	// Save cookie name, based on hashed client ID | ||||
| 	h := sha256.New() | ||||
| 	bs := string(h.Sum([]byte(*p.ClientId))) | ||||
| 	hs := sha256.Sum256([]byte(*p.ClientId)) | ||||
| 	bs := hex.EncodeToString(hs[:]) | ||||
| 	sessionName := fmt.Sprintf("authentik_proxy_%s", bs[:8]) | ||||
|  | ||||
| 	// When HOST_BROWSER is set, use that as Host header for token requests to make the issuer match | ||||
|  | ||||
		Reference in New Issue
	
	Block a user