mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-11 15:14:31 +08:00
Switch t Office365 desktop app flow (new redirect URI)
This commit is contained in:
parent
eded1ac5ef
commit
c6815cb535
3 changed files with 964 additions and 242 deletions
|
@ -265,7 +265,7 @@ export async function buildO365AccountFromAuthResponse(code: string) {
|
|||
client_id: O365_CLIENT_ID,
|
||||
code_verifier: CODE_VERIFIER,
|
||||
grant_type: `authorization_code`,
|
||||
redirect_uri: `http://localhost:${LOCAL_SERVER_PORT}`,
|
||||
redirect_uri: `http://localhost:${LOCAL_SERVER_PORT}/desktop`,
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -317,7 +317,7 @@ export function buildGmailAuthURL() {
|
|||
export function buildO365AuthURL() {
|
||||
return `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?${qs.stringify({
|
||||
client_id: O365_CLIENT_ID,
|
||||
redirect_uri: `http://localhost:${LOCAL_SERVER_PORT}`,
|
||||
redirect_uri: `http://localhost:${LOCAL_SERVER_PORT}/desktop`,
|
||||
response_type: 'code',
|
||||
scope: O365_SCOPES.join(' '),
|
||||
response_mode: 'query',
|
||||
|
|
1201
app/package-lock.json
generated
1201
app/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -48,6 +48,7 @@
|
|||
"moment-timezone": "^0.5.32",
|
||||
"mousetrap": "^1.5.3",
|
||||
"node-emoji": "^1.2.1",
|
||||
"node-fetch": "^2.6.0",
|
||||
"optimist": "0.4.0",
|
||||
"pick-react-known-prop": "0.x.x",
|
||||
"proxyquire": "1.3.1",
|
||||
|
|
Loading…
Add table
Reference in a new issue