Trusted Artifact Signer Authentication Successful!
+You can now close this page...
+diff --git a/internal/fulcio/identity.go b/internal/fulcio/identity.go index c64e9240..a3170cf7 100644 --- a/internal/fulcio/identity.go +++ b/internal/fulcio/identity.go @@ -34,7 +34,7 @@ import ( "github.com/sigstore/gitsign/internal/config" "github.com/sigstore/gitsign/internal/fulcio/fulcioroots" "github.com/sigstore/gitsign/internal/signerverifier" - "github.com/sigstore/sigstore/pkg/oauth" + "github.com/sigstore/gitsign/internal/ui" "github.com/sigstore/sigstore/pkg/oauthflow" "github.com/sigstore/sigstore/pkg/signature" "golang.org/x/oauth2" @@ -194,7 +194,7 @@ func NewIdentityFactory(in io.Reader, out io.Writer) *IdentityFactory { func (f *IdentityFactory) NewIdentity(ctx context.Context, cfg *config.Config) (*Identity, error) { clientID := cfg.ClientID defaultFlow := &oauthflow.InteractiveIDTokenGetter{ - HTMLPage: oauth.InteractiveSuccessHTML, + HTMLPage: ui.RedHatInteractiveSuccessHTML, Input: f.in, Output: f.out, } diff --git a/internal/ui/index.go b/internal/ui/index.go new file mode 100644 index 00000000..519bb344 --- /dev/null +++ b/internal/ui/index.go @@ -0,0 +1,226 @@ +package ui + +const ( + RedHatInteractiveSuccessHTML = ` + + +
+ +You can now close this page...
+