Closed timpeteren closed 1 year ago
Hi!
Have you seen the "How it works" guides? https://developer.vippsmobilepay.com/docs/APIs/login-api
Have you tried using the Postman collection mentioned here? https://developer.vippsmobilepay.com/docs/APIs/login-api/vipps-login-api-quick-start
Hi @cloveras ! I have followed the mentioned guides, I was not aware of the Postman collection, which is a good reference to what goes into each of the Vipps authentication endpoint requests. As I'm getting some inexplicable "Invalid client credentials" when testing I am not able to get anyhwere using Postman (I don't have access to your portal either, so I will need some additional help to further troubleshoot). As far as I can see we are doing the proper requests, for the purpose of pre-filling the phone number... But as it's no longer Easter it's easier to get in direct contact with you, so I'll do that and report back my findings! :-) Thanks for helping out!
Hi.
Is this an issue or am I doing something wrong?
When building an URL and calling /authorize I am not able to pass the login_hint param into the mobile phone field, as documented...
https://github.com/vippsas/vipps-login-api/blob/master/api-guide/flows/phone-number-ciba-flows.md#the-login_hint-parameter-required
https://apitest.vipps.no/access-management-1.0/access/oauth2/auth?client_id=&redirect_uri=https://id.\<company>.no/\<companyTenant>.onmicrosoft.com/oauth2/authresp&response_type=code&scope=openid+birthDate+email+name+phoneNumber&response_mode=form_post&nonce=bNQG/A7bcJWP7GYN4w3lGg==&login_hint=urn:mobilenumber:\<8digits>&state=StateProperties=eyJTSUQiOiJ4LW1zLWNwaW0tcmM6ZTRmMDUwN2YtNzg1MC00N2JiLTk1ZjQtYmFmYmUwM2U2ZjFhIiwiVElEIjoiMTM5ZmNjMWMtODQxMy00ZTYyLWFmNTMtOWNiMzRmYzU3NDBmIiwiVE9JRCI6ImVlNjdhOTM5LWQ3ZTgtNGNiNi1hZjUzLWIxN2NjNGE4ZDZlNCJ9&ia=web
As far as I can understand login_hint=urn:mobilenumber:12345678 should result in the Vipps phone field being populated. I don't get any errors, the value is simply omitted. I have tried this both for apitest.vipps.no and api.vipps.no so no difference in environments.
Any and all ideas or feedback is greatly appreciated! :-)
Thanks in advance!
\-Tim Peter
EDIT: Added some backslashes to properly escape placeholders