OC5:FTR-op-nonce-present-x-Gluu OX

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

{{#vardefine:DtArticleSortKey|}}

FTR-op-nonce-present-x-Gluu OX

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

}}

Date Tested   bgcolor={{{color}}}}}|23 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/SupportRequestsContainingNonce.java
#######################################################
TEST: OC5:FeatureTest-Support Requests Containing nonce
#######################################################
-------------------------------------------------------
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": [
        "token",
        "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!69FC.A9AF",
    "client_secret": "b665e8be-5b12-4415-8d8a-aababb743d92",
    "registration_access_token": "450c4178-f67b-4cdc-b12b-02bd8573e94b",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!69FC.A9AF",
    "client_id_issued_at": 1377289367,
    "client_secret_expires_at": 1377375767,
    "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": [
        "token",
        "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=token+id_token&client_id=%40%211111%210008%2169FC.A9AF&scope=openid&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&nonce=bdaa33aa-756f-4945-aef1-d110e1e03561&state=af0ifjsldkj

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam#access_token=31ef9eda-be0f-4a18-a19b-d3b6fd6ec3d8&token_type=bearer&expires_in=3599&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCE2OUZDLkE5QUYiLCJleHAiOjEzNzcyOTI5NzksImlhdCI6MTM3NzI4OTM3OSwic3ViIjoibWlrZSIsIm94SW51bSI6IkAhMTExMSEwMDAwIUQ0RTciLCJub25jZSI6ImJkYWEzM2FhLTc1NmYtNDk0NS1hZWYxLWQxMTBlMWUwMzU2MSIsImF1dGhfdGltZSI6MTM3NzI4OTM3NSwiYXRfaGFzaCI6InRNeGZpOG1BWGtXNFhjNmlFZi1NY0EiLCJveFZhbGlkYXRpb25VUkkiOiJodHRwczovL3NlZWQuZ2x1dS5vcmcvb3hhdXRoL3NlYW0vcmVzb3VyY2UvcmVzdHYxL294YXV0aC9jaGVja19zZXNzaW9uIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.Y_m95bXtC6vhLfO0c3oeX3b1CvEqIIrKktGrsYezserkJ8-Qh6UVkw3TJ1D1MCDuyvqBL1LZeVcgTKJDLxHXgKQzZzL3R50mvvYPCe5ROQ0Zw8IOGNpCwlaVKTDeqBTAYjdtEErU01LCn-ADk_7a9Jho9QfiYNxC5OFEZy-ZnYhYcykWhEJAYtdsIRJWETpZ4akOVuA9Q7gI_yR69LpYWom-g9RGtCfdcK5UL4WC5iVgBHDK1ONve8HyXffdux33XN1LFaVg6Haj7JLIg7VB1kVQyC-HhKQIW8IbC7CK8ZQ_MrS3Z9iRQHoOMNZ7f3hI127k2BULXmYGmCYWKBTKYw&auth_level=10&auth_mode=basic&session_id=466acbd1-da6f-4410-a670-81e059b064c4&state=af0ifjsldkj&scope=openid


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

Back To

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