I am writing some automation for signed in users where I'd like to auto insert Outlook tasks into their task list. If I go to graph explorer and click on the "access token" tab, I get an access token for the logged in user. I can then put that token into a variable and my script works just fine to insert outlook tasks when I post to "https://graph.microsoft.com/v1.0/me/todo/lists/{taskListId}/tasks".
I'll fully admit I'm new to Graph but it seems fairly easy to work with it's API's once you have the bearer token. So my question comes down to: how do I get that token for the logged in user via an API call? I've done quite a bit of research and anything I see points to needing a registered application with the appropriate permissions to see the entire organizations info. That is not what I want. I want to only interface with the logged in user (/me). It appears Graph Explorer has a way to get a bearer token through the web UI. Is there not a way to get this token via an API call? The closest I've come to is https://docs.microsoft.com/en-us/graph/auth-v2-user but that seems to be for for a registered app to act on behalf of a user. Am I just completely missing something?
Thank you for the help!