mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
import from mozilla: Bug 1528136 - add details to enable OAuth2 for Office 365. r=aleca (6e1d492805)
This commit is contained in:
parent
1b648cc1d8
commit
2dfde2a62e
1 changed files with 16 additions and 0 deletions
|
|
@ -24,6 +24,15 @@ var kHostnames = new Map([
|
|||
|
||||
["imap.aol.com", ["login.aol.com", "mail-w"]],
|
||||
["smtp.aol.com", ["login.aol.com", "mail-w"]],
|
||||
|
||||
["outlook.office365.com", [
|
||||
"login.microsoftonline.com",
|
||||
"https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/POP.AccessAsUser.All https://outlook.office365.com/SMTP.Send offline_access",
|
||||
]],
|
||||
["smtp.office365.com", [
|
||||
"login.microsoftonline.com",
|
||||
"https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/POP.AccessAsUser.All https://outlook.office365.com/SMTP.Send offline_access",
|
||||
]],
|
||||
]);
|
||||
|
||||
// map of issuers to appKey, appSecret, authURI, tokenURI
|
||||
|
|
@ -58,6 +67,13 @@ var kIssuers = new Map ([
|
|||
'https://api.login.aol.com/oauth2/request_auth',
|
||||
'https://api.login.aol.com/oauth2/get_token'
|
||||
]],
|
||||
["login.microsoftonline.com", [
|
||||
'08162f7c-0fd2-4200-a84a-f25a4db0b584', // Application (client) ID
|
||||
'TxRBilcHdC6WGBee]fs?QR:SJ8nI[g82', // @see App registrations | Certificates & secrets
|
||||
// https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols#endpoints
|
||||
'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
|
||||
'https://login.microsoftonline.com/common/oauth2/v2.0/token'
|
||||
]],
|
||||
]);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue