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

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

{{#vardefine:DtArticleSortKey|}}

FTR-op-clm-idt-x-Gluu OX

{{#vardefine:page|{{#if:{{#var:page}}|{{#var:page}}|FTR-op-clm-idt-x-Gluu OX}}}}{{#vardefine:nr|{{#if:{{#var:nr}}|{{#expr:{{#var:nr}}+1}}|1}}}}{{#vardefine:url|{{#replace:{{#var:page}}| |_}}}}{{#if:FTR-op-clm-idt-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-idt-x-Gluu OX
Test Identifier   bgcolor={{{color}}}}}|FTR-op-clm-idt
Primary Solution   bgcolor={{{color}}}}}|Gluu OX
Test   bgcolor={{{color}}}}}|{{#dpl:|category = FeatureTest|namespace = OC5|include={FeatureTest}:identifier |includematchparsed=/identifier\s*=\s*FTR-op-clm-idt/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/SupportsReturningClaimsInIdToken.java
#######################################################
TEST: OC5:FeatureTest-Supports Returning Claims in ID Token
#######################################################
-------------------------------------------------------
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!3F78.83F9",
    "client_secret": "ee174193-6d5c-47aa-882c-cc730f649d5f",
    "registration_access_token": "22936906-39a2-4d15-a153-27914204e24e",
    "registration_client_uri": "https://localhost:8443/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!3F78.83F9",
    "client_id_issued_at": 1376970228,
    "client_secret_expires_at": 1377056628,
    "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%213F78.83F9&scope=openid&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&nonce=7f68391b-8eaa-416d-8f60-1806980032c7&state=af0ifjsldkj&request=eyJ0eXAiOiJKV1MiLCJhbGciOiJIUzI1NiJ9.eyJyZXNwb25zZV90eXBlIjpbInRva2VuIiwiaWRfdG9rZW4iXSwiY2xpZW50X2lkIjoiQCExMTExITAwMDghM0Y3OC44M0Y5Iiwic2NvcGUiOiJvcGVuaWQiLCJyZWRpcmVjdF91cmkiOiJodHRwcyUzQSUyRiUyRnNlZWQuZ2x1dS5vcmclMkZveGF1dGgtcnAlMkZob21lLnNlYW0iLCJub25jZSI6IjdmNjgzOTFiLThlYWEtNDE2ZC04ZjYwLTE4MDY5ODAwMzJjNyIsInN0YXRlIjoiYWYwaWZqc2xka2oiLCJ1c2VyaW5mbyI6e30sImlkX3Rva2VuIjp7ImNsYWltcyI6eyJuYW1lIjp7ImVzc2VudGlhbCI6dHJ1ZX0sImVtYWlsIjpudWxsfX19.iaIQeP9ynnPt1AoFSlEt9J-Jy6AIDwcE5Vw2NMM5jI4

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam#access_token=ce9898b1-dbb5-40e0-9e83-c544e72689a8&token_type=bearer&expires_in=3599&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vbG9jYWxob3N0Ojg0NDMvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL2xvY2FsaG9zdDo4NDQzIiwiYXVkIjoiQCExMTExITAwMDghM0Y3OC44M0Y5IiwiZXhwIjoxMzc2OTczODMxLCJpYXQiOjEzNzY5NzAyMzEsInN1YiI6Im1pa2UiLCJveEludW0iOiJAITExMTEhMDAwMCFENEU3Iiwibm9uY2UiOiI3ZjY4MzkxYi04ZWFhLTQxNmQtOGY2MC0xODA2OTgwMDMyYzciLCJhdXRoX3RpbWUiOjEzNzY5NzAyMzEsImF0X2hhc2giOiJEX25sakl2UXZ6NkZUQUQ4OGprZk13Iiwib3hWYWxpZGF0aW9uVVJJIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6ODQ0My9zZWFtL3Jlc291cmNlL3Jlc3R2MS9veGF1dGgvY2hlY2tfc2Vzc2lvbiIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCIsImVtYWlsIjoibWlrZUBnbHV1Lm9yZyIsIm5hbWUiOiJNaWNoZWFsIFNjaHdhcnR6In0.kRYKcpKjNCRyLNiJAFH8WoHrOEaFgJj4Zcl21ha10JK5zE9foIrtsUJN5A24xmtf869VxU8eYQV2e5KORYP_ngrGaLobVHhWVSUUtAAeQQoYXPVhy8xusVd6IpbSJY29RfrplY40nsKnd_RG9_mDdrqcN5IK25QwDQWz-uHPijgJTBNpKBydDdlXGOZUarFdZYfefeO4_M63NUp1vINrk-6MMrUK_6Q7Mo1ZkvfbZ4rsUamajJe_5Pc_W_iyR7z5DUXU8CGHJafItf_P9lOU86GYFTZVJF8Yb7KkIWNY-emQnWzGe6w0CO4LmoVbhDBNmFk9EMHc-qDjngAIQbO-_w&auth_level=10&auth_mode=basic&session_id=18cdbf1c-5d85-4958-b1f7-ba8a1c5c3b3d&state=af0ifjsldkj&scope=openid

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /seam/resource/restv1/oxauth/userinfo HTTP/1.1
Host: localhost
Authorization: Bearer ce9898b1-dbb5-40e0-9e83-c544e72689a8

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

{"sub": "mike"}


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

Back To

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