Difference between revisions of "OC5:FTR-rp-scope-x-Gluu OX"

From OSIS Open Source Identity Systems
Jump to: navigation, search
(New automated OC5 Result Page)
 
 
Line 5: Line 5:
 
   |identifier      = FTR-rp-scope
 
   |identifier      = FTR-rp-scope
 
   |primarysolution = Gluu OX
 
   |primarysolution = Gluu OX
   |testdate        =
+
   |testdate        = 2 September 2013
   |outcome        = Not Tested
+
   |outcome        = Works
   |testedby        =  
+
   |testedby        = Javier Rojas Blum
   |testedsolution1 =
+
   |testedsolution1 = Gluu_OX
 
   |testedsolution2 =  
 
   |testedsolution2 =  
   |operatingsystem =
+
   |operatingsystem = Fedora 18 x86_64
   |browser        =
+
   |browser        = Firefox 22.0
   |notes          =
+
   |notes          = https://svn.gluu.info/repository/openxdi/oxAuth/Client/src/test/java/org/xdi/oxauth/interop/RequestingUserInfoClaimsWithScopeValues.java
 +
 
 +
<pre>
 +
#######################################################
 +
TEST: OC5:FeatureTest-Requesting UserInfo Claims with scope Values
 +
#######################################################
 +
-------------------------------------------------------
 +
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",
 +
    "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!3F42.4094",
 +
    "client_secret": "074b3e85-95c9-413c-b130-e1b172408649",
 +
    "registration_access_token": "14748f36-720c-4ff9-a352-69f481107617",
 +
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!3F42.4094",
 +
    "client_id_issued_at": 1378133322,
 +
    "client_secret_expires_at": 1378219722,
 +
    "response_types": [
 +
        "token",
 +
        "id_token"
 +
    ],
 +
    "application_type": "web",
 +
    "client_name": "oxAuth test app",
 +
    "token_endpoint_auth_method": "client_secret_basic",
 +
    "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=token+id_token&client_id=%40%211111%210008%213F42.4094&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&nonce=75873d7e-95e7-4690-983d-59e0286a0819&state=STATE_XYZ
 +
 
 +
-------------------------------------------------------
 +
RESPONSE:
 +
-------------------------------------------------------
 +
HTTP/1.1 302 Found
 +
Location: https://seed.gluu.org/oxauth-rp/home.seam#access_token=92648b74-68bb-4a04-a2b9-7236e7a7da42&token_type=bearer&expires_in=3599&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJodHRwczovL3NlZWQuZ2x1dS5vcmciLCJhdWQiOiJAITExMTEhMDAwOCEzRjQyLjQwOTQiLCJleHAiOjEzNzgxMzY5MzMsImlhdCI6MTM3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SHI1Hme9sGPSndDctDNdI4RZVkRiAVj0-L-h3UaqRfHMJXEKv3LEzJQ&auth_level=10&auth_mode=basic&session_id=a5706d1d-5738-4d90-a21a-cc97e12102dd&state=STATE_XYZ&scope=openid+profile+address+email
 +
 
 +
-------------------------------------------------------
 +
REQUEST:
 +
-------------------------------------------------------
 +
GET /oxauth/seam/resource/restv1/oxauth/userinfo HTTP/1.1
 +
Host: seed.gluu.org
 +
Authorization: Bearer 92648b74-68bb-4a04-a2b9-7236e7a7da42
 +
 
 +
-------------------------------------------------------
 +
RESPONSE:
 +
-------------------------------------------------------
 +
HTTP/1.1 200
 +
Content-Type: application/json
 +
Cache-Control: no-store, private
 +
Pragma: no-cache
 +
 
 +
{
 +
    "sub": "mike",
 +
    "name": "Micheal Schwartz",
 +
    "given_name": "Michael",
 +
    "family_name": "Schwartz",
 +
    "locale": "en-us",
 +
    "zoneinfo": "America/Chicago",
 +
    "picture": "http://www.gluu.org/wp-content/uploads/2012/04/mike3.png",
 +
    "street_address": "621 East 6th Street",
 +
    "locality": "Austin",
 +
    "country": "US",
 +
    "region": "Texas",
 +
    "email": "mike@gluu.org"
 +
}
 +
 
 +
 
 +
===============================================
 +
Custom suite
 +
Total tests run: 1, Failures: 0, Skips: 0
 +
===============================================
 +
</pre>
 +
 
 
}}
 
}}
 
<includeonly>[[Category:{{NAMESPACE}} FeatureTest Result]]</includeonly>
 
<includeonly>[[Category:{{NAMESPACE}} FeatureTest Result]]</includeonly>

Latest revision as of 06:52, 2 September 2013

{{#vardefine:DtArticleSortKey|}}

FTR-rp-scope-x-Gluu OX

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

}}

Date Tested   bgcolor={{{color}}}}}|2 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/RequestingUserInfoClaimsWithScopeValues.java
#######################################################
TEST: OC5:FeatureTest-Requesting UserInfo Claims with scope Values
#######################################################
-------------------------------------------------------
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",
    "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!3F42.4094",
    "client_secret": "074b3e85-95c9-413c-b130-e1b172408649",
    "registration_access_token": "14748f36-720c-4ff9-a352-69f481107617",
    "registration_client_uri": "https://seed.gluu.org/oxauth/seam/resource/restv1/oxauth/register?client_id=@!1111!0008!3F42.4094",
    "client_id_issued_at": 1378133322,
    "client_secret_expires_at": 1378219722,
    "response_types": [
        "token",
        "id_token"
    ],
    "application_type": "web",
    "client_name": "oxAuth test app",
    "token_endpoint_auth_method": "client_secret_basic",
    "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=token+id_token&client_id=%40%211111%210008%213F42.4094&scope=openid+profile+address+email&redirect_uri=https%3A%2F%2Fseed.gluu.org%2Foxauth-rp%2Fhome.seam&nonce=75873d7e-95e7-4690-983d-59e0286a0819&state=STATE_XYZ

-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 302 Found
Location: https://seed.gluu.org/oxauth-rp/home.seam#access_token=92648b74-68bb-4a04-a2b9-7236e7a7da42&token_type=bearer&expires_in=3599&id_token=eyJ0eXAiOiJKV1MiLCJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vc2VlZC5nbHV1Lm9yZy9veGF1dGgvc2VhbS9yZXNvdXJjZS9yZXN0djEvb3hhdXRoL2p3a3MiLCJraWQiOiIxIn0.eyJpc3MiOiJ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PRAZ8RNxZGhWwd7nvFURMNKMKFkaw3XPCq44yWsaGb7WotKcaG0z0V-K3eavOGD05b18U_kH8tA1_SojgY4dlFpae2RZiJJpQutbBzRBVlSHI1Hme9sGPSndDctDNdI4RZVkRiAVj0-L-h3UaqRfHMJXEKv3LEzJQ&auth_level=10&auth_mode=basic&session_id=a5706d1d-5738-4d90-a21a-cc97e12102dd&state=STATE_XYZ&scope=openid+profile+address+email

-------------------------------------------------------
REQUEST:
-------------------------------------------------------
GET /oxauth/seam/resource/restv1/oxauth/userinfo HTTP/1.1
Host: seed.gluu.org
Authorization: Bearer 92648b74-68bb-4a04-a2b9-7236e7a7da42

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

{
    "sub": "mike",
    "name": "Micheal Schwartz",
    "given_name": "Michael",
    "family_name": "Schwartz",
    "locale": "en-us",
    "zoneinfo": "America/Chicago",
    "picture": "http://www.gluu.org/wp-content/uploads/2012/04/mike3.png",
    "street_address": "621 East 6th Street",
    "locality": "Austin",
    "country": "US",
    "region": "Texas",
    "email": "mike@gluu.org"
}


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

Back To

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