Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    Hello,

    The https://mydomain.com/wp-vipps-login/continue-from-vipps endpoint should redirect you to either a success page (the users profile page, the “my account” page, the checkout page or other based on the state of the login) or a failure page. Does this not happen?

    After a successful login, you can access the users’ info the normal way. It is also possible to get the users’ info from the Vipps session without actually logging in with filters.

    Thread Starter x9999

    (@x9999)

    Hi, the endpoint doesn’t redirect to a success page, just a blank page where I can access the response containing scope, code and state.

    For this reason I just added a simple php file to the endpoint, is it not possible to retrieve user info programatically from this php file?

    Thanks a lot.

    Plugin Author Iver Odin Kvello

    (@iverok)

    No, or at least not easily. This endpoint is handled by the template_redirect hook in the ContinueWithVipps class, so you would have to load the entire WP system, instantiate this and call the apropriate methods.

    Your file will however interfere with the actual problem and make this more difficult to resolve; so I would recommend removing it and rather try to find out why the redirect isn’t happening.

    If you want to we can assist you in this. If you do not want to expose your sites address you can send it to [email protected]; otherwise just post your login link so we can see what headers are returned. We do not need an account on your site.

    Thread Starter x9999

    (@x9999)

    Just sent the url to the email address.

    Now that Ive removed the php file the login attempt just returns Not found error for the requested url.

    Plugin Author Iver Odin Kvello

    (@iverok)

    This is caused by a very nontypical permalink setup; hopefully this can be resolved as discussed on email.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘access user info after vipps login’ is closed to new replies.