OC5:FTR-op-rtyp-idtcode-x-Gluu OX

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

{{#vardefine:DtArticleSortKey|}}

FTR-op-rtyp-idtcode-x-Gluu OX

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

}}

Date Tested   bgcolor={{{color}}}}}|16 July 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/SupportCombinationOfIdTokenCodeResponseTypes.java
#######################################################
TEST: OC5:FeatureTest-Support Combination of id token code Response Types
#######################################################
-------------------------------------------------------
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": [
        "id_token",
        "code"
    ],
    "application_type": "web",
    "client_name": "oxAuth test app",
    "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!D9FF.440B",
    "client_secret": "83cdec34-646e-48f6-ad61-8471c7c9edc9",
    "registration_access_token": "173b95f1-9353-42a6-9ae4-7c928b7e5408",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!D9FF.440B",
    "client_id_issued_at": 1374002460,
    "client_secret_expires_at": 1374088860,
    "response_types": [
        "id_token",
        "code"
    ],
    "application_type": "web",
    "client_name": "oxAuth test app",
    "token_endpoint_auth_method": "client_secret_basic",
    "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=id_token+code&client_id=%40%211111%210008%21D9FF.440B&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam%3Ffoo%3Dbar&nonce=a35cfe31-715b-4271-9fd2-e839d47155f9&state=STATE_XYZ

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam?foo=bar#&code=3ca45af5-1c51-4643-9b65-ac1e0ef9741b&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCFEOUZGLjQ0MEIiLCJleHAiOjEzNzQwMDYwNzcsImlhdCI6MTM3NDAwMjQ3Nywic3ViIjoibWlrZSIsIm94SW51bSI6IkAhMTExMSEwMDAwIUQ0RTciLCJub25jZSI6ImEzNWNmZTMxLTcxNWItNDI3MS05ZmQyLWU4MzlkNDcxNTVmOSIsImF1dGhfdGltZSI6MTM3NDAwMjQ2NywiY19oYXNoIjoiMU5FcmlKeEh3RGV6QmFrZ2hXbG5qZyIsIm94VmFsaWRhdGlvblVSSSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2NoZWNrX3Nlc3Npb24iLCJveE9wZW5JRENvbm5lY3RWZXJzaW9uIjoib3BlbmlkY29ubmVjdC0xLjAifQ.CG1jRxY-zEW7vc87ZwAaON8PBQfoja-eQRzW87kuSkiqdYhVLQ94vH4MH-1nBB2t5-nZnikFEd1GSA-1CeaBVJZhdE2x8wnes0-RdEguCV1jsTaiDROI525c3qUjTk5Cu82i0LgB3HecN38i7cQzctjnm08L_eiU_CvXpoYdHMXosqYThAdrF36cTUucFDyBAM8Spj_3YXWSR6LJ9PUEiFhhUYb71x7N3tQodc1ebu9tgq6Ite6kFBoKgEIpLHTolXJHSlWIHjfIhFUCiPBSwvfqf3yfG3oysx3an6zgGnrQQsdMZsMVvWC765l5sBBsvZuJgLp26navd8dCajyNhw&auth_level=10&auth_mode=basic&session_id=b1a193c0-d10e-40b5-a15d-1617c64681e9&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-op-rtyp-idtcode-x-Gluu OX }}