Skip to content

Instantly share code, notes, and snippets.

@ritou
Created February 22, 2012 13:49
Show Gist options
  • Select an option

  • Save ritou/1885235 to your computer and use it in GitHub Desktop.

Select an option

Save ritou/1885235 to your computer and use it in GitHub Desktop.
oictest result for my OP
Test Tool : http://www.kodtest.se/oictest/
Env : VM Player, CentOS 6(64bit)
# setup
$ cd oictest/test/oic
$ cat ryo.py
#!/usr/bin/env python
import json
info = {
"client": {
"redirect_uris": ["https://smultron.catalogix.se/authz_cb"],
"contact": ["roland.hedberg@adm.umu.se"],
"application_type": "web",
"application_name": "OIC test tool",
"token_endpoint_auth_type": "client_secret_post",
"require_signed_request_object": "HS256",
"register":True,
},
"provider": {
"version": { "openid": "3.0"},
"dynamic": "https://openidconnect.info/",
},
"interaction": {
"https://openidconnect.info/account/login": ["chose",
{"path": "/account/fake"}],
"https://openidconnect.info/connect/consent": ["select_form", {}],
}
}
print json.dumps(info)
$ # result
$ oic_flow_tests.py ryo mj
* (mj-00)Client registration Request - OK
* (mj-01)Request with response_type=code - OK
* (mj-02)Request with response_type=token - OK
* (mj-03)Request with response_type=id_token - OK
* (mj-04)Request with response_type=code token - OK
* (mj-05)Request with response_type=code id_token - OK
* (mj-06)Request with response_type=id_token token - OK
* (mj-07)Request with response_type=code id_token token - OK
* (mj-08)Check ID Endpoint Access with GET and bearer_header - OK
* (mj-09)Check ID Endpoint Access with POST and bearer_header - OK
* (mj-10)Check ID Endpoint Access with POST and bearer_body - OK
* (mj-11)UserInfo Endpoint Access with GET and bearer_header - OK
* (mj-12)UserInfo Endpoint Access with POST and bearer_header - OK
* (mj-13)UserInfo Endpoint Access with POST and bearer_body - OK
* (mj-14)Scope Requesting profile Claims - OK
* (mj-15)Scope Requesting email Claims - OK
* (mj-16)Scope Requesting address Claims - OK
* (mj-17)Scope Requesting phone Claims - OK
* (mj-18)Scope Requesting all Claims - OK
* (mj-19)OpenID Request Object with Required name Claim - OK
* (mj-20)OpenID Request Object with Optional email and picture Claim - OK
* (mj-21)OpenID Request Object with Required name and Optional email and picture Claim - OK
* (mj-22)Requesting ID Token with auth_time Claim - OK
* (mj-23)Requesting ID Token with Required acr Claim - CRITICAL ([u"Didn't get a response of the type I expected:", u" 'AuthorizationErrorResponse' instead of 'AuthorizationResponse'"])
* (mj-24)Requesting ID Token with Optional acr Claim - OK
* (mj-25)Requesting ID Token with max_age=10 seconds Restriction - CRITICAL (exp to far in the future [83826])
* (mj-26)Request with display=page - OK
* (mj-27)Request with display=popup - OK
* (mj-28)Request with prompt=none - CRITICAL (OP error)
* (mj-29)Request with prompt=login - OK
* (mjx-30)Scope Requesting profile Claims with aggregated Claims - OK
@ritou
Copy link
Copy Markdown
Author

ritou commented Feb 24, 2012

Update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment