OC5:FTR-rp-tok-csjwt-x-Gluu OX

From OSIS Open Source Identity Systems
Jump to: navigation, search

{{#vardefine:DtArticleSortKey|}}

FTR-rp-tok-csjwt-x-Gluu OX

{{#vardefine:page|{{#if:{{#var:page}}|{{#var:page}}|FTR-rp-tok-csjwt-x-Gluu OX}}}}{{#vardefine:nr|{{#if:{{#var:nr}}|{{#expr:{{#var:nr}}+1}}|1}}}}{{#vardefine:url|{{#replace:{{#var:page}}| |_}}}}{{#if:FTR-rp-tok-csjwt-x-Gluu OX|{{#if:{{#var:DtArticleSortKey}}||}}}}{{#ifeq:{{#var:header}}|no||

{{#ifeq:no|no||
{{#if:{{#var:refs}}|[[{{#var:page}}|no_ref's]]|[[Special:Call/DT Article show Refs,page={{#var:page}},refs=yes|ref's]]}}}} {{#if:{{#var:DtArticleSortKey}}|({{#var:DtArticleSortKey}})}}    list help  [[Special:Call/DT Article copy,cat=OC5 Result,from={{#var:page}},namespace=OC5|copy]]  [[Special:Call/DT Articles list XML,type=OC5 Result,title={{#var:page}},namespace=OC5|as XML]]  edit
}}
{{#if:|Feature Test Result |Feature Test Result }}   FTR-rp-tok-csjwt-x-Gluu OX
Test Identifier   bgcolor={{{color}}}}}|FTR-rp-tok-csjwt
Primary Solution   bgcolor={{{color}}}}}|Gluu OX
Test   bgcolor={{{color}}}}}|{{#dpl:|category = FeatureTest|namespace = OC5|include={FeatureTest}:identifier |includematchparsed=/identifier\s*=\s*FTR-rp-tok-csjwt/s| noresultsheader= no matching test found.\n

}}

Date Tested   bgcolor={{{color}}}}}|4 September 2013
Tested by   bgcolor={{{color}}}}}|Javier Rojas Blum
Outcome   bgcolor={{{color}}}}}|Works
Solutions Involved   bgcolor={{{color}}}}}|{{#if: Gluu_OX | OC5:Gluu_OX | }} {{#if: | [[OC5:]] | }}  
  bgcolor={{{color}}}}}|{{#if: | [[OC5:]] |   }}
Operating System   bgcolor={{{color}}}}}|Fedora 18 x86_64
Browser   bgcolor={{{color}}}}}|Firefox 22.0
Notes   bgcolor={{{color}}}}}|https://svn.gluu.info/repository/openxdi/oxAuth/Client/src/test/java/org/xdi/oxauth/interop/CanMakeAccessTokenRequestWithClientSecretJwtAuthentication.java
#######################################################
TEST: OC5:FeatureTest-Can Make Access Token Request with client secret jwt Authentication
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/seam/resource/restv1/oxauth/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: seed.gluu.org

{
    "redirect_uris": [
        "https://seed.gluu.org/oxauth-rp/home.seam",
        "https://client.example.com/cb",
        "https://client.example.com/cb1",
        "https://client.example.com/cb2"
    ],
    "application_type": "web",
    "client_name": "oxAuth test app",
    "token_endpoint_auth_method": "client_secret_jwt",
    "sector_identifier_uri": "https://seed.gluu.org/oxauth-client/test/resources/sector_identifier.js"
}

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

{
    "client_id": "@!1111!0008!2673.3B61",
    "client_secret": "94a06d1c-72b7-42db-81ee-48cbc6a13475",
    "registration_access_token": "3d67c5b1-96c8-41c5-8108-aa69e148d3d4",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!2673.3B61",
    "client_id_issued_at": 1378349473,
    "client_secret_expires_at": 1378435873,
    "response_types": ["code"],
    "application_type": "web",
    "client_name": "oxAuth test app",
    "token_endpoint_auth_method": "client_secret_jwt",
    "sector_identifier_uri": "https://seed.gluu.org/oxauth-client/test/resources/sector_identifier.js",
    "subject_type": "public",
    "id_token_signed_response_alg": "RS256",
    "require_auth_time": false,
    "request_uris": [],
    "scopes": [
        "openid",
        "address",
        "profile",
        "phone",
        "email"
    ]
}

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/authorize?response_type=code&client_id=%40%211111%210008%212673.3B61&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&state=STATE_XYZ

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam?code=a7f30142-dc07-4409-8917-d01bb6aec65c&auth_level=10&auth_mode=basic&session_id=cc1fccdb-d356-48ac-a427-515c5e7b2299&state=STATE_XYZ&scope=openid+profile+address+email

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/seam/resource/restv1/oxauth/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: seed.gluu.org

grant_type=authorization_code&code=a7f30142-dc07-4409-8917-d01bb6aec65c&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&client_assertion=eyJ0eXAiOiJKV1MiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJAITExMTEhMDAwOCEyNjczLjNCNjEiLCJzdWIiOiJAITExMTEhMDAwOCEyNjczLjNCNjEiLCJhdWQiOiJodHRwczovL3NlZWQuZ2x1dS5vcmcvb3hhdXRoL3NlYW0vcmVzb3VyY2UvcmVzdHYxL294YXV0aC90b2tlbiIsImp0aSI6ImEzY2VlNzUyLTJlYTAtNDNkZi04ODgyLTVlYjZiMTcwMDQ3MSIsImV4cCI6MTM3ODM0OTc4NiwiaWF0IjoxMzc4MzQ5NDg2fQ.t6nZHClTjjlSQewz4J6IPpobCi2NbLHRvfND1F0e8rY

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 200
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

{"access_token":"825199ab-6c24-4461-b2e5-e721c6ae7521","token_type":"bearer","expires_in":3599,"refresh_token":"337cd82c-a861-40e1-a7f2-9f86204df07a","id_token":"eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCEyNjczLjNCNjEiLCJleHAiOjEzNzgzNTMwODYsImlhdCI6MTM3ODM0OTQ4Niwic3ViIjoibWlrZSIsIm94SW51bSI6IkAhMTExMSEwMDAwIUQ0RTciLCJveFZhbGlkYXRpb25VUkkiOiJodHRwczovL3NlZWQuZ2x1dS5vcmcvb3hhdXRoL3NlYW0vcmVzb3VyY2UvcmVzdHYxL294YXV0aC9jaGVja19zZXNzaW9uIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.SYl20o95gOPaCmOW8nPIyQZLmdbI6IjzDNevUWHU89XfkZzr93m6oOTaVqF70o2esfeTPkNpL1b-Dcf992dajIyl8d4vGw9b2vPI54F39pztlIUKpG8wfaaD9YK060TEkgYpJeSQo8DA05xBTMI5YyRpPPf-c0fHf1KEdISVeUen2tbTBpPM5YcoYt6KsPUe8xnQS2VKSS_SPkKCTIr47uUsHzzDMvp_jZiZxV1AQj6Gms9JYBh9EpBu3zRVfFNDnv5S_okHE0_FqvlVJXYH83FwjBKJiPM4JpaJlw_w4sPGiYqLeLfZeRmDOs--okmh-7-ngmT7t7G3Xn44HRmpoQ"}


===============================================
Custom suite
Total tests run: 1, Failures: 0, Skips: 0
===============================================

Back To

{{#dpl: namespace = OC5 | linksto = OC5:FTR-rp-tok-csjwt-x-Gluu OX }}