Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Obtain tokens using authorization code flow using ESTSAuth cookie #9

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rotarydrone
Copy link
Contributor

I should have just consolidated this and the previous PR 馃槅

Introduces alternative method to device code flow for obtaining tokens. Given an ESTSAuth or ESTSAuthPersistent cookie, obtained via AitM phishing or other cookie theft methods, we can use the Authorization Code flow to get a refresh token ("code") for a FOCI application (by default: Teams).

This exchange method was implemented using Selenium in roadtx; I have not yet encountered a scenario where user interaction is actually required if a valid cookie is presented and it seems to work just fine using Invoke-RestMethod/invoke-WebRequest calls.

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.

None yet

1 participant