Skip to content

Instantly share code, notes, and snippets.

@mattias-lidman
mattias-lidman / gist:1170685
Created August 25, 2011 13:41
client.conf
<VirtualHost *:443 *:4569>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/javascript text/css
SSLEngine On
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP
SSLProtocol all -SSLv2
SSLCertificateFile /vagrant/cert-file.crt
SSLCertificateKeyFile /vagrant/server.key
SSLOptions +StdEnvVars
<VirtualHost *:443>
SSLEngine On
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP
SSLProtocol all -SSLv2
SSLCertificateFile /vagrant/cert-file.crt
SSLCertificateKeyFile /vagrant/server.key
SSLOptions +StdEnvVars
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
[{"credential_type": "openid",
"openid": "mattias.lidman%40gmail.com",
"credential_key": "ee2f656f-242e-44f3-9954-4d5f7b65cab9",
"id_index": "mattias.lidman%40gmail.com",
"alias": "mattias-google",
"credential_path": "/users/mattias/credentials/openid/ee2f656f-242e-44f3-9954-4d5f7b65cab9",
"provider": "google.com",
"identity_url": "https%3A//www.google.com/accounts/o8/id%3Fid%3DAItOawmN77HU7ZK5J0cHJkp0vxxohlvTjr5q-uU",
"email": "mattias.lidman@gmail.com"},
Sep 13 20:36:19 ip-10-101-65-225 2011-09-13 20:36:19,718 DEBUG [birncommunity.auth.authentication][MainThread] Storing OAuth credential in cache with key go.teragrid.orgmattias
Sep 13 20:36:19 ip-10-101-65-225 2011-09-13 20:36:19,725 DEBUG [birncommunity.credentials.cache][MainThread] Storing credential with key go.teragrid.orgmattias
Sep 13 20:36:19 ip-10-101-65-225 uwsgi: [pid: 28183|app: 0|req: 6/7] 127.0.0.1 () {44 vars in 2315 bytes} [Tue Sep 13 20:36:17 2011] GET /authenticate_oauth_callback?oauth_token=teragrid:delegation,2011:/tempCred/f76ce58da5fa5b0818f41520037fdf0/1315946171314&oauth_verifier=teragrid:delegation,2011:/verifier/71a0ac9510826b07a5425ba1ea63f898/1315946177602 => generated 0 bytes in 2042 msecs (HTTP/1.0 302) 6 headers in 1011 bytes (1 switches on core 0)
Sep 13 20:36:19 ip-10-101-65-225 2011-09-13 20:36:19,755 DEBUG [birncommunity][MainThread] WEAVE BASE URL: https://oauth.globuscs.info
Sep 13 20:36:19 ip-10-101-65-225 2011-09-13 20:36:19,755 DEBUG [birncommunity.weave][MainThread] pr
Sep 13 20:36:19 ip-10-101-65-225 2011-09-13 20:36:19,718 DEBUG [birncommunity.auth.authentication][MainThread] Storing OAuth credential in cache with key go.teragrid.orgmattias
Sep 13 20:36:19 ip-10-101-65-225 2011-09-13 20:36:19,725 DEBUG [birncommunity.credentials.cache][MainThread] Storing credential with key go.teragrid.orgmattias
Sep 13 20:36:19 ip-10-101-65-225 uwsgi: [pid: 28183|app: 0|req: 6/7] 127.0.0.1 () {44 vars in 2315 bytes} [Tue Sep 13 20:36:17 2011] GET /authenticate_oauth_callback?oauth_token=teragrid:delegation,2011:/tempCred/f76ce58da5fa5b0818f41520037fdf0/1315946171314&oauth_verifier=teragrid:delegation,2011:/verifier/71a0ac9510826b07a5425ba1ea63f898/1315946177602 => generated 0 bytes in 2042 msecs (HTTP/1.0 302) 6 headers in 1011 bytes (1 switches on core 0)
Sep 13 20:36:19 ip-10-101-65-225 2011-09-13 20:36:19,755 DEBUG [birncommunity][MainThread] WEAVE BASE URL: https://oauth.globuscs.info
Sep 13 20:36:19 ip-10-101-65-225 2011-09-13 20:36:19,755 DEBUG [birncommunity.weave][MainThread] pr
@mattias-lidman
mattias-lidman / gist:1237330
Created September 23, 2011 13:34
Add OpenID identity
Sep 23 13:33:44 test 2011-09-23 13:33:44,152 DEBUG [birncommunity.credentials.views][MainThread] Registering credential from form
Sep 23 13:33:44 test 2011-09-23 13:33:44,156 DEBUG [birncommunity.credentials.utils][MainThread] no credential found for id https://www.google.com/accounts/o8/id
Sep 23 13:33:44 test 2011-09-23 13:33:44,157 DEBUG [birncommunity.credentials.views][MainThread] Configuring OpenID
Sep 23 13:33:44 test 2011-09-23 13:33:44,159 DEBUG [beaker.container][MainThread] data file /home/globusonline/globusonline/var/data/sessions/data/container_file/0/0e/0e4585d142b5542424611561f3bef816.cache
Sep 23 13:33:44 test 2011-09-23 13:33:44,161 INFO [pyramid_openid.view][MainThread] OpenID Field to search for: openid
Sep 23 13:33:44 test <14>2011-09-23 13:33:44,161 INFO [pyramid_openid.view][MainThread] OpenID URL supplied by user: https://www.google.com/accounts/o8/id
Sep 23 13:33:44 test 2011-09-23 13:33:44,162 INFO [pyramid_openid.view][MainThread] Store type to use: file
Sep 23 13:33:44 test 201
Config: {'x509_certificate': '/vagrant/go_ldap/keys/cacert.pem', 'ssl': 'False', 'allow_anonymous_bind': 'False', 'cache_time': '2', 'community_name': 'birn', 'x509_private_key': '/vagrant/go_ldap/keys/privkey.pem', 'root_dn_name': 'birncommunity', 'go_host_url': 'birndev.globuscs.info', 'port': '8085'}
2011-10-13 21:20:52+0200 [-] Log opened.
2011-10-13 21:20:52+0200 [-] STARTING SERVER... SSL False
2011-10-13 21:20:52+0200 [-] {'host_url': 'birndev.globuscs.info', 'cache_time': 2}
2011-10-13 21:20:52+0200 [-] GO WRAPPER birndev.globuscs.info
2011-10-13 21:20:52+0200 [-] ldap_server.go_ldap_server_factory.LDAPServerFactory starting on 8085
2011-10-13 21:20:52+0200 [-] Starting factory <ldap_server.go_ldap_server_factory.LDAPServerFactory instance at 0x97f142c>
2011-10-13 21:21:27+0200 [LDAPServer,0,127.0.0.1] handle_LDAPBindRequest
2011-10-13 21:21:27+0200 [LDAPServer,0,127.0.0.1] handle_LDAPSearchRequest
2011-10-13 21:21:27+0200 [community] root lookup 1
Config: {'x509_certificate': '/vagrant/go_ldap/keys/cacert.pem', 'ssl': 'False', 'allow_anonymous_bind': 'False', 'cache_time': '2', 'community_name': 'birn', 'x509_private_key': '/vagrant/go_ldap/keys/privkey.pem', 'root_dn_name': 'birncommunity', 'go_host_url': 'birndev.globuscs.info', 'port': '8085'}
2011-10-13 22:03:28+0200 [-] Log opened.
2011-10-13 22:03:28+0200 [-] STARTING SERVER... SSL False
2011-10-13 22:03:28+0200 [-] {'host_url': 'birndev.globuscs.info', 'cache_time': 2}
2011-10-13 22:03:28+0200 [-] GO WRAPPER birndev.globuscs.info
2011-10-13 22:03:28+0200 [-] ldap_server.go_ldap_server_factory.LDAPServerFactory starting on 8085
2011-10-13 22:03:28+0200 [-] Starting factory <ldap_server.go_ldap_server_factory.LDAPServerFactory instance at 0x979142c>
2011-10-13 22:03:37+0200 [LDAPServer,0,127.0.0.1] handle_LDAPBindRequest
2011-10-13 22:03:37+0200 [LDAPServer,0,127.0.0.1] DN in BindRequest: cn=efdisk,dc=users,o=birncommunity
2011-10-13 22:03:37+0200 [community] root lookup 3
======================================================================
ERROR: Test a registration with plain X509 (no body)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mattias/virtualenv/globusonline-graph/birncommunity/tests/x509_credential_tests.py", line 332, in test_register_with_x509
headers={CLIENT_SSL_HEADER:dummy_credential}, content_type='application/json', status=201)
File "/home/mattias/virtualenv/lib/python2.6/site-packages/webtest/__init__.py", line 211, in post
content_type=content_type)
File "/home/mattias/virtualenv/lib/python2.6/site-packages/webtest/__init__.py", line 191, in _gen_request
expect_errors=expect_errors)
2011-11-02_18:14:55.27747 Traceback (most recent call last):
2011-11-02_18:14:55.27755 File "/etc/globusonline/globusonline.wsgi", line 10, in <module>
2011-11-02_18:14:55.27760 application = loadapp('config:/etc/globusonline/globusonline.ini')
2011-11-02_18:14:55.27766 File "/usr/share/globusonline/current/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2011-11-02_18:14:55.27772 return loadobj(APP, uri, name=name, **kw)
2011-11-02_18:14:55.27776 File "/usr/share/globusonline/current/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
2011-11-02_18:14:55.27782 global_conf=global_conf)
2011-11-02_18:14:55.27785 File "/usr/share/globusonline/current/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
2011-11-02_18:14:55.27792 global_conf=global_conf)
2011-11-02_18:14:55.27795 File "/usr/share/globusonline/current/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig