-
Notifications
You must be signed in to change notification settings - Fork 126
Description
Hello Mosip team,
When the admin-ui angular app makes a first connection with the mosip server using this url : authmanager/authorize/admin/validateToken
the MOSIP server returns that cookies are empty:
io.mosip.kernel.auth.exception.AuthManagerException: Cookies are empty
at io.mosip.kernel.auth.controller.AuthController.validateAdminToken(AuthController.java:292)
Then the admin-ui can not start after this step, because when it tries just after to log with the url /v1/authmanager/login/aHR0cDovL2xvY2FsaG9zdDo0MjAwLw==
the server returns that there is a missing cookie 'state' with the below error:
org.springframework.web.bind.ServletRequestBindingException: Missing cookie 'state' for method parameter of type String
Even-tough the angular admin ui code does set the cookie:
this.cookie.set('state', stateParam, undefined, '/');
It is like the mosip server at first can not manage to create the cookie first.
Any idea?
Thanks