I'm developing a webapp using Python Flask. Authentication is done using Soundcloud OAuth.
I developed everything locally and it worked fine.
I configured the Soundcloud app 'Redirect URI' to
http://localhost:5000/index
Then I wanted to deploy the app on a Digital Ocean virtual root server using Ubuntu 14.04 (as used for development).
And from then whichever 'Redirect URI' I provided it didn't work.
I used:
http://178.62.???.??:5000/index
http://178.62.???.??/index
Gives me:
http://178.62.???.???:5000/index?error=redirect_uri_mismatch&error_description=The+redirection+URI+provided+does+not+match+a+pre-registered+value.#
I have no clue how to get that running.
Anyone used Soundcloud OAuth with Flask and got it running?
Thanks for your help!
Related
I am trying to deploy a fastAPI app with python 7 to the GCP app engine. After configuring the app.yaml file app is working fine with dev_server while using the command dev_server app.yaml. But after deploying the app using gcloud app deploy and followed by gcloud app browser I am getting an access URL.
After hitting the URL I am facing an error as below
Note - I am using a quick lab for learning the deployment. And things are working fine with flask app but not working with the FastApi app.
Since you already used the devapp_server command in order to test your application and it works, as a suggestion in order to check why you are facing this issue, you can try to see your App’s logs in the Developer Console from GCP.
Also, can be checked with the Logs Viewer and the console using the command line:
gcloud app logs tail
Check this documentation for further information about writing and viewing logs from your app.
Moreover I could find a tutorial about Deploying FastAPI in AppEngine. Maybe it could help you to develop it through this way also.
I want to deploy django app. I tried with apache in manual and Iam failing to do that. I want to deploy through setup python app icon by following this video - https://www.youtube.com/watch?v=Y1jJPVhanzU&t=528s
But no such icon is present on my bluehost filemanager. The support chat person said that has to install from my side. Python and apache are installed on whm but how to get that icon
it's very easy with cpanel just follow these steps in this website and your django app will work perfect
https://blog.umersoftwares.com/2019/09/django-shared-hosting.html
I'm developing a web application with flask for an acquaintance of mine, who will then host the website on a VPS. Since I don't want to give my source code as well, but only the service, is there a way to run it on the VPS without making the source code visible?
It's me again. I have had more problems getting Flask to work with Azure Active Directory. I am almost there but I just cannot figure out how to get over this hurdle. If anyone can help me, I'd be forever grateful.
Here is what works so far:
Running my app on the local host with Flask Dance user authentication
Deploying my app to Azure without any user authentication in it.
Deploying my app to Azure using the Adal library for user authentication (problem is I want to use Flask Dance instead of Adal because of other features).
So if I run it locally, it works perfectly. If I comment out the few lines of code about Flask Dance in my app, it works perfectly as an Azure website. If I include those lines of code referencing Flask Dance and upload it to Azure, it builds successfully, but when I go to the website, it just stalls and nothing happens until it finally times out with a 500 error. So far Microsoft has not been able to help me either.
I run it just like this:
blueprint = make_azure_blueprint(
client_id="{client_id}",
client_secret="{client_secret}",
tenant="{tenant_name}"
)
app.register_blueprint(blueprint, url_prefix="/getAToken")
Then I have a small decorator function checking if the user is logged in that checks if the user is azure authorized and if not, redirects them to the azure login page. All of this works perfectly fine at the local host, so where is it going wrong?
I've downloaded google_appengine version 1.3.1. Using some web tutorials, I've created basic django 1.1.1 application. Using appcfg I managed to deploy it on GAE and it works. The problem is, that application doesn't want to work on dev_appengine.py developement server.
Whenever I run the app GAE local server is returning HTTP 200 without any content. If I set basic environement and run main.py manually, then the page is properly returned on stdout.
I've also created very basic helloworld application, and this one is working ok on the devel server.
Do you have any idea, how can I debug the devel server? Option -d doesn't give any usefull insight at all.
I had module nammed same way as the default GAE launcher (main/ and main.py). After renaming the launcher everything works great.