搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

add our own Oauth2 provider, clientID, clientSecret, ...

  • 1 回覆
  • 0 有這個問題
  • 18 次檢視
  • 最近回覆由 Matt

more options

Hello. I have my own self hosted mail server and I would like to use OIDC/Oauth2 authentification anbd take benefit of MFA/WebAuthN. I am interested in using OAuth connection with Thunderbird

Right now the definition of clientId, scopes, endpoints are hardcoded here: https://github.com/mozilla/releases-comm-central/blob/master/mailnews/base/src/OAuth2Providers.jsm

Do you have any tip to add our own server definition without needing to recompile Thunderbird ?

I saw previously it seems to be possible to append definition via this hack; https://thunderbird.topicbox.com/groups/addons/Tc85dff9ce12063c6-Mca4319b1e41dfa4b426e22fc/extension-to-add-custom-oauth-provider but now ChromeUtils.import() exports only EXPORTED_SYMBOLS which contains only getters functions

Another manner could be to improve https://github.com/mozilla/releases-comm-central/blob/master/mailnews/base/src/OAuth2Providers.jsm and add function where a plugin could append new definition Do you have any suggestion, better idea ?

Kind Regards, Edouard

Hello. I have my own self hosted mail server and I would like to use OIDC/Oauth2 authentification anbd take benefit of MFA/WebAuthN. I am interested in using OAuth connection with Thunderbird Right now the definition of clientId, scopes, endpoints are hardcoded here: https://github.com/mozilla/releases-comm-central/blob/master/mailnews/base/src/OAuth2Providers.jsm Do you have any tip to add our own server definition without needing to recompile Thunderbird ? I saw previously it seems to be possible to append definition via this hack; https://thunderbird.topicbox.com/groups/addons/Tc85dff9ce12063c6-Mca4319b1e41dfa4b426e22fc/extension-to-add-custom-oauth-provider but now ChromeUtils.import() exports only EXPORTED_SYMBOLS which contains only getters functions Another manner could be to improve https://github.com/mozilla/releases-comm-central/blob/master/mailnews/base/src/OAuth2Providers.jsm and add function where a plugin could append new definition Do you have any suggestion, better idea ? Kind Regards, Edouard

所有回覆 (1)

more options

you probably need to ask that in a developer forum. https://thunderbird.topicbox.com/groups/developers

My request to implement dynamic oauth registration has not gone as well as I hoped https://bugzilla.mozilla.org/show_bug.cgi?id=1602166