Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie issue ('state') with admin-ui #59

Open
namatedev opened this issue May 25, 2020 · 2 comments
Open

Cookie issue ('state') with admin-ui #59

namatedev opened this issue May 25, 2020 · 2 comments

Comments

@namatedev
Copy link

namatedev commented May 25, 2020

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

@almontasser
Copy link

Any updates on this issue?

@almontasser
Copy link

This is happening with me on chrome, but on incognito or firefox works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants