oAuth get access token using python

Arald.d.320
Posts: 21 🌱
Hi,
Does anyone have an Python example of how to get an access token using the oAuth2 workflow without using an refresh token? I can get an access token based on a valid refresh-token but I'm trying to build a solution which does not rely on a refesh-token to be available. I get stuck in the login step because I can't find a way for python to submit credentials in such a way that Brightspace accepts it as a valid authorization workflow. Doing a post to the login logic with all the fields that are on the login page is not enough. I get: "Unable to find context of authorization workflow.".
Take care
Arald