mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Handle state double encoding in Microsoft auth provider
This commit is contained in:
parent
b092489ffd
commit
cb58105623
|
@ -341,7 +341,8 @@ export class AzureActiveDirectoryService {
|
|||
const query = parseQuery(uri);
|
||||
const code = query.code;
|
||||
|
||||
if (query.state !== state) {
|
||||
// Workaround double encoding issues of state in web
|
||||
if (query.state !== state && decodeURIComponent(query.state) !== state) {
|
||||
throw new Error('State does not match.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue