chrispopp Posted March 27, 2017 Report Share Posted March 27, 2017 Is there a way to create a link to log a user directly into their user portal? What I'm trying to do, is create a link in my billing portal to log the user directly into their user portal and take advantage of the webrtc phone. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted March 28, 2017 Report Share Posted March 28, 2017 This would work only if you have the username and the web password for the account. Using the admin username and password is not really a solution as this user then you have admin right, and could access admin content as well. Quote Link to comment Share on other sites More sharing options...
chrispopp Posted March 28, 2017 Author Report Share Posted March 28, 2017 But is there a way to generate a link or script that would login the user automatically? I want to be able to send their login link directly, without them needing to enter/know the credentials. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted March 29, 2017 Report Share Posted March 29, 2017 Of course you can always script it, e.g. using curl. You might have to login and get a session token, but AFAIK that is not so difficult with curl. The key point is that you need the username and password. If you have it, it should be relatively easy. Quote Link to comment Share on other sites More sharing options...
chrispopp Posted March 30, 2017 Author Report Share Posted March 30, 2017 We tired two different curl calls. First we tired rest curl ( url = /rest/system/session, method=PUT, data={name=’auth’, value=’’} ) and generate user level session token, and redirect to the usr_portal.html page with custom header with include session token which we got From rest call. This process didn’t worked. Second we tired to make curl ( url=/welcome.htm, method=GET) with basic authorization in header and didn’t worked. Any other ideas? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted March 31, 2017 Report Share Posted March 31, 2017 The process with the session looks right. Are you sure there was not a little glitch somewhere? Maybe you can get a PCAP just for the HTTP traffic and send a private message (or open a ticket) so that we can take a look at it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.