oAuth get access token using python

Arald.d.320
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

Tagged:

Answers

  • Pulkit.Y.864
    Pulkit.Y.864 Posts: 31

    Hi @Arald.d.320,

    Thank you for reaching out to the Brightspace Community!

    It looks like you are looking for an example of Python code. Since this inquiry is more focused on developers, I recommend posting it to our Brightspace Developer Community group.

    The Developer Group is the place to go to bounce ideas off developers in the community.

    Should you have any other questions, please do not hesitate to contact us.

    Regards,
    Pulkit