Forráskód Böngészése

Update AuthorizeBaseEndpoint.java

MaxKey 2 éve
szülő
commit
19e9a5f709

+ 4 - 2
maxkey-protocols/maxkey-protocol-authorize/src/main/java/org/maxkey/authz/endpoint/AuthorizeBaseEndpoint.java

@@ -103,13 +103,15 @@ public class AuthorizeBaseEndpoint {
 	
 	public ModelAndView initCredentialView(String appId,String redirect_uri){
 		String initCredentialURL = 
-				"redirect:" + 
+				"" + 
 				applicationConfig.getFrontendUri() + 
 				"/#/authz/credential?appId=%s&redirect_uri=%s";
 		
 		initCredentialURL = String.format(initCredentialURL,appId, redirect_uri);
 		_logger.debug("redirect to {}.",initCredentialURL);
-		return new ModelAndView(initCredentialURL);
+		ModelAndView  modelAndView =new ModelAndView("redirect");
+		modelAndView.addObject("redirect_uri", initCredentialURL);
+		return modelAndView;
 	}
 	
 }