OC5:FTR-op-ruri-regquery-x-Gluu OX

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

{{#vardefine:DtArticleSortKey|}}

FTR-op-ruri-regquery-x-Gluu OX

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

}}

Date Tested   bgcolor={{{color}}}}}|13 August 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/PreservesQueryParameterInRegisteredRedirectUri.java
#######################################################
TEST: OC5:FeatureTest-Preserves Query Parameter in Registered redirect uri
#######################################################
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /seam/resource/restv1/oxauth/register HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost

{
    "redirect_uris": ["https://seed.gluu.org/oxauth-rp/home.seam?foo=bar"],
    "response_types": ["code"],
    "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!B893.31B9",
    "client_secret": "e0474109-9687-4870-9f64-cb1b480176c3",
    "registration_access_token": "050feed3-3acc-4740-aab9-8cab8974ae59",
    "registration_client_uri": "https://localhost:8443/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!B893.31B9",
    "client_id_issued_at": 1376427540,
    "client_secret_expires_at": 1376513940,
    "redirect_uris": ["https://seed.gluu.org/oxauth-rp/home.seam?foo=bar"],
    "response_types": ["code"],
    "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://localhost:8443/seam/resource/restv1/oxauth/authorize?response_type=code&client_id=%40%211111%210008%21B893.31B9&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam%3Ffoo%3Dbar&state=af0ifjsldkj

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam?foo=bar&code=a23f73f8-8839-4734-b2ad-44d0eadbe1a7&auth_level=10&auth_mode=basic&session_id=7f0cfb9e-d78b-43f4-b21d-30e147e8f29e&state=af0ifjsldkj&scope=openid+profile+address+email


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

Back To

{{#dpl: namespace = OC5 | linksto = OC5:FTR-op-ruri-regquery-x-Gluu OX }}