From e44698019757d35a97ed3fe759df3dd4f07011b7 Mon Sep 17 00:00:00 2001 From: Patrick Norton Date: Mon, 24 Nov 2025 12:04:01 -0500 Subject: [PATCH] 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 --- 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 76ffab221594fedd79362ceacb5100ad4ecb4faa..c63b98c2616e7846cdbfe2d08147334efa3add93 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")