all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#56404] [PATCH 0/2] gnu: Add python-msal and oauth2ms.
@ 2022-07-05 17:22 John Kehayias via Guix-patches via
  2022-07-05 17:24 ` [bug#56404] [PATCH 1/2] gnu: Add python-msal John Kehayias via Guix-patches via
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: John Kehayias via Guix-patches via @ 2022-07-05 17:22 UTC (permalink / raw)
  To: 56404

Hello Guix,

Here are two straight forward patches to add python-msal and oauth2ms. Short commentary:

1. python-msal: a package for Microsoft authentication tokens. Tests were disabled because most/all needed network access, and could only disable some of these tests with an environment variable. I did use the GitHub source since it includes tests, in case this can be better worked around in the future, or if using the source directly.

2. oauth2ms: a python script to use msal in order to have usable tokens, like needing oauth2 tokens for getting/sending mail with multi-factor authentication required email services. I copied the readme and steps.org which have documentation for setting this up to the appropriate doc folder. There is no release or version tag and the script needed to be wrapped.

As a final note, I've used this to send mail through my university email server that uses Microsoft Office 365 with multi-factor authentication (so you can't use your password or an app password). oauth2ms provides instructions for doing this in emacs, which I used for mu4e. And if you can't create the needed keys in Azure (as I couldn't) you can use Thunderbird's https://hg.mozilla.org/comm-central/file/tip/mailnews/base/src/OAuth2Providers.jsm#l127 along with your providers "tenet id" which I could find by logging on to Azure even without permissions to create an app.

Hope someone else finds this useful!
John




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-17 19:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05 17:22 [bug#56404] [PATCH 0/2] gnu: Add python-msal and oauth2ms John Kehayias via Guix-patches via
2022-07-05 17:24 ` [bug#56404] [PATCH 1/2] gnu: Add python-msal John Kehayias via Guix-patches via
2022-07-05 17:25 ` [bug#56404] [PATCH 2/2] gnu: Add oauth2ms John Kehayias via Guix-patches via
2022-07-17 19:41 ` bug#56404: [PATCH 0/2] gnu: Add python-msal and oauth2ms Ludovic Courtès

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.