-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples: addition of CERN authentication app #17
examples: addition of CERN authentication app #17
Conversation
I couldn't test the application completly since CERN configuration has a strong dependency in Invenio-Groups module. The current state can go to CERN authentication, grant access and return to the application but in this point is crashing because |
You will be redirected to CERN to authorize the application. | ||
|
||
Click on `Grant` and you will be redirected back to | ||
`http://localhost:5000/oauth/signup/cern/` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you redirect to http://localhost:5000/oauth/signup/cern/
because you don't get an email address from the CERN oauth server?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lnielsen Sorry, it was a mistake, I am returning to https://localhost:5000/oauth/authorized/cern/
1ca3ff0
to
2832914
Compare
@lnielsen The thing is that CERN requires a HTTPS direction as return url. I was testing some other ways to provide a secure connection ( |
I'm not against using gunicorn for HTTPs, however, it's just for the example app, so I think its better to not put in the setup.py and just put a line in the documentation instead about What were the problems with using: http://werkzeug.pocoo.org/docs/0.11/serving/#ssl ? |
4dc3ef1
to
8db2042
Compare
@lnielsen I have removed * Debugger is active!
* Debugger pin code: 254-670-152
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 58830)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 655, in __init__
self.handle()
File "/home/javier/Documents/invenio-oauthclient/env/local/lib/python2.7/site-packages/Werkzeug-0.11.2-py2.7.egg/werkzeug/serving.py", line 217, in handle
rv = BaseHTTPRequestHandler.handle(self)
File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/home/javier/Documents/invenio-oauthclient/env/local/lib/python2.7/site-packages/Werkzeug-0.11.2-py2.7.egg/werkzeug/serving.py", line 251, in handle_one_request
elif self.parse_request():
File "/usr/lib/python2.7/BaseHTTPServer.py", line 281, in parse_request
"Bad HTTP/0.9 request type (%r)" % command)
File "/usr/lib/python2.7/BaseHTTPServer.py", line 364, in send_error
self.log_error("code %d, message %s", code, message)
File "/home/javier/Documents/invenio-oauthclient/env/local/lib/python2.7/site-packages/Werkzeug-0.11.2-py2.7.egg/werkzeug/serving.py", line 273, in log_error
self.log('error', *args)
File "/home/javier/Documents/invenio-oauthclient/env/local/lib/python2.7/site-packages/Werkzeug-0.11.2-py2.7.egg/werkzeug/serving.py", line 279, in log
_log(type, '%s - - [%s] %s\n' % (self.address_string(),
File "/home/javier/Documents/invenio-oauthclient/env/local/lib/python2.7/site-packages/Werkzeug-0.11.2-py2.7.egg/werkzeug/serving.py", line 267, in address_string
return self.environ['REMOTE_ADDR']
AttributeError: 'WSGIRequestHandler' object has no attribute 'environ'
---------------------------------------- |
8db2042
to
3386b65
Compare
@jirikuncar Ping. |
@JavierDelgadoFernandez please rebase |
3386b65
to
b3de166
Compare
@jirikuncar Done. |
* Adds an example application using CERN authentication. Signed-off-by: Javier Delgado <javier.delgado.fernandez@cern.ch>
b3de166
to
c394d64
Compare
@jirikuncar Rebased after HTTPretty issue. |
Signed-off-by: Javier Delgado javier.delgado.fernandez@cern.ch