Skip to content

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

@namatedev

Description

@namatedev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions