OC5:FTR-rp-tok-pkjwt-x-Gluu OX

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

{{#vardefine:DtArticleSortKey|}}

FTR-rp-tok-pkjwt-x-Gluu OX

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

}}

Date Tested   bgcolor={{{color}}}}}|4 September 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/CanMakeAccessTokenRequestWithPrivateKeyJwtAuthentication.java
#######################################################
TEST: OC5:FeatureTest-Can Make Access Token Request with private key jwt Authentication
#######################################################
-------------------------------------------------------
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"
    ],
    "application_type": "web",
    "client_name": "oxAuth test app",
    "token_endpoint_auth_method": "private_key_jwt",
    "jwks_uri": "https://seed.gluu.org/oxauth-client/test/resources/jwks.json",
    "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!CA81.2B48",
    "client_secret": "838bf1c4-a027-43ef-a923-4be8697a69bd",
    "registration_access_token": "4a24b490-c3bb-4aff-8573-3adaf87927a8",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!CA81.2B48",
    "client_id_issued_at": 1378348287,
    "client_secret_expires_at": 1378434687,
    "response_types": ["code"],
    "application_type": "web",
    "client_name": "oxAuth test app",
    "token_endpoint_auth_method": "private_key_jwt",
    "jwks_uri": "https://seed.gluu.org/oxauth-client/test/resources/jwks.json",
    "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=code&client_id=%40%211111%210008%21CA81.2B48&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&state=STATE_XYZ

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam?code=4c56f6b4-3d1e-47c1-bf8a-96cb5833ffce&auth_level=10&auth_mode=basic&session_id=4557b9c9-726e-4fc5-aeea-30d015ad96b5&state=STATE_XYZ&scope=openid+profile+address+email

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/seam/resource/restv1/oxauth/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: seed.gluu.org

grant_type=authorization_code&code=4c56f6b4-3d1e-47c1-bf8a-96cb5833ffce&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&client_assertion=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImtpZCI6IlJTMjU2U0lHIn0.eyJpc3MiOiJAITExMTEhMDAwOCFDQTgxLjJCNDgiLCJzdWIiOiJAITExMTEhMDAwOCFDQTgxLjJCNDgiLCJhdWQiOiJodHRwczovL3NlZWQuZ2x1dS5vcmcvb3hhdXRoL3NlYW0vcmVzb3VyY2UvcmVzdHYxL294YXV0aC90b2tlbiIsImp0aSI6Ijg1Yzg1NTU3LTFiNGMtNGVmMS04ZWVlLWQ4NmJhZWQ1M2UxYyIsImV4cCI6MTM3ODM0ODYwMSwiaWF0IjoxMzc4MzQ4MzAxfQ.LZG1fFRiPie4Uo255XLgOmw2AvjJBzErNfV4dt5cThCc60xowxztMUUdGZMF3xaTxiSdauDF_cVm3y7QzTPsjcmAon-P2VEpKrM66Hk4zrpB5jPR_N5nJmypjthYhZni3bT0t0dgX8wecw0-UfsenX6Q-pPn3ndyhTn-bC3zaZxQb5VLrxKFRceUChPiPu-nZSDEzvJHh7oILhR_TpGdy0DKqMCcsncP7ajIQYUgBZsG022Aub-NqO9nHljJYdL2VkNQl-7pXOaGWTXIWUVZ_oxXoZXhDNDUfgwNHDZXe-JWN8igJeJke0lC6_pYM6KA7XdEzPXXEpYljCseNkIHeA

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

{"access_token":"e58a0634-5bc6-47ef-af4e-e07f65166365","token_type":"bearer","expires_in":3599,"refresh_token":"ef4b482c-d866-431b-a974-f7ca2d1ea162","id_token":"eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCFDQTgxLjJCNDgiLCJleHAiOjEzNzgzNTE5MDAsImlhdCI6MTM3ODM0ODMwMCwic3ViIjoibWlrZSIsIm94SW51bSI6IkAhMTExMSEwMDAwIUQ0RTciLCJveFZhbGlkYXRpb25VUkkiOiJodHRwczovL3NlZWQuZ2x1dS5vcmcvb3hhdXRoL3NlYW0vcmVzb3VyY2UvcmVzdHYxL294YXV0aC9jaGVja19zZXNzaW9uIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIn0.ddeQTwZaIlyjgolujQcD_ZHPZevS8C03yH0GsueylFxvimDdPAniFM4yMB1laR6Oz77D4aPaP13eJV6CeRFKHARZUjGikEohfAuy4esxCUyJ1PdqdfYsB9e2AUZj9-v5GTlMiHjAEwbfVWZmn2yGM0WoePqv2tAFGUtqkupwcTfwVta4woM9c2ApvBvI1TsJnBfgtQxbfsNY5_0zvy-rBNW4753bGMBeuAUbcBDJIRuvD4oyGFPo4hXn5X-itXCUmBWkY2x5cWQQHZIZrY5MbAQ26zYI3u12vqrAkC-Bvxb1eNCVAKLxpgnp2sWKJZjU2_52zuc3t23-eABWjjhN7A"}


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

Back To

{{#dpl: namespace = OC5 | linksto = OC5:FTR-rp-tok-pkjwt-x-Gluu OX }}