Skip to content

Enhance client_id extraction with additional regex#8

Open
mahmoudelfawair wants to merge 1 commit into
gremwell:masterfrom
mahmoudelfawair:patch-1
Open

Enhance client_id extraction with additional regex#8
mahmoudelfawair wants to merge 1 commit into
gremwell:masterfrom
mahmoudelfawair:patch-1

Conversation

@mahmoudelfawair
Copy link
Copy Markdown

The office.com method was raising 'An error occured when generating headers' because appid place got changed. The appId is now embedded inside the aadConfig JS object as:

aadConfig: { replyUri: \'https://www.office.com/\', host: \'login.microsoftonline.com\', appId: \'...-...\' } ...
image

The suggested fix now just adds a fallback regex for the current format.

The office.com method was raising 'An error occured when generating headers'
because Microsoft changed their login page structure. The appId is now embedded
inside the aadConfig JS object as:
  appId: '...'
instead of the old JSON format \"appId\":\"...\".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant