OC5:FTR-op-clm-combined-x-Gluu OX

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

{{#vardefine:DtArticleSortKey|}}

FTR-op-clm-combined-x-Gluu OX

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

}}

Date Tested   bgcolor={{{color}}}}}|19 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/SupportsCombiningClaimsRequestedWithScopeAndRequestObject.java
#######################################################
TEST: OC5:FeatureTest-Supports Combining Claims Requested with scope and Request Object
#######################################################
-------------------------------------------------------
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",
        "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!E49C.F04B",
    "client_secret": "9603954a-05d9-49ec-8f6c-a3ddf22270cb",
    "registration_access_token": "a80a5195-3c9d-488d-bba3-cd16e438c415",
    "registration_client_uri": "https://localhost:8443/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!E49C.F04B",
    "client_id_issued_at": 1376970898,
    "client_secret_expires_at": 1377057298,
    "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://localhost:8443/seam/resource/restv1/oxauth/authorize?response_type=token+id_token&client_id=%40%211111%210008%21E49C.F04B&scope=openid+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&nonce=fea551f3-e7e0-428c-bf48-45e3c37c5750&state=af0ifjsldkj&request=eyJ0eXAiOiJKV1MiLCJhbGciOiJIUzI1NiJ9.eyJyZXNwb25zZV90eXBlIjpbInRva2VuIiwiaWRfdG9rZW4iXSwiY2xpZW50X2lkIjoiQCExMTExITAwMDghRTQ5Qy5GMDRCIiwic2NvcGUiOlsib3BlbmlkIiwiZW1haWwiXSwicmVkaXJlY3RfdXJpIjoiaHR0cHMlM0ElMkYlMkZzZWVkLmdsdXUub3JnJTJGb3hhdXRoLXJwJTJGaG9tZS5zZWFtIiwibm9uY2UiOiJmZWE1NTFmMy1lN2UwLTQyOGMtYmY0OC00NWUzYzM3YzU3NTAiLCJzdGF0ZSI6ImFmMGlmanNsZGtqIiwidXNlcmluZm8iOnsiY2xhaW1zIjp7ImdpdmVuX25hbWUiOm51bGwsImZhbWlseV9uYW1lIjpudWxsfX0sImlkX3Rva2VuIjp7fX0.K0WQz7NsNUE3HFdRCC7YpzH4ALBS55Se8CVX7s8oMKk

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam#access_token=6a418efc-3f2a-4592-98b9-bfa7fd2dd181&token_type=bearer&expires_in=3599&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vbG9jYWxob3N0Ojg0NDMvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL2xvY2FsaG9zdDo4NDQzIiwiYXVkIjoiQCExMTExITAwMDghRTQ5Qy5GMDRCIiwiZXhwIjoxMzc2OTc0NTAyLCJpYXQiOjEzNzY5NzA5MDIsInN1YiI6Im1pa2UiLCJveEludW0iOiJAITExMTEhMDAwMCFENEU3Iiwibm9uY2UiOiJmZWE1NTFmMy1lN2UwLTQyOGMtYmY0OC00NWUzYzM3YzU3NTAiLCJhdXRoX3RpbWUiOjEzNzY5NzA5MDEsImF0X2hhc2giOiJnT25CSHhCb3F6VlhoeThTRXpMbktRIiwib3hWYWxpZGF0aW9uVVJJIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6ODQ0My9zZWFtL3Jlc291cmNlL3Jlc3R2MS9veGF1dGgvY2hlY2tfc2Vzc2lvbiIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCIsImVtYWlsIjoibWlrZUBnbHV1Lm9yZyJ9.SQeLQmRvKVLTQ7OvSuOFKmlharueAODscBA7qRPLfp6mYRovYIbWEbT2mE1k_sRsd8czgFtnCDMzHKoahnguPYDjlXHouC3eKOOTGZWThTQd1m7zXkUdELC_VlSuraZ9Nn1TtyCUIdXpiHH7dIVgI1Jv7XfjP4QC1trKEUypaWLX-gVXv70jZINPKP23N1H8xhWlTPsqxU9kQk12qQI8IYnL3DnZUbGOEQLeGHCYHp9T0fYEm894szU3KWaI48BJTCFb6thZpmdAhZTtlTEiCRa2NYK9n2A4xBSUwWyDRWO3t1UrL2je5AaYL0xVFiAgOdT-dQniducnl0u4zltt1w&auth_level=10&auth_mode=basic&session_id=af2041b2-07fc-4dca-87f8-d3b153dcb54f&state=af0ifjsldkj&scope=openid+email

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /seam/resource/restv1/oxauth/userinfo HTTP/1.1
Host: localhost
Authorization: Bearer 6a418efc-3f2a-4592-98b9-bfa7fd2dd181

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

{
    "sub": "mike",
    "email": "mike@gluu.org",
    "given_name": "Michael",
    "family_name": "Schwartz"
}


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

Back To

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