Posts

Showing posts from June, 2017

How to Pick Best Stocks in Share Market

Image
When thinking about investments, 3 things come to my mind, in Sri Lankan context. Buy real state in a suburb or a town that is fast growingPut in a Fixed Deposit in a bankInvest in the stock market As the current FD rates are in declining phase, it did not really come as a good option to me at the moment of writing this. Hence I thought to investigate a bit on investing in the share market as it doesn't really need a larger amount of money as to by a property as in option 1.
Below is an insightful speech by the richest person in Sri Lanka, who is known as a business magnate, 'Mr. Dhammika Perera', explaining how he started with share market (while the overall speech highlights many important facts, he specifically talks about share market from 6minutes and 26 seconds. Speech is in Sinhalese).

One thing he said, captured me that do not enter a business if you do not know about it. He also emphasized that it's the knowledge we should seek, not money, which surprised me t…

WSO2 Identity Server - Extension Points - Part 2 - OAuth

OAuth2 is widely used in the enterprise today for authorization aspects of APIs. This is the second post on the extension points available in WSO2 Identity Server after WSO2 Identity Server - Extension Points - Part 1 - SAML

All the implementation using following extension point needs to be configured at <IS_HOME>/repository/conf/identity/identity.xml file under the element OAuth.
1. Custom OAuth grant handlerUsage: When we need to support an OAuth flow that is different from standard grant types. Validates the grant, scopes, and access delegation.
Sample:https://docs.wso2.com/display/IS510/Writing+a+Custom+OAuth+2.0+Grant+Type
Interface:org.wso2.carbon.identity.oauth2.token.handlers.grant.AuthorizationGrantHandler
2. Client Auth Handler
Usage: When the client credential authentication needs to be customized. By default we validate the client id and secret.
Interface: org.wso2.carbon.identity.oauth2.token.handlers.clientauth.ClientAuthenticationHandler
3. OAuthCallbackHandlerAn ex…