Forum Discussion

AndrewX's avatar
AndrewX
Iron Contributor
Feb 26, 2021

PowerShell delegated auth

Hey question, I want to develop some interactive console PowerShell, using delegated ms graph auth.

I want the user to authenticate or be authenticated and have permissions to only their own Office365 things, ie. email messages.

What is best authentication flow to use?

1 Reply

  • AndrewX's avatar
    AndrewX
    Iron Contributor
    Update: I have started hacking and gone with device code. It pops up a browser, stick in a code and boom, rip out the oauth token.

    Seems good so far.

    Please let me know if I’m making a mistake.