There are two ways you generate tokens

1) Through the store UI (This is the App Developer who will be doing this).
2) Through the /token API [1] (End users of the App will be using this
method)

In both cases, tokens are stored in the IDN_OAUTH2_ACCESS_TOKEN table. In
the first case, it is the App developer's username which is recorded in the
authz_user. In the second case, it is the end user's username. Therefore
getting a DISTINCT authz_user filtered by a given consumer_key will get you
the list of users for an Application (including the App owner).

[1] - https://docs.wso2.org/display/AM160/Token+API

Thanks,
NuwanD.


On Tue, Mar 25, 2014 at 10:57 PM, Uvindra Dias Jayasinha
<[email protected]>wrote:

> Adding dev.
>
> okay maybe I've misunderstood the whole thing, when I look at the
> authz_user column, it is in fact the user logged into the store. Since the
> user logged into the store is the App developer who will subscribe to the
> API, how do we differentiate between the App developer and the user who in
> fact using the App? Have I missed something?
>
>
>
> On Tue, Mar 25, 2014 at 11:34 AM, Nuwan Dias <[email protected]> wrote:
>
>> Registered users means end users of the App. If you query the
>> IDN_OAUTH2_ACCESS_TOKEN table by consumer key (application identifier) and
>> do a SELECT DISTINCT authz_user, you should get the list of registered
>> users (end users) of the application.
>>
>> No need to discuss this in private btw :)
>>
>> Thanks,
>> NuwanD.
>>
>>
>> On Mon, Mar 24, 2014 at 8:37 PM, Uvindra Dias Jayasinha <[email protected]
>> > wrote:
>>
>>> When we want to display the registered users per an App, are they
>>> represented by the Consumer Key?(It obviously cant be the user logged into
>>> the store, right? Because the logged in user is the App developer)
>>>
>>> Could not find a clear confirmation regarding this in the product
>>> documentation, or maybe I missed it.
>>>
>>> --
>>> Regards,
>>> Uvindra
>>>
>>> Mobile: 777733962
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Senior Software Engineer - WSO2, Inc. http://wso2.com
>>  email : [email protected]
>> Phone : +94 777 775 729
>>
>
>
>
> --
> Regards,
> Uvindra
>
> Mobile: 777733962
>



-- 
Nuwan Dias

Senior Software Engineer - WSO2, Inc. http://wso2.com
email : [email protected]
Phone : +94 777 775 729
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to