Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    End Date

    None yet

    Complexity

    None yet

    Start Date

    None yet

    Original Estimate

    None yet

    Time Tracking

    None yet

    Resolved By

    None yet

    Story Points

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions