Hello,
I have successfully managed to set up a SPA (Vue). Also I managed to get the sample Node resource-server to run, and display the sample “messages”.
Now, I tried to use a Flask Python script to act as resource-server. To that end I tried creating a new application and downloaded the code sample from there (and later adapted the client id etc.). However I found that this code sample doesn’t quite work, e.g. I had to manually insert CORS management into the code, and then it would still fail with some SSL library issue.
So I went and grabbed the code from here: samples-python-flask/README.md at master · okta/samples-python-flask · GitHub
Adapted the client_secret_json. Left “client secret” blank as not this is not applicable for the SPA with PKCE I believe.
Anyway, I can’t get this one to run; while the resource server successfully does run in the background, I still get 401 unauthorized responses when trying to access the ‘messages’ section in the Vue frontend.
Does anybody have a Flask/Python code snippet that runs out of the box, or give me a hint on how to get it to run?
Thank you!!
Mike