Re: [Dev] WSO2 Identity Provider: Claims only returns: { sub: "admin@carbon.super" }

2016-03-21 Thread Pushpalanka Jayawardhana
Hi Ignacio,

I assume you are using authorization code grant type or implicit grant type.
In that case please do configuration for requested claims under service
provider configuration.

In the above grant types we only return the claims added as requested by
the service provider.
Instructions to do this configuration can be found at [1] (*Use Local Claim
Dialect*).

[1] -
https://docs.wso2.com/display/IS510/Configuring+Claims+for+a+Service+Provider

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


On Mon, Mar 21, 2016 at 1:04 PM, Ignacio Ocampo  wrote:

> Hello Maduranga,
>
> Thanks for your info, I saw these bugs reported in Stackoverflow.
>
> I'm using: wso2is-5.2.0-SNAPSHOT.
>
> When I do: curl -k -H "Authorization: Bearer
> defbb069decad5e9f584280f9371fd24"
> https://localhost:9443/oauth2/userinfo?schema=openid
>
> I get: {"sub":"admin@carbon.super"}
>
> To obtain the Access Token, I'm using the scope: openid.
>
> I updated the user profile in the /dashboard app, and I verified that the
> information was stored in the LDAP server.
>
> When I registered the Service Provider, I configured only the OAuth/OpenID
> Connect Configuration to obtain the Client and Secret key.
>
> Is there any additional configuration that I should do?
>
> Thanks in advance.
>
> Regards.
>
> On Mon, Mar 21, 2016 at 12:24 AM, Maduranga Siriwardena <
> madura...@wso2.com> wrote:
>
>> Hi Ignacio,
>>
>> This a known issue in IS 5.1.0 reported at [1]. The issue is already
>> fixed in IS 5.2.0 Alpha and you can download it from [2].
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4250
>> [2] https://github.com/wso2/product-is/releases/tag/v5.2.0-alpha
>>
>> Thanks,
>> Maduranga.
>>
>> On Mon, Mar 21, 2016 at 12:33 PM, Ignacio Ocampo 
>> wrote:
>>
>>> Hello,
>>>
>>> I'm testing WSO2 Identity Provider.
>>>
>>> My problem is that when I request to
>>> https://localhost:9443/oauth2/userinfo?schema=openid, I only get the *sub
>>> *field.
>>>
>>> I expect to receive others such mail, phone, etc, that I already defined
>>> in the profile for the user.
>>>
>>> Thanks in advance.
>>>
>>> Regards.
>>>
>>> --
>>> Ignacio Ocampo Millán
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Maduranga Siriwardena
>> Software Engineer
>> WSO2 Inc.
>>
>> email: madura...@wso2.com
>> mobile: +94718990591
>>
>
>
>
> --
> Ignacio Ocampo Millán
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Identity Provider: Claims only returns: { sub: "admin@carbon.super" }

2016-03-21 Thread Ignacio Ocampo
Hello Maduranga,

Thanks for your info, I saw these bugs reported in Stackoverflow.

I'm using: wso2is-5.2.0-SNAPSHOT.

When I do: curl -k -H "Authorization: Bearer
defbb069decad5e9f584280f9371fd24"
https://localhost:9443/oauth2/userinfo?schema=openid

I get: {"sub":"admin@carbon.super"}

To obtain the Access Token, I'm using the scope: openid.

I updated the user profile in the /dashboard app, and I verified that the
information was stored in the LDAP server.

When I registered the Service Provider, I configured only the OAuth/OpenID
Connect Configuration to obtain the Client and Secret key.

Is there any additional configuration that I should do?

Thanks in advance.

Regards.

On Mon, Mar 21, 2016 at 12:24 AM, Maduranga Siriwardena 
wrote:

> Hi Ignacio,
>
> This a known issue in IS 5.1.0 reported at [1]. The issue is already fixed
> in IS 5.2.0 Alpha and you can download it from [2].
>
> [1] https://wso2.org/jira/browse/IDENTITY-4250
> [2] https://github.com/wso2/product-is/releases/tag/v5.2.0-alpha
>
> Thanks,
> Maduranga.
>
> On Mon, Mar 21, 2016 at 12:33 PM, Ignacio Ocampo  wrote:
>
>> Hello,
>>
>> I'm testing WSO2 Identity Provider.
>>
>> My problem is that when I request to
>> https://localhost:9443/oauth2/userinfo?schema=openid, I only get the *sub
>> *field.
>>
>> I expect to receive others such mail, phone, etc, that I already defined
>> in the profile for the user.
>>
>> Thanks in advance.
>>
>> Regards.
>>
>> --
>> Ignacio Ocampo Millán
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
> email: madura...@wso2.com
> mobile: +94718990591
>



-- 
Ignacio Ocampo Millán
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Identity Provider: Claims only returns: { sub: "admin@carbon.super" }

2016-03-21 Thread Maduranga Siriwardena
Hi Ignacio,

This a known issue in IS 5.1.0 reported at [1]. The issue is already fixed
in IS 5.2.0 Alpha and you can download it from [2].

[1] https://wso2.org/jira/browse/IDENTITY-4250
[2] https://github.com/wso2/product-is/releases/tag/v5.2.0-alpha

Thanks,
Maduranga.

On Mon, Mar 21, 2016 at 12:33 PM, Ignacio Ocampo  wrote:

> Hello,
>
> I'm testing WSO2 Identity Provider.
>
> My problem is that when I request to
> https://localhost:9443/oauth2/userinfo?schema=openid, I only get the *sub
> *field.
>
> I expect to receive others such mail, phone, etc, that I already defined
> in the profile for the user.
>
> Thanks in advance.
>
> Regards.
>
> --
> Ignacio Ocampo Millán
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

email: madura...@wso2.com
mobile: +94718990591
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev