OC5:FTR-op-ui-enc-x-Gluu OX

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

{{#vardefine:DtArticleSortKey|}}

FTR-op-ui-enc-x-Gluu OX

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

}}

Date Tested   bgcolor={{{color}}}}}|28 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/CanProvideEncryptedUserInfoResponse.java
#######################################################
TEST: OC5:FeatureTest-Can Provide Encrypted UserInfo Response A128KW A128GCM
#######################################################
-------------------------------------------------------
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",
    "userinfo_encrypted_response_alg": "A128KW",
    "userinfo_encrypted_response_enc": "A128GCM"
}

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

{
    "client_id": "@!1111!0008!3A75.BF34",
    "client_secret": "66063300-61df-4207-a0cd-370acf88c8b7",
    "registration_access_token": "c697aa66-07e2-453c-a6fe-43ccc139fd37",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!3A75.BF34",
    "client_id_issued_at": 1377740334,
    "client_secret_expires_at": 1377826734,
    "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",
    "userinfo_encrypted_response_alg": "A128KW",
    "userinfo_encrypted_response_enc": "A128GCM",
    "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%213A75.BF34&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&nonce=98849bed-8170-4589-b178-1ad4e37c28ee&state=af0ifjsldkj

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam#access_token=08744bb1-8614-4cc5-b28c-e24e6d4eada5&token_type=bearer&expires_in=3599&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCEzQTc1LkJGMzQiLCJleHAiOjEzNzc3NDM5NDQsImlhdCI6MTM3Nzc0MDM0NCwic3ViIjoibWlrZSIsIm94SW51bSI6IkAhMTExMSEwMDAwIUQ0RTciLCJub25jZSI6Ijk4ODQ5YmVkLTgxNzAtNDU4OS1iMTc4LTFhZDRlMzdjMjhlZSIsImF1dGhfdGltZSI6MTM3Nzc0MDM0MCwiYXRfaGFzaCI6IkxXWGZCWDNCLW8ya3BQVEdaR1QzZGciLCJveFZhbGlkYXRpb25VUkkiOiJodHRwczovL3NlZWQuZ2x1dS5vcmcvb3hhdXRoL3NlYW0vcmVzb3VyY2UvcmVzdHYxL294YXV0aC9jaGVja19zZXNzaW9uIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwicmVnaW9uIjoiVGV4YXMiLCJwaWN0dXJlIjoiaHR0cDovL3d3dy5nbHV1Lm9yZy93cC1jb250ZW50L3VwbG9hZHMvMjAxMi8wNC9taWtlMy5wbmciLCJ6b25laW5mbyI6IkFtZXJpY2EvQ2hpY2FnbyIsImVtYWlsIjoibWlrZUBnbHV1Lm9yZyIsImxvY2FsZSI6ImVuLXVzIiwibmFtZSI6Ik1pY2hlYWwgU2Nod2FydHoiLCJsb2NhbGl0eSI6IkF1c3RpbiIsImZhbWlseV9uYW1lIjoiU2Nod2FydHoiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJnaXZlbl9uYW1lIjoiTWljaGFlbCIsImNvdW50cnkiOiJVUyJ9.Hm3y-EGF_dZvOSU7rh2TlNImA_6suPFJaJSbg4u-0QFrSGoseE_6pQUHIUnOMmZJStVMzt9HeKaKmYfU9pCgXMuUZTwehj9uiDmRfUrIe3wWXLX1UtvNk5dkKsAXoy5UEFM_K-o-imR_QCmEquw5TWCcSPEUuwZh9eZar4f7qFWm-qoiyuPh1zMLBqQmerkEzNGknNz2u6gjT5YwU8RHRaqaSo5GXMO-KBDDrCgEnnGO4r1urgBo-Sh6B02W_K1svbROrDxX5gGmHoiD-lHJVerExnLk8c1lLMGUURK6s7fNJmGnid3xNltkm1FVfdkVkC5CIwCjo_BvMZSKBtN3CQ&auth_level=10&auth_mode=basic&session_id=35e3a2db-2512-4481-9583-dbef7cbf4bde&state=af0ifjsldkj&scope=openid+profile+address+email

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/seam/resource/restv1/oxauth/userinfo HTTP/1.1
Host: seed.gluu.org
Authorization: Bearer 08744bb1-8614-4cc5-b28c-e24e6d4eada5

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

eyJ0eXAiOiJKV0UiLCJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4R0NNIn0.T_QuCsEN6ELh_WfaJBpHNXt66Ku_QFPJ.DjiiupK0KpPQX09M.OwOFK87PCLXJeSdOWFn_6fP-p6sJe_9H18XQDlDm5_HYKov_CDxUwPxvzBz-WcsCjCk-eFfnknMqdVEqLTfA2h0VN_nfnlZwjeyNVl_yrdcFb4FgcbxRQKqAkwwJbWdvpXA5BAj6gRf-LHSF_Cm-CR9u0w_dg_vO6mFl6pJp-JcUpIOfAJiZGgpFnB-ONvU2oDFDF6aZRXyVSq9cG9B-Z9RohLI23l4BwekN1uR37o7EPYzfhi1Mi50-TZVtuWeDLqd3yA45uXcpvHgGJyf6or6dtbnoBJXAKI0nGnhnESuCOR4BOGjxxDWAJmLzxgSMscD8QFxmrsc7twQMG2n8rcIWzQkPo3L-T-yCO1_xi0qdQ8aZb6agTvHJNtQXq8p95vnq_nstHGehyZJA2Kj-WOaNbYbl0WVMKEISveGk7RUQfH5mpkOX0CPSRd8yyKhqa3PXSV76gI8uzNYeTrpnOZddbmJ6AYKYJ4u_v6nnwINm3GA9LAK_TWf1VpcOL0IUVAHCidGul1TM3V79l_rMHHkEauuTeIwH58DVt2Sy1PQ4Ds2bPzQ-0A.Yyyr0zuPMdqcF_BoMrJXvg

#######################################################
TEST: OC5:FeatureTest-Can Provide Encrypted UserInfo Response A256KW A256GCM
#######################################################
-------------------------------------------------------
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",
    "userinfo_encrypted_response_alg": "A256KW",
    "userinfo_encrypted_response_enc": "A256GCM"
}

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

{
    "client_id": "@!1111!0008!8B16.DFEB",
    "client_secret": "60d0bd4f-07ea-4df2-916c-e2aebce22e1c",
    "registration_access_token": "88b1ddb4-547c-49e7-86e5-96fc765ddccd",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!8B16.DFEB",
    "client_id_issued_at": 1377740350,
    "client_secret_expires_at": 1377826750,
    "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",
    "userinfo_encrypted_response_alg": "A256KW",
    "userinfo_encrypted_response_enc": "A256GCM",
    "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%218B16.DFEB&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&nonce=2dd102e1-994d-43b0-ab98-e6e0a1a004dd&state=af0ifjsldkj

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam#access_token=d05342af-dc27-4e61-a440-d67ee480a875&token_type=bearer&expires_in=3599&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCE4QjE2LkRGRUIiLCJleHAiOjEzNzc3NDM5NjMsImlhdCI6MTM3Nzc0MDM2Mywic3ViIjoibWlrZSIsIm94SW51bSI6IkAhMTExMSEwMDAwIUQ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Z9g&auth_level=10&auth_mode=basic&session_id=abb29923-288a-4e37-b96c-4bfa07653b41&state=af0ifjsldkj&scope=openid+profile+address+email

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/seam/resource/restv1/oxauth/userinfo HTTP/1.1
Host: seed.gluu.org
Authorization: Bearer d05342af-dc27-4e61-a440-d67ee480a875

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

eyJ0eXAiOiJKV0UiLCJhbGciOiJBMjU2S1ciLCJlbmMiOiJBMjU2R0NNIn0.VhAa1xv9DfwR9sz5HGMD21QowDILCRkcwhhyCaqKMoqV3ZWI4_1uaA.DX6SF_W_xO0pHkQ7.2uiJ-oDzUbTbF4gz89d-4nzG8n5Bf8IuV6LTmHDA5shKsCeevfxze0S3fqqjgSL6kcxbOkrW8CovyfJAkreV2loiXWy_PHIEsnKKDmB7Bogcgt5hE4avdpTYwqVeJGCIllV6R3jkbld5gEtXy2ciujtmy701Y7mGQ7IkY_-9KJSLCsVY3UoUAU3vzSnfxqFThc7Wsp--vYJ273zHwnWWt6BG706LPKYRlSczxsuh7yHm8ekDxkVpVhgShvdmJTeYzdUjEVy07cdOIfM_gvshCnCK6x8DWPztfq4qtxgRf2bb0qxjviGZ5e6NrxXrpSZY-4ZxtSOxm-jdBqIvVv6vuHAInS4XP6RqfuxkZlazzR-E1T9haQ2Sue8OFuOzd-ONvFgqOFaW19jCidxRLeuz1Pk0ZS0TJf46H1dBVBOJLHfQpztNf2Q0PFP1rXBZ96i7aX0_9SsecFEkroFQOrJLx1nsWKrQDVFO5ald6C7sZUHEGUlzhm2FGBgTn37ICZ1_XkDjyBHh-O7eZVzW8mKm7vQc_dfoZ6p4KwaLme29S7yQ5_-8rCqzqA.N6Yyh1Zwtsg5qwMQCGvrsg

#######################################################
TEST: OC5:FeatureTest-Can Provide Encrypted UserInfo Response RSA1_5 A128CBC_PLUS_HS256
#######################################################
-------------------------------------------------------
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",
    "jwks_uri": "https://seed.gluu.org/oxauth-client/test/resources/jwks.json",
    "userinfo_encrypted_response_alg": "RSA1_5",
    "userinfo_encrypted_response_enc": "A128CBC+HS256"
}

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

{
    "client_id": "@!1111!0008!57FF.9801",
    "client_secret": "8c284dc9-5a3a-4b58-97eb-ae1e027b8ef6",
    "registration_access_token": "3adaed11-80ae-4d85-8708-dc2cb575a693",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!57FF.9801",
    "client_id_issued_at": 1377740367,
    "client_secret_expires_at": 1377826767,
    "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",
    "jwks_uri": "https://seed.gluu.org/oxauth-client/test/resources/jwks.json",
    "subject_type": "public",
    "userinfo_encrypted_response_alg": "RSA1_5",
    "userinfo_encrypted_response_enc": "A128CBC+HS256",
    "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%2157FF.9801&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&nonce=2cc6e189-5a7d-4c5a-a3bc-4b6030a88fe1&state=af0ifjsldkj

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam#access_token=2b16b2a1-54b7-4b77-af7f-345e21fbc315&token_type=bearer&expires_in=3599&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCE1N0ZGLjk4MDEiLCJleHAiOjEzNzc3NDM5NzgsImlhdCI6MTM3Nzc0MDM3OCwic3ViIjoibWlrZSIsIm94SW51bSI6IkAhMTExMSEwMDAwIUQ0RTciLCJub25jZSI6IjJjYzZlMTg5LTVhN2QtNGM1YS1hM2JjLTRiNjAzMGE4OGZlMSIsImF1dGhfdGltZSI6MTM3Nzc0MDM3NCwiYXRfaGFzaCI6IkZZNmZ0ZEpMVVF2Qm9NTjlVdW5fSWciLCJveFZhbGlkYXRpb25VUkkiOiJodHRwczovL3NlZWQuZ2x1dS5vcmcvb3hhdXRoL3NlYW0vcmVzb3VyY2UvcmVzdHYxL294YXV0aC9jaGVja19zZXNzaW9uIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwicmVnaW9uIjoiVGV4YXMiLCJwaWN0dXJlIjoiaHR0cDovL3d3dy5nbHV1Lm9yZy93cC1jb250ZW50L3VwbG9hZHMvMjAxMi8wNC9taWtlMy5wbmciLCJ6b25laW5mbyI6IkFtZXJpY2EvQ2hpY2FnbyIsImVtYWlsIjoibWlrZUBnbHV1Lm9yZyIsImxvY2FsZSI6ImVuLXVzIiwibmFtZSI6Ik1pY2hlYWwgU2Nod2FydHoiLCJsb2NhbGl0eSI6IkF1c3RpbiIsImZhbWlseV9uYW1lIjoiU2Nod2FydHoiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJnaXZlbl9uYW1lIjoiTWljaGFlbCIsImNvdW50cnkiOiJVUyJ9.DAcWCtgfhGfXix4BEl-DNe8jzKS7mv3Gr9OOld__PIaL8IRDABdPqcZDicNXzl3BugLFCT7kmGLlGgNk00nNb0XGZJ6wUUR10FbdihHFg6Hd29IxZN-X7_AHAgntFa0yk6je6vQSJpvu71AcqxCf298lfi3qsCmIN0IaEVGr26ySHix6YpCK0feNlhjaIGuRl7yF8_D6T1cQNVsJ_Wk3wkmcxqDdM9JYzoX1a7O1JQHj--F2-7jmVUL3IXChl11cv0881_4TFJLWLpON_XFvqn4YRTStSueVXeVSn_s76LD4WYvLhZd31x66DDa2cKGYhkaeLrasxqNtvYLdd5uARg&auth_level=10&auth_mode=basic&session_id=91ce26cb-06c5-4b29-b3f7-6b0bcab81a91&state=af0ifjsldkj&scope=openid+profile+address+email

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/seam/resource/restv1/oxauth/userinfo HTTP/1.1
Host: seed.gluu.org
Authorization: Bearer 2b16b2a1-54b7-4b77-af7f-345e21fbc315

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

eyJ0eXAiOiJKV0UiLCJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMTI4Q0JDK0hTMjU2In0.GJ5PFNpxmNSfGOq2ei1KqvY0CbqhV0xpwUMkyVL7C6vVV4nfN7Zfs7ManNlnRshRAKQu2MBcVQb0rQ4TCLRKBPIXB0syrNNM_8REAslHQ5UbzqPBT31UG3ztPLwQkW4RU82jeGoC561RpksTglVjYVN2Z4Sa149ZEfWs62qFZ94WpeSbGxWxzGhz2s6X4-zgilUmsySHIw3KwhmBx59VeUOtQJ5Xvolck1zM5cZNrPPag00q8oS5Iavrf1MVaeqkfCVAFrsBzn3KPsfnMMovNJ3-2a9xsNf77ge42L-Mblnztuh2vHBmCEkZUkiElv6ehwIeSJ8qSkWf5jAJMIo--w.VPIsMqAXVT7tOjD7d8tOiw.vItxvG8y7xYRVIDDjDfSbwxXbK04b6UeTqY9vzcpdm0tSrkk6u7w6A1PQPyaJatitFALQUEWBvT27hSStAz7UeKRnzw6j1RlRKqIdFI280PCQOVd5J8hSLrnEKJL1ngflKXfVgUhnJuFBd40i6x63BcNEXmV1TLUyZWHab6GfbicixgMdia-WzPym4hqRWsMgc69iW1LQZlvgh_M7PnqjQw9eBsvtwlUZkFehxr9eXR-ed6pNmxaLsxDxXT81669yB4YhvGalskdeGLGdaGDzLWvhhSFp0kGysqZX29aVSCr5HzbyYB6o59ooDDXC83ae6S5ImKaadFv6CHNY6RJxNHn6gakb1793sQzF0Q8IYxEOzm-ity3TWPF6Q4Xt0z7O_S6VMNpRi8A_340wDmawYy2sCE1_tzI1VkY3doLhGY24lQahPKXQqMHoH-W_jZFi8mfjsfPJz2oBgoBPudC43RM7qmnyJ0mBd3-p6ieFdhWuWQ_r7LYX9tp_ag4Q_KJWs-ZL3gsHCAtU5rx0YWqzFaKRxUMwCDdAGkrbZOcD5R56uNrDJnuP6EcmNszZzA5.0cFAboVGt3SnVqUSJCWLN_KNqaztblatv2HTxVicKAM

#######################################################
TEST: OC5:FeatureTest-Can Provide Encrypted UserInfo Response RSA1_5 A256CBC_PLUS_HS512
#######################################################
-------------------------------------------------------
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",
    "jwks_uri": "https://seed.gluu.org/oxauth-client/test/resources/jwks.json",
    "userinfo_encrypted_response_alg": "RSA1_5",
    "userinfo_encrypted_response_enc": "A256CBC+HS512"
}

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

{
    "client_id": "@!1111!0008!FE75.B15D",
    "client_secret": "687888f1-a8b7-426f-b8c2-721df8b26558",
    "registration_access_token": "38e5193a-e300-44d1-b139-fa39e8779257",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!FE75.B15D",
    "client_id_issued_at": 1377740383,
    "client_secret_expires_at": 1377826783,
    "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",
    "jwks_uri": "https://seed.gluu.org/oxauth-client/test/resources/jwks.json",
    "subject_type": "public",
    "userinfo_encrypted_response_alg": "RSA1_5",
    "userinfo_encrypted_response_enc": "A256CBC+HS512",
    "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%21FE75.B15D&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&nonce=685723bd-5aae-4531-9a64-caaa4ed60809&state=af0ifjsldkj

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam#access_token=c7d8c624-ab54-4d03-b082-62804c3a8c52&token_type=bearer&expires_in=3599&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCFGRTc1LkIxNUQiLCJleHAiOjEzNzc3NDM5OTMsImlhdCI6MTM3Nzc0MDM5Mywic3ViIjoibWlrZSIsIm94SW51bSI6IkAhMTExMSEwMDAwIUQ0RTciLCJub25jZSI6IjY4NTcyM2JkLTVhYWUtNDUzMS05YTY0LWNhYWE0ZWQ2MDgwOSIsImF1dGhfdGltZSI6MTM3Nzc0MDM4OSwiYXRfaGFzaCI6IjBmZHN0R2w3UVk2cHBvUURoQ2p4dnciLCJveFZhbGlkYXRpb25VUkkiOiJodHRwczovL3NlZWQuZ2x1dS5vcmcvb3hhdXRoL3NlYW0vcmVzb3VyY2UvcmVzdHYxL294YXV0aC9jaGVja19zZXNzaW9uIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwicmVnaW9uIjoiVGV4YXMiLCJwaWN0dXJlIjoiaHR0cDovL3d3dy5nbHV1Lm9yZy93cC1jb250ZW50L3VwbG9hZHMvMjAxMi8wNC9taWtlMy5wbmciLCJ6b25laW5mbyI6IkFtZXJpY2EvQ2hpY2FnbyIsImVtYWlsIjoibWlrZUBnbHV1Lm9yZyIsImxvY2FsZSI6ImVuLXVzIiwibmFtZSI6Ik1pY2hlYWwgU2Nod2FydHoiLCJsb2NhbGl0eSI6IkF1c3RpbiIsImZhbWlseV9uYW1lIjoiU2Nod2FydHoiLCJzdHJlZXRfYWRkcmVzcyI6IjYyMSBFYXN0IDZ0aCBTdHJlZXQiLCJnaXZlbl9uYW1lIjoiTWljaGFlbCIsImNvdW50cnkiOiJVUyJ9.TpBa0G7G8brdJlDWCm8yjGlB1xQuSs7oqiHEwNp1lX3MZHwuDf4zOhm6xO__wN1btWc4WXLway7SwNk6whJOvVSbQPZPFJTpvrrpNeRWIFY37d3zFcLTThw-ZKvt7LIyZkUJnQh73y_5YZQ9dEjRr-K2kjoAB5XEFDdWmXTh0_tPG8iWedNQo9DjU6gpiL4nom9XpD17nbUNI1y7APCW7Yxol-cqqOB-T-ImwMGnmy5DizML3ER-wQDLyoe0gwV4Ae3iMeLtbbZw-LHrz979qQ9dtEDor_kOENloufT7OBvLuFGkSsuGUQ9ybnJoyJPovmjX3xHeB1ktoKqERBaA7Q&auth_level=10&auth_mode=basic&session_id=3aea8386-1bc1-4f88-96bb-5f2a32bed612&state=af0ifjsldkj&scope=openid+profile+address+email

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/seam/resource/restv1/oxauth/userinfo HTTP/1.1
Host: seed.gluu.org
Authorization: Bearer c7d8c624-ab54-4d03-b082-62804c3a8c52

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

eyJ0eXAiOiJKV0UiLCJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMjU2Q0JDK0hTNTEyIn0.T1n5TtOsKaYs9TJR6IZy6PSE7uDvfmN8QfUjKj_GORp3Q5NOhebJ5jA8i7DfTpJHY4lcAwbXHtSPG-u_HXSjd8uq14Uv9LofBTTDsmJPYA0XvxhuemTh8pXddDUpEGr7gYr2HzDMr3HdL3c1OiOCsiuuOAeQn4hh9y9Qy-qN-xvkX2YMFE6IxntGM4Mg38ArCxQgzv0yTtbhS5x1fLr6WaSpmVxPJiApHzQwL4vicJhRoLseflleRLJ4iH9R11gWejqQX3fNjBwHiqmCdqe_TZFf_SMvVoukKN67f2pRB8vQ8-BOJSh5t-cNBmK4W2Wx9jWMmh07L_RoAMCozFUopA.854uSuzffPSU-OxrGCXBmQ.F2r2nNvCLY4EZhgi55V5enK07AfyLCl0De0mfGBVRB5skbS75TjZ9uHAM2zTRXg8_30aKrwtIYm6rD-KZq-9D6YY2ka2XtA2wdiV67guOmXSZvoKWtRgcLoEmdWYqZm0VFKgNiYYyv7HZnf9D_X4oSdHGAlDAAY009-VpuYL3P68uTM970vFKPaO94bqDU3IE6YXlOCU7C7HYe7plH4xPxq-AyfKfQEru7eGmOwLwsG2myxrKGyrFUz4YZIpIv-18DhNZ6WYEJXnevs7h7IeYrNYRJZpZ51BnjdTLOj59kzfMpdtKUHFHNw2OyeAn5Ckv_RDXJJgS6RuZH1n47zncWevktsPRcLQ0MO6YYtvM54NPaPk7-ux2O4OXMZ2RH3jsWIH52F5b6HKW0jGF3qilANKzGntRA2hau_BoKMeWXdGp2kM1m38nSxg3kcM09BhFz6NL-I402Tx9YNWOq6mqj-EF4lhXht4nNkgi-aPOwWvPJfEyKBt1eSjmBtddFNp-6sG4sHtF2uLk_eXtGxID8i8-cGc2cSOGDC9-n5c__UQHV7JsJM5DFYskq07E_SS.EqKBjWoIr2C3Itl4E_rSMNPx5bvKEr0qtYLF4C6DM9LTJgqyO1HBdogrUHfv-0Fh2cqjcaJ20aND8vU4OUkr3A

#######################################################
TEST: OC5:FeatureTest-Can Provide Encrypted UserInfo Response RSA_OAEP A256GCM
#######################################################
-------------------------------------------------------
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",
    "jwks_uri": "https://seed.gluu.org/oxauth-client/test/resources/jwks.json",
    "userinfo_encrypted_response_alg": "RSA-OAEP",
    "userinfo_encrypted_response_enc": "A256GCM"
}

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

{
    "client_id": "@!1111!0008!10A1.346B",
    "client_secret": "58278695-7dc2-451d-b428-1e0296ddfdc1",
    "registration_access_token": "a25bd5c7-1084-479c-b832-625791222631",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!10A1.346B",
    "client_id_issued_at": 1377740398,
    "client_secret_expires_at": 1377826798,
    "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",
    "jwks_uri": "https://seed.gluu.org/oxauth-client/test/resources/jwks.json",
    "subject_type": "public",
    "userinfo_encrypted_response_alg": "RSA-OAEP",
    "userinfo_encrypted_response_enc": "A256GCM",
    "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%2110A1.346B&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&nonce=8aca3da1-25d4-4b6b-a90d-5a6272407104&state=af0ifjsldkj

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam#access_token=4136dd96-97e3-422f-a8fe-e7743a97d581&token_type=bearer&expires_in=3599&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dH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wuLzH3la82GRgr0yA1P62LIFD2iEHwnIMvH7B8TAUW9jRQ-J_SYYuMWruAmMeckzZtcYTRqB7wKEWXIknNVBFvUCj-tB4ghXGB3IqCQLsKhmltl5aDRP9fNLnMLaULxZPx6S7LMk4y9sIcBtdEEaTtpsoVRoP8DZPN3I-LzhtQfIdwf4zgCRvsus_rw56ntSkb91tKwMqegz-TIqR6TTqxMbTvGYotRuQqNOspHr3c1CahjbO4xCl8_Kmhou32Ms3EtXTw1AAU1eR55lLA&auth_level=10&auth_mode=basic&session_id=9139dc53-939b-4de2-9b80-336d42d27436&state=af0ifjsldkj&scope=openid+profile+address+email

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/seam/resource/restv1/oxauth/userinfo HTTP/1.1
Host: seed.gluu.org
Authorization: Bearer 4136dd96-97e3-422f-a8fe-e7743a97d581

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

eyJ0eXAiOiJKV0UiLCJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ.DWJT7SZsqang1FLqKPLwJ9XQNUfWWV5Y3FmFpsWFlZvB_AiR9puM9Tfx4qRQN9XW7dbkfj6aPM_WUvVWEMGLRz00xx9I7VCKGZzB-fpPd1PdFJW2H4EaY1uvgbsqb4tVeWLPp1vCb2R81SmFxXR_8GP8FYdQXGY__3FH4_fBTI81P8nlQ7VjqjsDbNU8QwZpiaKWWcjZTR7Arub2_jUvuaPG7AlzbrCNaDORDPfQuNesoRooNbiGuiyHgM90HuKKK1n3V1RdD8N-_nmswpASP6iktbWVSsJaWU31bRttsW-yohEVviydJiYMm4hrpSgy1-YdtvgEADxKW65Yn4PS6Q.qmsTXmjVize2wAOD.Ft5LYGpeczE5oFEC0_o-lxkyGFKvGmLV7TV8j84TDXzO7g_jStOPfPh-_6_lMO7mjU__ROOKy5fm3QTs7xrV1BvFL_GZXH25dpaAXF4kmsH29SWs3z_xh3V1daZ-rNfulFOqabZmM14yOd-RsUImS7svmj3ZKn9gDQoxpGPzMI0oxUxpGWPK86cBhHCljDvqTaM2JAtGQ4dTAVHqvesErLaAnEQIfG5mFOj8e6yWS18pd_FX4JIIt5YZpvK5yu_5Dc4lX1gdoL_SYjsF8Dy4tjNXDnR9BNQOXSdMsoMzZMACsUWys-B47Pty6Lw1sx1q9bkSL9bF861uvJ9qsdvWTFMa8NzCCo5qeVJfqu3Qr0tPu0N4unrR08TEFqhDk2FH8tLwq0Wp045Rv3yVJZigsCfSb5CSl9dadWOFaCRhE-_bsT3UTUYR9NdMyyyFW3ovQR7kRibglR4x1fO8KZSBGIanEvBcLtX33-kcuX04W--1juEey9O8_0wJTUnxgcfEEDCrhRWyeOr6DlOcM9CpS-EqyQEOMKjiP0CZR9SNg1XbmL-CWSGyCg.tCwd_s-BNvlTJWmx9y_lng


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

Back To

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