Subversion Repositories SmartDukaan

Rev

Rev 24491 | Rev 24496 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24491 Rev 24494
Line 121... Line 121...
121
	private RoleRepository roleRepository;
121
	private RoleRepository roleRepository;
122
 
122
 
123
	@RequestMapping(value = ProfitMandiConstants.URL_USER_GOOGLE_LOGIN, method = RequestMethod.POST)
123
	@RequestMapping(value = ProfitMandiConstants.URL_USER_GOOGLE_LOGIN, method = RequestMethod.POST)
124
	public ResponseEntity<?> googleLogin(HttpServletRequest request, @RequestBody GoogleLoginRequest googleLoginRequest) throws ProfitMandiBusinessException{
124
	public ResponseEntity<?> googleLogin(HttpServletRequest request, @RequestBody GoogleLoginRequest googleLoginRequest) throws ProfitMandiBusinessException{
125
		LOGGER.info("requested url : " + request.getRequestURL().toString());
125
		LOGGER.info("requested url : " + request.getRequestURL().toString());
-
 
126
		Map<String, Object> resultMap = googleLoginProcessor.process(googleLoginRequest);
-
 
127
		LOGGER.info("Response sent is {}", resultMap);
126
		return responseSender.ok(googleLoginProcessor.process(googleLoginRequest));
128
		return responseSender.ok(googleLoginProcessor.process(googleLoginRequest));
127
	}
129
	}
128
 
130
 
129
	@RequestMapping(value = ProfitMandiConstants.URL_USER_TOKEN_IS_EXPIRED, method = RequestMethod.GET)
131
	@RequestMapping(value = ProfitMandiConstants.URL_USER_TOKEN_IS_EXPIRED, method = RequestMethod.GET)
130
	public ResponseEntity<?> tokenIsExpired(HttpServletRequest request, @RequestParam(name = "token") String token) throws ProfitMandiBusinessException{
132
	public ResponseEntity<?> tokenIsExpired(HttpServletRequest request, @RequestParam(name = "token") String token) throws ProfitMandiBusinessException{