guix_mirror_bot pushed a commit to branch master
in repository guix.

commit e44698019757d35a97ed3fe759df3dd4f07011b7
Author: Patrick Norton <[email protected]>
AuthorDate: Mon Nov 24 12:04:01 2025 -0500

    gnu: Add go-github-com-azuread-microsoft-authentication-library-for-go.
    
    * gnu/packages/golang-web.scm
    (go-github-com-azuread-microsoft-authentication-library-for-go): New
    variable.
    
    Change-Id: I3f574764b2117eeb8b8638091710e7e5b2eb9e91
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/golang-web.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 76ffab2215..c63b98c261 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -77,6 +77,7 @@
   #:use-module (gnu packages golang-check)
   #:use-module (gnu packages golang-compression)
   #:use-module (gnu packages golang-crypto)
+  #:use-module (gnu packages golang-maths)
   #:use-module (gnu packages golang-xyz)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages prometheus)
@@ -1926,6 +1927,56 @@ Azure SDK clients.")
 Manager,NTLM}/Negotiate authentication over HTTP.")
     (license license:expat)))
 
+(define-public go-github-com-azuread-microsoft-authentication-library-for-go
+  (package
+    (name "go-github-com-azuread-microsoft-authentication-library-for-go")
+    (version "1.6.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url
+               
"https://github.com/AzureAD/microsoft-authentication-library-for-go";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0pg166ww69ls2nwgj6wgnx31wzg0dcziydi8j2sbja8cyby7ikfq"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      ;; These tests require network/certs
+      #:test-flags
+      #~(list "-skip"
+              (string-join '("TestFMIBasicFunctionality" "TestFMIIntegration"
+                             "TestUsernamePassword"
+                             "TestRemoveAccount"
+                             "TestAcquireMSITokenExchangeForESTSToken"
+                             "TestAdfsToken"
+                             "TestAccountFromCache"
+                             "TestOnBehalfOfCacheTests") "|"))
+      #:skip-build? #t
+      #:import-path
+      "github.com/AzureAD/microsoft-authentication-library-for-go"))
+    (propagated-inputs
+     (list go-github-com-golang-jwt-jwt-v5
+           go-github-com-google-uuid
+           go-github-com-kylelemons-godebug
+           go-github-com-montanaflynn-stats
+           go-github-com-pkg-browser))
+    (home-page 
"https://github.com/AzureAD/microsoft-authentication-library-for-go";)
+    (synopsis "Microsoft Authentication Library (MSAL) for Go")
+    (description
+     "The Microsoft Authentication Library (MSAL) for Go is part of the
+@url{https://aka.ms/aaddevv2,Microsoft identity platform for developers}
+(formerly named Azure AD) v2.0.  It allows you to sign in users or apps with
+Microsoft identities
+(@url{https://azure.microsoft.com/services/active-directory/, Azure AD} and
+@url{https://account.microsoft.com, Microsoft Accounts}) and obtain tokens to
+call Microsoft APIs such as @url{https://graph.microsoft.io/, Microsoft Graph}
+or your own APIs registered with the Microsoft identity platform.  It is built
+using industry standard OAuth2 and @code{OpenID} Connect protocols.")
+    (license license:expat)))
+
 (define-public go-github-com-babolivier-go-doh-client
   (package
     (name "go-github-com-babolivier-go-doh-client")

Reply via email to