Handle state double encoding in Microsoft auth provider

This commit is contained in:
Rachel Macfarlane 2020-03-19 08:41:57 -07:00
parent b092489ffd
commit cb58105623

View file

@ -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.');
}