flask-oauth-example | Example flask app demonstrating marvelapp.com oauth2 flow
kandi X-RAY | flask-oauth-example Summary
kandi X-RAY | flask-oauth-example Summary
clone repo, install the requirements in a virtual env. Make an oauth app here, and put those credentials in your env or app.py (see top of app.py). Run with python app.py.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handles the redirect handler
- View function .
flask-oauth-example Key Features
flask-oauth-example Examples and Code Snippets
Community Discussions
Trending Discussions on flask-oauth-example
QUESTION
hi I've been trying for over a month on this..
so, I'm trying to test facebook oauth so have an exact copy of flask oauth login sample code which I put in my ec2 instance bought a domain and registered it on route 53, made an application load balancer and assigned my ec2 in it.
the port... I'm using flask default(5000) and security group setting has inbound port 5000(and others I've tried so far - made it for testing anyways) opened and all traffic
on outbound. like this
health check is working perfectly fine. I can see from flask log it's working and returning 200.
but when I type in the domain name it's returning 502 bad gateway and I have no clue what's going on... typing in ip address of the ec2 instance works.. on ec2 instance side where I've turned my app on returns code 400 bad request syntax like this - i have no idea why words are cracked tried changing encoding formats and all failed.
so... I've checked security ports, have checked route53 if I assigned my instance on A-type record set correctly, ec2 instance itself seems to work fine, health check from target groups goes all fine, and I'm out of ideas on where i've done wrong. please help me on this....
stuck on one thing for a long time sure is stressful.. :(
EDIT: curl -vvv {domain_name} returns:
...ANSWER
Answered 2018-Mar-28 at 15:42The 502 Bad Gateway error is an HTTP status code that means that ELB received an invalid response from the EC2 Instance.
I guess you have selected HTTPS in your target group, create a new target group with HTTP and attach it to the load balancer.
QUESTION
Hi I'm trying to make a test server to get Facebook authentication working.
am using python flask, current app itself is a copy of this oauth sample. nothing else.
so, I have set up everything I could think of:
- an ACM to get https working,
- a Load balancer(classic) - have set up cert from ACM i made above and the instance I want to connect to.
- domain address registered in route 53, set up an alias target(the ELB)
- etc.
and after setting this up I went into my ec2 instance using putty, set up an virtual env. and ran the app using the venv. aaaaand the app itself is working fine, except the ELB health check can't pick it up, nor when I try to access by typing in the domain address.
it only works when typing in EC2 instance's public IP. and now I'm stuck here, now knowing how to 'integrate' the instance to my registered domain...
the instance status in the load balance's instance tab shows OutOfService
^ EDIT: the instance tab works, it was due to PORT number. but domain still doesnt responds...
is there anything else I could check to do this? any help is greatly appreciated.... been stuck with this for over a month now :(
EDIT: currently the ELB gets health checks from ec2 instances properly. but I get infinite loading when I try to access by typing in domain name.
...ANSWER
Answered 2018-Mar-27 at 03:51Hard to troubleshoot on here- but I would bet that you need to setup the security group so that the load balancer can hit the correct port on your EC2 instance (That is the most common cause of this)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flask-oauth-example
You can use flask-oauth-example like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page