Hi Nuwan,
Noted and I will do.

Thanks,

On Fri, Feb 13, 2015 at 8:37 AM, Madusanka Premaratne <[email protected]>
wrote:

> Hi Lalaji,
> No we are not going to store in those in the db. We are going to store it
> in the cache and planning to use the request URL as the cache key.
> I am sorry If I confuse you while having offline conversation.
>
> Thanks,
>
> On Thu, Feb 12, 2015 at 5:57 PM, Lalaji Sureshika <[email protected]> wrote:
>
>> Hi Madusanka,
>>
>> On Wed, Feb 11, 2015 at 6:14 AM, Madusanka Premaratne <
>> [email protected]> wrote:
>>
>>> Hi All,
>>> In API Manager, we only support secure endpoints through basic auth. To
>>> improve it to use OAuth, we are going to use ESB OAuth Mediator. But
>>> currently the above mediator only validates the keys and the consumer.
>>>
>>> Improvement :
>>>
>>>    - Feed client key, secret and *token endpoint* to the mediator from
>>>    the UI.
>>>
>>>                 In this case, the consumer key and secret needed for
>> backend endpoint will be pre-defined for each creating API from publisher
>> UI..One other thing which we may need to consider is when the end
>> user[client app] is having the oauth2 token needed from back-end endpoint
>> and that token will be sent directly with each request [by either skipping
>> oauth2 layer in APIM],at this time,we will not need to dynamically generate
>> the back-end endpoint needed oauth2 token again..
>>
>>>
>>>    - Generate a token for the consumer and stores it to use with API
>>>    Manager (or any other product)
>>>    - Store the lifetime / remaining time of the token
>>>    - If token expires, generate a token automatically and store it for
>>>    future use
>>>
>>>                Are we going to store the back-end required oauth2 token
>> information also in APIM level db storage..? Isn't it better to maintain a
>> local cache with these information and if the information not in cache,do
>> the token generation call against back-end token endpoint,instead keeping
>> those information again in APIM db storage level..?
>>
>>
>>
>>> Please see the attachment below for graphical representation[1]
>>>
>>> [1] -
>>> https://drive.google.com/a/wso2.com/file/d/0B6h6rqrZ11fFQWZ5UkJXZ1JZX2c/view?usp=sharing
>>>
>>> Your feedback and suggestions are welcome.
>>> ​Thanks,​
>>>
>>> --
>>> *Madusanka Premaratne* | Associate Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>>> Email: [email protected] | Web: www.wso2.com
>>>
>>> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
>>> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
>>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>>> <http://instagram.com/madusankapremaratne> [image: Skype]
>>> <http://@rmmpremaratne>
>>>
>>>
>>> _______________________________________________
>>> Architecture mailing list
>>> [email protected]
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> Lalaji Sureshika
>> WSO2, Inc.;  http://wso2.com/
>> email: [email protected]; cell: +94 71 608 6811
>> blog: http://lalajisureshika.blogspot.com
>>
>>
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
> Email: [email protected] | Web: www.wso2.com
>
> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
> <http://instagram.com/madusankapremaratne> [image: Skype]
> <http://@rmmpremaratne>
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: [email protected] | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to