Re: [Dev] "[DEV] [IS] [oauth2] Error occurred for custom grant type

2015-09-28 Thread Pushpalanka Jayawardhana
Hi Kavitha, Please replace the existing setAuthorized(String str) method as per below code. We have changed it to be like setAuthorized(User user) now. if (username.indexOf(CarbonConstants.DOMAIN_SEPARATOR) < 0 && UserCoreUtil.getDomainFromThreadLocal() != null &&

Re: [Dev] "[DEV] [IS] [oauth2] Error occurred for custom grant type

2015-09-28 Thread Lakshani Gamage
Hi Kavitha, As you can see in [1], setAuthorizedUser is taking a User object but not a String. [1]

[Dev] "[DEV] [IS] [oauth2] Error occurred for custom grant type

2015-09-28 Thread Kavitha Subramaniyam
Hi IS team, I'm getting an error[1] for Oauth2 custom grant type when generating access token for grant type-mobile in IS-5.1.0-Alpha and I have noticed that there is a resolved jira[2] says that "..fix provides support to add custom grant types by allowing to add grant type validators..". I have

Re: [Dev] "[DEV] [IS] [oauth2] Error occurred for custom grant type

2015-09-28 Thread Lakshman Udayakantha
Hi Kavitha, problem here is NoSuchMethodError exception. The reason for this exception is when you build the jars that method (in your case setAuthorizedUser) is available in to the compiling environment. but when your jar is in run time, that method is not available. If I extend the lakshani's