Solved. The error code coming back is [duplicate]user.email. I just need to ignore that!
Best posts made by richb201
-
RE: How to restart FusionAuth
-
RE: adding passwordless login to a wordpress page?
Thx Dan, I read it. It might be more trouble than it is worth. I am thinking a link from landing page to the initiation of the passwordless might do the trick, although i do need the users to register (both for fa and for me).
<a href="http://localhost:9011/oauth2/register?client_id=f603697d-41ea-4c53-xxxx-e935d5e34221&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%2Findex.php%2FConfigure%2Fcampaign_management_with_actions">Register</a>
-
backing up my FA configuration
I am running FA on my docker based PC. I'd like to backup the FA database to BackInTime just in case. What directory do I backup?
-
RE: My plan -will this work?
Thanks Dan. As soon as my consultant get the API for php installed I will get right on it.
-
RE: error when trying to send test email
Never mind. I solved this. I thought that "change password" was going to be a prompt for the user, not for me to set up the password. Once I did, it worked.
-
RE: Login with Magic Link?
Are you asking for some free consulting ?
No, I can play this "trial and error" game for months :). Seriously though, I am a little concerned that I couldn't enter the URL for quite a few days and then it started working. I just want to be sure that the authorized request origin URL is actually being used. Is there some easy way to test that without using the API?
Did I mention that I appreciate your help and the T-shirt too? -
RE: where to find the /api/status response?
Solved (I think). This line above needed to be changed
from
$client = new FusionAuth\FusionAuthClient($apiKey, "http://localhost:9011");
to
$client = new FusionAuth\FusionAuthClient( $apiKey, "http://fusionauth:9011");Now I get the error code lijke in your example that will allow me to fix this thing. In your example above you use localhost too. So how does yours work when mine does not? I am using Docker btw. If using fusionauth:9011 will cause me other headaches, please let me know before I break out the champagne!
Also, we discussed putting my client secret in the Oauth login URL. I was concerned about security when doing that. Can you please recommend an easy, more secure place to keep those fields?
-
RE: where to find the /api/status response?
solved. I needed to type DELETE.
-
RE: trouble sending the passwordless email
I am using the php client. In the documentation (https://github.com/FusionAuth/fusionauth-php-client/blob/master/src/FusionAuth/FusionAuthClient.php) there are 5 function calls that start with the word "send". Here they are:
public function sendFamilyRequestEmail($request)
public function sendEmail($emailTemplateId, $request)
public function sendPasswordlessCode($request) <<<this one works!!
public function sendTwoFactorCode($request)
public function sendTwoFactorCodeForLogin($twoFactorId)I got it working! As you can see the php client doesn't line up EXACTLY with the passwordless guide.
Latest posts made by richb201
-
RE: where did the dashboard go?
@dan Well I took a look through my code and see that it is trying to reach
Is that no longer valid? My browser can't seem to find it.
-
RE: where did the dashboard go?
@dan , can you give me a hint of what 'yourfusionauthhost' is?
-
where did the dashboard go?
It has been about 2 years since I was fooling with Fusion Auth. At that time I had gotten the passwordless working fine, but did have issues with the regular authentication. Perhaps I am just not smart enough. I eventually moved over to Okta for the regular authentication and it seems to work fine. And people still ask me what my tee shirt means!
Anyway, now I am back to working on the passwordless surveys part which still uses FusionAuth. I tried it out yesterday but it didn't work. So I thought maybe there was an error in the dashboard. But now I can't find the dashboard. Does it no longer exist?
Rich
-
can't login as admin
Can't log in to my server. It is located at staging.researchstudyonline.com:9011.
My password keeps failing. I then tried the "forgot password" link. It says that it sent an email but the email never arrives.I had to split the server into two different copies. One at researchstudyonline.com and one at staging.researchstudyonline.com.
The old one, researchstudyonline.com:9011 I can get into fine. But the new one staging.researchstudynline.com:9011 won't take my password. Does each possibly have its own apiKey? I created a second copy of the fusionAuth database file since I thought that two different servers couldn't share a single file. Was I wrong?
What to do?
-
RE: setting up a staging server
Thanks. I set up two databases now instead of just one and having both production and staging share it. But I find when I go into the FA control panel on staging and change things such as paths it changes the paths for both the staging and the production servers.
Where do I specify (for each server) what database should be used?
-
setting up a staging server
I have set up a staging server called stage.researchstudyonline.com. It is running parallel to my real server researchstudyonone.com. So they are two different domains and thus use two different fusionAuth servers. They both use the same mysql RDS database.
I can log into the original one fine. But my userid/password doesn't work on http://stage.researchstudyonline.com:9011. How can fix this? Must I create a separate database for the staging server?
-
RE: startup Self-Service Registration?
Hey Dan. It has been a long time! I just can't get past the passwordless problem I have with fusionAuth. Your help has been stellar but I really need to hire someone to get me over the "hump". Seems like there are not too many people out there that have a working knowledge of FA. I have tried to find one! Can't hire help and can't get community help leaves me with no options.
I took a look at https://fusionauth.io/learn/expert-advice/authentication/webapp/oauth-authorization-code-grant-sessions/ and will try to switch over to using this method since it seems well documented. I will probably need to find someone to update the themes if I get it going. Good luck on that!
I really like the diagram which shows the message flows in it. Is there a document, just like oauth-authorization-code-grant-sessions but for passwordless? That diagram, but for passwordless, would definately help.
-
RE: startup Self-Service Registration?
Thanks. I read the Modern Guide to Oauth yesterday. In it I see that this code is being used to condition the URL prior to sending.
function base64URLEncode(str) { return str.toString('base64') .replace(/\+/g, '-') .replace(/\//g, '_') .replace(/=/g, ''); }
I don't know what language this is in. Where can I find a php version?
I also saw a document up here on porting from fusionAuth to auth0. I am considering going the other way. Do you guys have a document describing how to do that?
-
startup Self-Service Registration?
Joshua, I have been trying for over a year to get an answer to why my passwordless login is failing. I do have it working in another part of my application so I know it works.
I also know that fusionAuth is interested in signing up paid users and i am aware of my Linkedin (which i don't really use for security reasons) being perused by some of your marketing people. I just don't know how you get signups without customer success?
I am ready to launch and need to get the passwordless working. Is there a consulting arraignment I could set up to fix this one little issue? You must know an ex-FA employee who would like to make a few extra $?
-
RE: Invalid redirect
And here is the code that causes that:
$request["applicationId"] = $_SESSION['applicationID_login']; $request["loginId"] = $email; $request["state"]["redirect_uri"] = "http://researchstudyonline.com:81/index.php/Configure/report_generator_amazing"; // $request["state"]["client_id"] = $_SESSION['applicationID_admin_register_login']; $request["state"]["client_id"] = $_SESSION['applicationID_login']; $request["state"]["response_type"] = "code"; $request["state"]["scope"] = "openid"; $request["state"]["state"] = "$email"; $requestJ = json_encode($request); //convert the array into json $result = $_SESSION['client']->withTenantId($_SESSION['tenantID_login'])->startPasswordlesslogin($requestJ); if (!$result->wasSuccessful()) { log_message('error', $result); } $code = $result->successResponse->code; //send the email $request = array(); $request["code"] = $code; $request["X-FusionAuth-TenantId"]=$_SESSION['tenantID_login']; $request["user"]["data"]["admin_email"] = $email; $requestJ = json_encode($request); //convert the array into json $result = $_SESSION['client']->sendPasswordlessCode($requestJ); if (!$result->wasSuccessful()) { log_message('error', $result); }
Are there any error messages in a log?