mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-25 03:34:14 +00:00
post to bluesky when manifests uploaded. linting fixes
This commit is contained in:
@@ -127,7 +127,9 @@ func handleGet() {
|
||||
fmt.Fprintf(os.Stderr, "Stored credentials for %s are invalid or expired\n", appViewURL)
|
||||
// Delete the invalid credentials
|
||||
delete(allCreds.Credentials, appViewURL)
|
||||
saveDeviceCredentials(configPath, allCreds)
|
||||
if err := saveDeviceCredentials(configPath, allCreds); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Warning: failed to save updated credentials: %v\n", err)
|
||||
}
|
||||
// Mark as not found so we re-authorize below
|
||||
found = false
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/sha256"
|
||||
"encoding/base64"
|
||||
"flag"
|
||||
"fmt"
|
||||
"log"
|
||||
@@ -135,9 +133,3 @@ func generateDPoPProof(session *indigo_oauth.ClientSession, method, reqURL strin
|
||||
// Use the session's NewHostDPoP method to generate the proof
|
||||
return session.NewHostDPoP(method, reqURL)
|
||||
}
|
||||
|
||||
// sha256Hash computes SHA-256 hash and returns base64url-encoded string
|
||||
func sha256Hash(data []byte) string {
|
||||
hash := sha256.Sum256(data)
|
||||
return base64.RawURLEncoding.EncodeToString(hash[:])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user