File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1+ # 2.14.2
2+
3+ ### Bugs
4+
5+ * Fixes login failures when proxy is misconfigured [ \# 2551]
6+
17# 2.14.1
28
39### Bugs
Original file line number Diff line number Diff line change 1616 "name" : " Microsoft Corporation" ,
17171818 },
19- "version" : " 2.14.1 " ,
19+ "version" : " 2.14.2 " ,
2020 "main" : " build/client/main.prod.js" ,
2121 "scripts" : {
2222 "ts" : " ts-node --project tsconfig.node.json --files" ,
Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ export default class AuthProvider {
172172
173173 private async _createClient ( tenantId : string ) :
174174 Promise < PublicClientApplication > {
175- const proxySettings = await this . app . proxySettings . settings ;
176- const proxyUrl = proxySettings ?. http . toString ( ) ;
175+ const proxyUrl = await this . _loadProxyUrl ( ) ;
176+
177177 if ( proxyUrl ) {
178178 log . info ( `[${ tenantId } ] Proxying auth endpoints through ` +
179179 proxyUrl ) ;
@@ -197,6 +197,12 @@ export default class AuthProvider {
197197 } ) ;
198198 }
199199
200+ private async _loadProxyUrl ( ) {
201+ const proxySettings = await this . app . proxySettings . settings ;
202+ const protocolUrl = proxySettings ?. https ?? proxySettings ?. http ;
203+ return protocolUrl ?. toString ( ) ;
204+ }
205+
200206 private async _getAccount ( tenantId : string ) : Promise < AccountInfo > {
201207 if ( tenantId in this . _accounts ) {
202208 return this . _accounts [ tenantId ] ;
You can’t perform that action at this time.
0 commit comments