OC5:FTR-rp-hash-c-x-Gluu OX

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

{{#vardefine:DtArticleSortKey|}}

FTR-rp-hash-c-x-Gluu OX

{{#vardefine:page|{{#if:{{#var:page}}|{{#var:page}}|FTR-rp-hash-c-x-Gluu OX}}}}{{#vardefine:nr|{{#if:{{#var:nr}}|{{#expr:{{#var:nr}}+1}}|1}}}}{{#vardefine:url|{{#replace:{{#var:page}}| |_}}}}{{#if:FTR-rp-hash-c-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-hash-c-x-Gluu OX
Test Identifier   bgcolor={{{color}}}}}|FTR-rp-hash-c
Primary Solution   bgcolor={{{color}}}}}|Gluu OX
Test   bgcolor={{{color}}}}}|{{#dpl:|category = FeatureTest|namespace = OC5|include={FeatureTest}:identifier |includematchparsed=/identifier\s*=\s*FTR-rp-hash-c/s| noresultsheader= no matching test found.\n

}}

Date Tested   bgcolor={{{color}}}}}|3 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/VerifiesCorrectCHashWhenCodeFlowUsed.java
#######################################################
TEST: OC5:FeatureTest-Verifies Correct c hash when Code Flow Used
#######################################################
-------------------------------------------------------
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"
    ],
    "response_types": [
        "code",
        "id_token"
    ],
    "application_type": "web",
    "client_name": "oxAuth test app"
}

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

{
    "client_id": "@!1111!0008!DBD7.42D6",
    "client_secret": "5bbf3f74-60c9-4435-b46a-2dfc018b823e",
    "registration_access_token": "cb68abe2-d602-4e65-bb15-542a4aecffd6",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!DBD7.42D6",
    "client_id_issued_at": 1378243552,
    "client_secret_expires_at": 1378329952,
    "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"
    ],
    "response_types": [
        "code",
        "id_token"
    ],
    "application_type": "web",
    "client_name": "oxAuth test app",
    "token_endpoint_auth_method": "client_secret_basic",
    "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+id_token&client_id=%40%211111%210008%21DBD7.42D6&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=b9390323-51db-42cb-89ca-757638e6a824&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCFEQkQ3LjQyRDYiLCJleHAiOjEzNzgyNDcxNjksImlhdCI6MTM3ODI0MzU2OSwic3ViIjoibWlrZSIsIm94SW51bSI6IkAhMTExMSEwMDAwIUQ0RTciLCJhdXRoX3RpbWUiOjEzNzgyNDM1NjAsImNfaGFzaCI6IjZBRGVHc01pWHRuMklxQzEyZE1iYnciLCJveFZhbGlkYXRpb25VUkkiOiJodHRwczovL3NlZWQuZ2x1dS5vcmcvb3hhdXRoL3NlYW0vcmVzb3VyY2UvcmVzdHYxL294YXV0aC9jaGVja19zZXNzaW9uIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwicmVnaW9uIjoiVGV4YXMiLCJwaWN0dXJlIjoiaHR0cDovL3d3dy5nbHV1Lm9yZy93cC1jb250ZW50L3VwbG9hZHMvMjAxMi8wNC9taWtlMy5wbmciLCJ6b25laW5mbyI6IkFtZXJpY2EvQ2hpY2FnbyIsImVtYWlsIjoibWlrZUBnbHV1Lm9yZyIsImxvY2FsZSI6ImVuLXVzIiwibmFtZSI6Ik1pY2hlYWwgU2Nod2FydHoiLCJsb2NhbGl0eSI6IkF1c3RpbiIsImZhbWlseV9uYW1lIjoiU2Nod2FydHoiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJnaXZlbl9uYW1lIjoiTWljaGFlbCIsImNvdW50cnkiOiJVUyJ9.GkKQc8I_2EXTNcSXYjQursPtEigmwVaFxlS195ZXG8IRXdzRG4IzxStupGBETD7TkuYphq8YDDuKIKZVvZ0wcd8afZy5i5MoB2LvmkyEshEQOMG4-FNVOi4YspxRBbgYaowvmClYLfV2r3UXbl1eiMA_Oo3lnENIb4n6yGdLnsVvephNRZiZtIZe4GeWTbWZq5KHmBUVED3w3zUIstjPSv967YoDosXeD8YRQz0fH0ple6HYbxON8PZQVI28HCPphQUMJyWrQsh_-hw0kta6qB2TuiEt1rbeJxaoLEsgkTxZ3yO33X9wwbSfbAzmnOFksfHoUsJK1tL4u2R99WU1Dw&auth_level=10&auth_mode=basic&session_id=8998f751-ef54-445d-87a8-1958d9355343&state=STATE_XYZ&scope=openid+profile+address+email


===============================================
Custom suite
Total tests run: 1, Failures: 0, Skips: 0
===============================================
-------------------------------------------------------
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"
    ],
    "response_types": [
        "code",
        "id_token"
    ],
    "application_type": "web",
    "client_name": "oxAuth test app"
}

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

{
    "client_id": "@!1111!0008!728E.66AE",
    "client_secret": "7db0c0fd-7690-4587-9bb3-06979b562b58",
    "registration_access_token": "35066930-7682-4a77-8653-b1a5eb328311",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!728E.66AE",
    "client_id_issued_at": 1378242715,
    "client_secret_expires_at": 1378329115,
    "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"
    ],
    "response_types": [
        "code",
        "id_token"
    ],
    "application_type": "web",
    "client_name": "oxAuth test app",
    "token_endpoint_auth_method": "client_secret_basic",
    "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+id_token&client_id=%40%211111%210008%21728E.66AE&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=6947ab17-ffb9-4899-955d-296ba86656d1&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCE3MjhFLjY2QUUiLCJleHAiOjEzNzgyNDYzMzQsImlhdCI6MTM3ODI0MjczNCwic3ViIjoibWlrZSIsIm94SW51bSI6IkAhMTExMSEwMDAwIUQ0RTciLCJhdXRoX3RpbWUiOjEzNzgyNDI3MjksImNfaGFzaCI6IkNtMThaMmdZcGlSNUppeFlhYXFGMFEiLCJveFZhbGlkYXRpb25VUkkiOiJodHRwczovL3NlZWQuZ2x1dS5vcmcvb3hhdXRoL3NlYW0vcmVzb3VyY2UvcmVzdHYxL294YXV0aC9jaGVja19zZXNzaW9uIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwicmVnaW9uIjoiVGV4YXMiLCJwaWN0dXJlIjoiaHR0cDovL3d3dy5nbHV1Lm9yZy93cC1jb250ZW50L3VwbG9hZHMvMjAxMi8wNC9taWtlMy5wbmciLCJ6b25laW5mbyI6IkFtZXJpY2EvQ2hpY2FnbyIsImVtYWlsIjoibWlrZUBnbHV1Lm9yZyIsImxvY2FsZSI6ImVuLXVzIiwibmFtZSI6Ik1pY2hlYWwgU2Nod2FydHoiLCJsb2NhbGl0eSI6IkF1c3RpbiIsImZhbWlseV9uYW1lIjoiU2Nod2FydHoiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJnaXZlbl9uYW1lIjoiTWljaGFlbCIsImNvdW50cnkiOiJVUyJ9.joWXtAEVIEavDWPp_mcZpW52o6nJGlsJmUha5uL3GUvTkQG_WUovVVSxwfOTi4wzNBIn9bEfWL-4QOrZgdyTrZ7aHI8kJ53m9wXWNyOenBpCbcToIG8NVUhAh7IB_yYmKBHIiF0wvC4ohg77J_ax4s3HThITKykyxRY8rfSZFDRYDN_wj5_UtAJou6taQOE-8UwjLlMZr7jlkSenFYqVx_S_gIxAP73hutBUXt49PK4blAwufmCB8Qg0rQ6qbMLQgIrItJzuj0uDfZ2cCj8Jkby9WrpdgAXs6Iv2lQO5Z0tfW72P61zmy9257wMypEX8Ig2mppdJHh3Ve8uHtmFTlg&auth_level=10&auth_mode=basic&session_id=206f7c9f-3fa0-4568-8f21-7fcccb57d658&state=STATE_XYZ&scope=openid+profile+address+email


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

Back To

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