unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 70684@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>,
	Rodion Goritskov <rodion.goritskov@gmail.com>
Subject: [bug#70684] [PATCH v2 7/9] gnu: Add go-github-com-go-webauthn-webauthn.
Date: Thu,  4 Jul 2024 12:10:57 +0100	[thread overview]
Message-ID: <1f4d880bd33b28ed6dbe9562e3051abdf591b03c.1720090727.git.sharlatanus@gmail.com> (raw)
In-Reply-To: <cover.1720090727.git.sharlatanus@gmail.com>

From: Rodion Goritskov <rodion.goritskov@gmail.com>

* gnu/packages/golang-web.scm (go-github-com-go-webauthn-webauthn): New variable.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Change-Id: I990f088c5d3b8dd360f26e953e6d2c0d01f1c808
---
 gnu/packages/golang-web.scm | 72 +++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index bd7d88be6d..588fa4b681 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2848,6 +2848,78 @@ (define-public go-github-com-valyala-fasthttp
 replacement for native @code{net/http} module.")
     (license license:expat)))
 
+(define-public go-github-com-go-webauthn-webauthn
+  (package
+    (name "go-github-com-go-webauthn-webauthn")
+    (version "0.10.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/go-webauthn/webauthn")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1jbx3cd8cr4aaqq9s1x4sd1rlcs3lmam5aavpl08s5rj18m7rivf"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.22
+      #:import-path "github.com/go-webauthn/webauthn"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-failing-tests
+            (lambda* (#:key import-path #:allow-other-keys)
+              (with-directory-excursion (string-append "src/" import-path)
+                (for-each delete-file
+                          (list
+                           ;; It tryes to access outbound network:
+                           ;;
+                           ;; Get "https://mds.fidoalliance.org": dial tcp:
+                           ;; lookup mds.fidoalliance.org on [::1]:53: read udp
+                           ;; [::1]:52300->[::1]:53: read: connection refused
+                           ;;
+                           ;; Post "https://mds3.fido.tools/getEndpoints": dial
+                           ;; tcp: lookup mds3.fido.tools on [::1]:53: read udp
+                           ;; [::1]:46703->[::1]:53: read: connection refused
+                           "metadata/metadata_test.go"
+                           ;; Get "https://mds.fidoalliance.org": dial tcp:
+                           ;; lookup mds.fidoalliance.org on [::1]:53: read udp
+                           ;; [::1]:37459->[::1]:53: read: connection refused
+                           "protocol/attestation_androidkey_test.go"
+                           "protocol/attestation_apple_test.go"
+                           "protocol/attestation_packed_test.go"
+                           "protocol/attestation_safetynet_test.go"
+                           "protocol/attestation_test.go"
+                           "protocol/attestation_tpm_test.go"
+                           "protocol/attestation_u2f_test.go")))))
+          ;; XXX: Run all tests, workaround for go-build-system's lack of Go
+          ;; modules support.
+          (delete 'build)
+          (replace 'check
+            (lambda* (#:key tests? import-path #:allow-other-keys)
+              (when tests?
+                (with-directory-excursion (string-append "src/" import-path)
+                  (invoke "go" "test" "-v" "./..."))))))))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
+    (propagated-inputs
+     (list go-github-com-fxamacker-cbor-v2
+           go-github-com-go-webauthn-x
+           go-github-com-golang-jwt-jwt-v5
+           go-github-com-google-go-tpm
+           go-github-com-google-uuid
+           go-github-com-mitchellh-mapstructure))
+    (home-page "https://github.com/go-webauthn/webauthn")
+    (synopsis "Webauthn/FIDO2 library for Golang")
+    (description
+     "This library is meant to handle @url{https://www.w3.org/TR/webauthn,Web
+Authentication} for Go apps that wish to implement a passwordless solution for
+users.  This library conforms as much as possible to the guidelines and
+implementation procedures outlined by the document.  It's a successor of not
+maintained https://github.com/duo-labs/webauthn library.")
+    (license license:bsd-3)))
+
 (define-public go-github-com-go-webauthn-x
   (package
     (name "go-github-com-go-webauthn-x")
-- 
2.41.0





  parent reply	other threads:[~2024-07-04 11:13 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-30 20:18 [bug#70684] [PATCH go-team 0/6] Update miniflux to 2.1.3 Rodion Goritskov
2024-04-30 20:42 ` [bug#70684] [PATCH go-team 1/6] gnu: go-github-com-andybalholm-brotli: Update to 1.1.0 Rodion Goritskov
2024-04-30 20:42 ` [bug#70684] [PATCH go-team 2/6] gnu: Add go-github-com-google-go-tpm Rodion Goritskov
2024-04-30 20:42 ` [bug#70684] [PATCH go-team 3/6] gnu: Add go-github-com-x448-float16 Rodion Goritskov
2024-04-30 20:42 ` [bug#70684] [PATCH go-team 4/6] gnu: Add go-github-com-abadojack-whatlanggo and go-github-com-fxamacker-cbor-v2 Rodion Goritskov
2024-04-30 20:42 ` [bug#70684] [PATCH go-team 5/6] gnu: Add go-github-com-go-webauthn Rodion Goritskov
2024-04-30 20:42 ` [bug#70684] [PATCH go-team 6/6] gnu: miniflux: Update to 2.1.3 Rodion Goritskov
2024-05-02 22:13 ` [bug#70684] [PATCH go-team 0/6] Update miniflux " Sharlatan Hellseher
2024-05-07 19:22   ` Rodion Goritskov
2024-07-04 11:10 ` [bug#70684] [PATCH v2 0/9] " Sharlatan Hellseher
2024-07-04 11:10   ` [bug#70684] [PATCH v2 1/9] gnu: go-github-com-andybalholm-brotli: Update to 1.1.0 Sharlatan Hellseher
2024-07-04 11:10   ` [bug#70684] [PATCH v2 2/9] gnu: Add go-github-com-google-go-tpm Sharlatan Hellseher
2024-07-04 11:10   ` [bug#70684] [PATCH v2 3/9] gnu: Add go-github-com-x448-float16 Sharlatan Hellseher
2024-07-04 11:10   ` [bug#70684] [PATCH v2 4/9] gnu: Add go-github-com-abadojack-whatlanggo Sharlatan Hellseher
2024-07-04 11:10   ` [bug#70684] [PATCH v2 5/9] gnu: Add go-github-com-fxamacker-cbor-v2 Sharlatan Hellseher
2024-07-04 11:10   ` [bug#70684] [PATCH v2 6/9] gnu: Add go-github-com-go-webauthn-x Sharlatan Hellseher
2024-07-04 11:10   ` Sharlatan Hellseher [this message]
2024-07-04 11:10   ` [bug#70684] [PATCH v2 8/9] gnu: miniflux: Update to 2.1.3 Sharlatan Hellseher
2024-07-04 11:10   ` [bug#70684] [PATCH v2 9/9] gnu: miniflux: Adjust indentation Sharlatan Hellseher
2024-07-11 12:12 ` bug#70684: [PATCH go-team 0/6] Update miniflux to 2.1.3 Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f4d880bd33b28ed6dbe9562e3051abdf591b03c.1720090727.git.sharlatanus@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=70684@debbugs.gnu.org \
    --cc=rodion.goritskov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).