<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[workflow for self registration]]></title><description><![CDATA[<p dir="auto">Thanks to your help, I managed to get the passwordless login working from PHP. All kudos to you!</p>
<p dir="auto">I have one more task to accomplish. Users will be able to register themselves. Here is the flow as I see it:</p>
<ol>
<li>user fills out registration form in my application</li>
<li>if their email is unique, FA will send a verification email</li>
<li>user will verify and I will register them in FusionAuth</li>
</ol>
<p dir="auto">The steps that are new to me are the a) send verification email b) register the user (with logging them in)</p>
<p dir="auto">Do you have a workflow for this via the API? I am don't want to add them into FA until they have verified their email address. I am not sure what steps I need to take to get the verification email to be sent?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/682/workflow-for-self-registration</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Mar 2026 18:13:39 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/682.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Dec 2020 16:43:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to workflow for self registration on Thu, 07 Jan 2021 04:07:02 GMT]]></title><description><![CDATA[<p dir="auto">Hard to know exactly what's going on.</p>
<p dir="auto">I would try creating another tenant and seeing if the same SMTP settings fail. Then I'd try standing up a version with the very latest FusionAuth version and seeing if you see the same behavior.</p>
<p dir="auto">Also, do you have the same tenant smtp settings? That is under the "advanced" tab, then "smtp settings".</p>
]]></description><link>https://fusionauth.io/community/forum/post/2127</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2127</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Thu, 07 Jan 2021 04:07:02 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Tue, 05 Jan 2021 21:15:03 GMT]]></title><description><![CDATA[<p dir="auto">Thanks. I have tried sending the test email from the UI from the two different tenants. One consistntly fails and the other consistantly works.  I am attaching the two tenant views. From the SMTP POV they are exactly the same except for the name. <img src="/community/forum/assets/uploads/files/1609881137351-screenshot-from-2021-01-05-15-54-20.png" alt="Screenshot from 2021-01-05 15-54-20.png" class=" img-fluid img-markdown" /> <img src="/community/forum/assets/uploads/files/1609881146761-screenshot-from-2021-01-05-15-49-02.png" alt="Screenshot from 2021-01-05 15-49-02.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The one that works is from the default tenant and the one that doesn't is from administrators.</p>
<p dir="auto">I have asked AWS support if they could tell me exactly why this is failing. Are we sure that the failure is being generated from the AWS SES  (SMTP)server?</p>
]]></description><link>https://fusionauth.io/community/forum/post/2109</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2109</guid><dc:creator><![CDATA[richb201]]></dc:creator><pubDate>Tue, 05 Jan 2021 21:15:03 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Tue, 05 Jan 2021 15:45:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/279">@richb201</a></p>
<p dir="auto">Email troubleshooting is documented here: <a href="https://fusionauth.io/docs/v1/tech/troubleshooting/#troubleshooting-email" rel="nofollow ugc">https://fusionauth.io/docs/v1/tech/troubleshooting/#troubleshooting-email</a></p>
<p dir="auto">Might be worth trying some of the steps outlined there.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2106</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2106</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Tue, 05 Jan 2021 15:45:23 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Tue, 05 Jan 2021 09:22:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/19">@mgetka</a> It is 530. When I try to send a test email from this application I get</p>
<p dir="auto">"Unable to send email via JavaMail530 Authentication required"</p>
<p dir="auto">Is that something that can be fixed in my FA setup or is this a question for AWS? I do have another application using the same smtp that works fine.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2102</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2102</guid><dc:creator><![CDATA[richb201]]></dc:creator><pubDate>Tue, 05 Jan 2021 09:22:38 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Fri, 01 Jan 2021 17:55:04 GMT]]></title><description><![CDATA[<pre><code>$request["user"]["type"] = "admin";
</code></pre>
<p dir="auto">The user entity has not <code>type</code> member. To make such a distinction you can use <a href="https://fusionauth.io/docs/v1/tech/apis/groups/" rel="nofollow ugc">groups</a>.</p>
<p dir="auto">You can set registration verification template either via GUI ora API - it doesn't make a difference. Since registrations are application specific, you firstly need to enable application's registrations verification and then you can select the template. Via GUI it can be done in <em>Edit Application &gt; Registration</em>.</p>
<p dir="auto">But still, at the moment I'm rather confused, and don't really know what are you actually trying to achieve. I suppose that email verification is the only verification that you need, but that is just my guesing.</p>
<p dir="auto">In the previos post you mentioned 530 error, now it is 503. Also, you haven't provided full trace, so my response was based on some guessing, and the fact that 530 is actually defined in SMTP. On the other hand 503 <strong>HTTP</strong> code may be returned by the FA on an event of elastic search issues.</p>
<blockquote>
<p dir="auto"><strong>503</strong><br />
The search index is not available or encountered an exception so the request cannot be completed. The response will contain a JSON body.</p>
</blockquote>
<p dir="auto">See <a href="https://fusionauth.io/docs/v1/tech/apis/passwordless/#complete-a-passwordless-login" rel="nofollow ugc"><em>Complete a Passwordless Login</em></a>.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2086</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2086</guid><dc:creator><![CDATA[mgetka]]></dc:creator><pubDate>Fri, 01 Jan 2021 17:55:04 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Fri, 01 Jan 2021 15:55:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/19">@mgetka</a> Thanks. I will try it.<br />
Here is the current way I try to add a user and register them.</p>
<p dir="auto">$request = array();<br />
$request["registration"]["applicationId"] = $_SESSION['applicationID_admin_register_login'];<br />
$request["user"]["email"] = $email;<br />
$request["user"]["password"] = "12345678";<br />
$request["user"]["userId"] = $id;  //this is the record number from the employees table -needed to delete the record from mySQL<br />
$request["user"]["type"] = "admin";  //mark this guy as admin<br />
//add the id from the employees table<br />
$requestJ = json_encode($request);   //convert the array into json<br />
$result = $_SESSION['client']-&gt;register("", $requestJ);</p>
<p dir="auto">Are you saying that I need to set the registration verifcation emaIl via the API, rather than using the UI (see the email verification text field in above image)? Notice that I am not using the tenantID anywhere in this? But the application ID is used and it does have a tenant associated with it. Again, just to make my question clear. Where do I specify in the UI which template to run for registration verification?</p>
<p dir="auto">On the tenant SMTP and the 503 error, I am using the EXACT same SMTP that was working correctly before I moved to a new application (due to not being able to do the registration in one tenant and the login in a different one).</p>
]]></description><link>https://fusionauth.io/community/forum/post/2085</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2085</guid><dc:creator><![CDATA[richb201]]></dc:creator><pubDate>Fri, 01 Jan 2021 15:55:07 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Fri, 01 Jan 2021 13:50:08 GMT]]></title><description><![CDATA[<p dir="auto">Passwordless template is used for passwordless email, so as you are using passwordless login flow, you need this template. This topic, started with the question about email verification, so I suppose you use this feature, and email verification template will be useful as well. As for the registration verification template, as I have recently written:</p>
<blockquote>
<p dir="auto">To sum it up, user entity, created on an user creation event represents an user. This entity contains the user email and its verification status. The user email verification email may be sent only on user creation.<br />
The registration, is an entity that associates <strong>already existing</strong> user to a specific application. The registration is not related to user email nor its verification status. However, it can contain alternative username to be used by the user in this application only. On an event of registration creation, FA can send confirmation email, but <strong>it doesn't confirm user email</strong>, it only confirms whether the registration of an user in the application should persist.</p>
</blockquote>
<p dir="auto">So if you want users to confirm registrations in certain applications (in addition to verifying email addresses, which can be understood as account creation verification), configure the functionality, and prepare registration verification template.</p>
<p dir="auto"><code>530 Authentication required</code> SMTP error means that your tenant SMTP configuration is invalid.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2084</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2084</guid><dc:creator><![CDATA[mgetka]]></dc:creator><pubDate>Fri, 01 Jan 2021 13:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Thu, 31 Dec 2020 15:32:10 GMT]]></title><description><![CDATA[<p dir="auto">OK. I switched over to doing both the user registration and the user passwordless login in a single tenant. In this tenant, I need to set both the registration verify template and the passwordless login template. I am not sure where to set the reg verify template. Hre is an image of what I have set:</p>
<p dir="auto"><img src="/community/forum/assets/uploads/files/1609428524209-screenshot-from-2020-12-31-10-26-03.png" alt="Screenshot from 2020-12-31 10-26-03.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I don't see a place for the verify registration template?</p>
<p dir="auto">When a user tries to register,  I get a "530 Authentication required" error in the event log, and the verify email is not being sent.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2081</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2081</guid><dc:creator><![CDATA[richb201]]></dc:creator><pubDate>Thu, 31 Dec 2020 15:32:10 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Wed, 30 Dec 2020 08:08:22 GMT]]></title><description><![CDATA[<p dir="auto">This is a valid result with clear cause described in the <a href="https://fusionauth.io/docs/v1/tech/apis/passwordless/#start-passwordless-login" rel="nofollow ugc">docs</a>.</p>
<blockquote>
<p dir="auto"><strong>404</strong><br />
The user was not found. The response will be empty.</p>
</blockquote>
<p dir="auto">You need to understand that each tenant has its own, separate user base. So, if the user exists in one tenant, he doesn't necessarily exists in another. Anticipating your question, you cannot have a common user base for multiple tenants - If you want to have single user base, then work on a single tenant.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2080</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2080</guid><dc:creator><![CDATA[mgetka]]></dc:creator><pubDate>Wed, 30 Dec 2020 08:08:22 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Tue, 29 Dec 2020 20:17:06 GMT]]></title><description><![CDATA[<p dir="auto">Thanks. I modified as requested. I am still getting a 404 error. Note that the errorResponse is blank.</p>
<p dir="auto">Here is the call:<br />
$result = $_SESSION['client']-&gt;withTenantId('8ea1c784-866b-4755-b97b-b4fda2ad19e4')-&gt;startPasswordlesslogin($requestJ);</p>
<p dir="auto">Here is the $result I am seeing:<br />
FusionAuth\ClientResponse Object<br />
(<br />
[errorResponse] =&gt;<br />
[exception] =&gt;<br />
[method] =&gt; POST<br />
[request] =&gt; {"<a href="mailto:applicationId%22:%222cf00c29-ac46-49bf-8cd4-32538ddb00d8%22,%22loginId%22:%22richardbernstein217@gmail.com" rel="nofollow ugc">applicationId":"2cf00c29-ac46-49bf-8cd4-32538ddb00d8","loginId":"richardbernstein217@gmail.com</a>","state":{"redirect_uri":"<a href="http://substantiator-survey.ngrok.io/index.php/Configure/report_generator_amazing%22,%22client_id%22:%222cf00c29-ac46-49bf-8cd4-32538ddb00d8%22,%22response_type%22:%22code%22,%22scope%22:%22openid%22,%22state%22:%22richardbernstein217@gmail.com" rel="nofollow ugc">http://substantiator-survey.ngrok.io/index.php/Configure/report_generator_amazing","client_id":"2cf00c29-ac46-49bf-8cd4-32538ddb00d8","response_type":"code","scope":"openid","state":"richardbernstein217@gmail.com</a>"}}<br />
[successResponse] =&gt;<br />
[status] =&gt; 404<br />
)</p>
]]></description><link>https://fusionauth.io/community/forum/post/2076</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2076</guid><dc:creator><![CDATA[richb201]]></dc:creator><pubDate>Tue, 29 Dec 2020 20:17:06 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Tue, 29 Dec 2020 09:21:21 GMT]]></title><description><![CDATA[<p dir="auto">The code snippet I put in the post where I first mention the <code>withTenantId</code> method is actually such an example. When I recommended referencing the source code, I meant the code itself, not the docstrings - the logic behind the <code>withTenantId</code> method is quite simple, and the code describes mentioned effects (alteration of internal client state) in the most unambigious way.</p>
<p dir="auto">If you need more verbose examples see the code below</p>
<pre><code class="language-PHP">&lt;?php

require __DIR__ . '/vendor/autoload.php';

$apiKey = "5a826da2-1e3a-49df-85ba-cd88575e4e9d";
$client = new FusionAuth\FusionAuthClient($apiKey, "http://localhost:9011");

$request = array(
	"applicationId" =&gt; "c9a6f176-93df-4eaa-b67c-b651d18df60c",
	"loginId" =&gt; "user"
);
$result = $client-&gt;withTenantId("adca656e-4895-4a9e-ac2e-8b9ebebb5149")-&gt;startPasswordlesslogin($request);

var_dump($result);

?&gt;
</code></pre>
<p dir="auto">For such a call, the client invokes following HTTP API request</p>
<pre><code>POST /api/passwordless/start HTTP/1.1
Host: [...]:9011
Accept: */*
X-FusionAuth-TenantId: adca656e-4895-4a9e-ac2e-8b9ebebb5149
Authorization: 5a826da2-1e3a-49df-85ba-cd88575e4e9d
Content-Length: 73
Content-Type: application/json

{"applicationId":"c9a6f176-93df-4eaa-b67c-b651d18df60c","loginId":"user"}
</code></pre>
]]></description><link>https://fusionauth.io/community/forum/post/2070</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2070</guid><dc:creator><![CDATA[mgetka]]></dc:creator><pubDate>Tue, 29 Dec 2020 09:21:21 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Mon, 28 Dec 2020 20:26:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/19">@mgetka</a> Is there any example of how to specify a tenantID in a php call? I searched for -&gt;withTenantId() as you show in your example call above and can't find it anywhere on the FA site.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2069</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2069</guid><dc:creator><![CDATA[richb201]]></dc:creator><pubDate>Mon, 28 Dec 2020 20:26:43 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Mon, 28 Dec 2020 18:34:09 GMT]]></title><description><![CDATA[<p dir="auto">The quoted code comment refers to <code> actionUser</code> API method, not the <code>witheTenantId</code> client method.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2067</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2067</guid><dc:creator><![CDATA[mgetka]]></dc:creator><pubDate>Mon, 28 Dec 2020 18:34:09 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Mon, 28 Dec 2020 17:59:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/19">@mgetka</a> Thanks. I found this:</p>
<p dir="auto">public function withTenantId($tenantId) {<br />
$this-&gt;tenantId = $tenantId;<br />
return $this;<br />
}</p>
<p dir="auto">/**</p>
<ul>
<li>Takes an action on a user. The user being actioned is called the "actionee" and the user taking the action is called the</li>
<li>"actioner". Both user ids are required in the request object.</li>
<li></li>
<li>@param array $request The action request that includes all of the information about the action being taken including</li>
<li>
<pre><code>the id of the action, any options and the duration (if applicable).
</code></pre>
</li>
<li></li>
</ul>
<p dir="auto">What two users are they talking about? There is only one user involved. Does this make sense?</p>
<pre><code>    $requestJ = json_encode($request);   //convert the array into json
    $result = $_SESSION['client']-&gt;setTenantId('8ea1c784-866b-4755-b97b-b4fda2ad19e4')-&gt;startPasswordlesslogin($requestJ);
</code></pre>
]]></description><link>https://fusionauth.io/community/forum/post/2066</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2066</guid><dc:creator><![CDATA[richb201]]></dc:creator><pubDate>Mon, 28 Dec 2020 17:59:02 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Mon, 28 Dec 2020 16:54:49 GMT]]></title><description><![CDATA[<p dir="auto">Referring to the PHP client source code, the tenant id can be set for the client using <code>withTenantId</code> method. Something like this should work:</p>
<pre><code class="language-PHP">$client-&gt;withTenantId(...)-&gt;passwordlessLogin(...);
</code></pre>
<p dir="auto">Be aware that <code>withTenantId</code> stores the id in the client internal state, and the stored id will be used for all subsequent requests. It may be something that suits you or not - refer to <a href="https://github.com/FusionAuth/fusionauth-php-client/blob/ac0e6bf25250ba55d88d18f5cc05830527b1497f/src/FusionAuth/FusionAuthClient.php" rel="nofollow ugc">the source code</a> and check how this effect will affect your application.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2064</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2064</guid><dc:creator><![CDATA[mgetka]]></dc:creator><pubDate>Mon, 28 Dec 2020 16:54:49 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Mon, 28 Dec 2020 16:11:29 GMT]]></title><description><![CDATA[<p dir="auto">No you are correct, they are in different tenants.  That is why I need to set the "header info" as per the docs.</p>
<p dir="auto">The docs say that if you have more than one tenant, which I do, that you will need to specify the tenant via the "header".  There is even an example: <strong>HTTP Authorization Header example</strong></p>
<p dir="auto">curl -X POST<br />
-H 'Authorization: oa06-d9uxCHTorBOkVdh_QzsX_iEEYARGv8udnMMLJ8'<br />
-H 'Content-Type: application/json'<br />
-d '{"group": {"name": "Admin"}}'<br />
"<a href="http://localhost:9011/api/group" rel="nofollow ugc">http://localhost:9011/api/group</a>"</p>
<p dir="auto">But that example makes no sense to someone using the php client.</p>
<p dir="auto">Please tell me how to tell FA the tenant to use in the context of a php program?</p>
]]></description><link>https://fusionauth.io/community/forum/post/2061</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2061</guid><dc:creator><![CDATA[richb201]]></dc:creator><pubDate>Mon, 28 Dec 2020 16:11:29 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Mon, 28 Dec 2020 08:06:00 GMT]]></title><description><![CDATA[<p dir="auto">Some posts ago you have mentioned that both of your apps reside in the same tenant. Moving one of them into another tenant was mentioned but I suppose you have abandoned the idea in the meantime. So, if they are both in same tenant, why would you expect FA to use different tenant ID for each app?</p>
<p dir="auto">BTW, <code>$this-&gt;output-&gt;set_header</code> sets the header for a response sent to the web browser - data defined this way will never reach FA.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2058</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2058</guid><dc:creator><![CDATA[mgetka]]></dc:creator><pubDate>Mon, 28 Dec 2020 08:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Sun, 27 Dec 2020 05:37:35 GMT]]></title><description><![CDATA[<p dir="auto">After carefully comparing the passwordless login that worked with the passwordless that didn't work, I can see that the TenantId on the one that didn't work is incorrect. For some reason FA is trying to use the same tenant ID in both cases. They should be two different tenant IDs. BTW, I am using a different tenant for the registration than for the login. Perhaps this is why when the user tries to login, the wrong tenantID is chosen?</p>
<p dir="auto">So I guess I will need to :Making an API request using a Tenant Id. I am using Codeigniter so I tried using this $this-&gt;output-&gt;set_header('X-FusionAuth-TenantId: 8ea1c784-866b-4755-b97b-b4fda2ad19e4'); right before my call to start PasswordlessLogin()</p>
<p dir="auto">The result I am getting is :<br />
FusionAuth\ClientResponse Object<br />
(<br />
[errorResponse] =&gt;<br />
[exception] =&gt;<br />
[method] =&gt; POST<br />
[request] =&gt; {"<a href="mailto:applicationId%22:%222cf00c29-ac46-49bf-8cd4-32538ddb00d8%22,%22loginId%22:%22richardbernstein217@gmail.com" rel="nofollow ugc">applicationId":"2cf00c29-ac46-49bf-8cd4-32538ddb00d8","loginId":"richardbernstein217@gmail.com</a>","state":{"redirect_uri":"<a href="http://substantiator-survey.ngrok.io/index.php/Configure/report_generator_amazing%22,%22client_id%22:%222cf00c29-ac46-49bf-8cd4-32538ddb00d8%22,%22response_type%22:%22code%22,%22scope%22:%22openid%22,%22state%22:%22richardbernstein217@gmail.com" rel="nofollow ugc">http://substantiator-survey.ngrok.io/index.php/Configure/report_generator_amazing","client_id":"2cf00c29-ac46-49bf-8cd4-32538ddb00d8","response_type":"code","scope":"openid","state":"richardbernstein217@gmail.com</a>"}}<br />
[successResponse] =&gt;<br />
[status] =&gt; 404<br />
)</p>
<p dir="auto">Obviously not optimum. But I see I can set an API key:<br />
Using an API key.</p>
<p dir="auto">You may optionally create an API key that is scoped to a particular tenant. To create an API key navigate to Settings  API Keys.</p>
<p dir="auto">Similar to the example screenshot above where we created a new API key, in this example we have selected the Pied Piper tenant for this API key. Only Users, Groups and Applications belonging to the Pied Piper tenant will be visible to this API.</p>
<p dir="auto">Create a Tenant API Key<br />
HTTP Authorization Header example<br />
The following example demonstrates an API request to an API endpoint requiring tenantId, using the tenant-scoped API key.</p>
<p dir="auto">curl -X POST <br />
-H 'Authorization: oa06-d9uxCHTorBOkVdh_QzsX_iEEYARGv8udnMMLJ8' <br />
-H 'Content-Type: application/json' <br />
-d '{"group": {"name": "Admin"}}' <br />
"<a href="http://localhost:9011/api/group" rel="nofollow ugc">http://localhost:9011/api/group</a>"</p>
<p dir="auto">Setting this up requires me to choose an endpoint with Get, put, patch, post, delete. I have no idea how to get my tenant id, 8ea1c784-866b-4755-b97b-b4fda2ad19e4, to work with my call to startPasswordlessLogin. Is there an example anywhere?</p>
]]></description><link>https://fusionauth.io/community/forum/post/2056</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2056</guid><dc:creator><![CDATA[richb201]]></dc:creator><pubDate>Sun, 27 Dec 2020 05:37:35 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Wed, 23 Dec 2020 19:31:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/19">@mgetka</a> jinx! <img src="https://fusionauth.io/community/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=rcgg4tg866g" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://fusionauth.io/community/forum/post/2053</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2053</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Wed, 23 Dec 2020 19:31:53 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Wed, 23 Dec 2020 19:32:56 GMT]]></title><description><![CDATA[<p dir="auto">If you have mor than one tenant defined (as you have) then tenant selection dropdown appears in the application creation view. Create chosen application in the second tenant and discard it in the first one.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2052</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2052</guid><dc:creator><![CDATA[mgetka]]></dc:creator><pubDate>Wed, 23 Dec 2020 19:32:56 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Wed, 23 Dec 2020 19:30:39 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">But how to create it under it's own tenant (in the UI)?</p>
</blockquote>
<p dir="auto">Once you have more than one tenant, you should see a dropdown when you are adding an application in the UI which lets you determine which tenant the application is associated with.</p>
<p dir="auto"><img src="/community/forum/assets/uploads/files/1608751813471-screen-shot-2020-12-23-at-12.27.11-pm-resized.png" alt="Screen Shot 2020-12-23 at 12.27.11 PM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Note that tenants have different user email spaces. That is to say that if I have an account with tenant A and an account with tenant B, they might have different passwords and they will certainly have different user attributes (last login, for example). That may be ok, but just wanted to make you aware. You may want to read the tenants <a href="https://fusionauth.io/docs/v1/tech/core-concepts/tenants/" rel="nofollow ugc">core concepts docs</a> if you haven't already.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2051</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2051</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Wed, 23 Dec 2020 19:30:39 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Wed, 23 Dec 2020 18:25:52 GMT]]></title><description><![CDATA[<p dir="auto">Thanks again. As I think i said i have two different passwordless logins (type A and type B). Type A is for a user to take a survey. Type B is for an administrator to register themselves. For type A I am using Tenant default. In this under Template settings I have my Passwordless login template.</p>
<p dir="auto">Now for type B I want to have a completely different Passwordless login template (it will say different stuff).  But I see under Tenant Default there is only a place for one passwordless login template.</p>
<p dir="auto"><img src="/community/forum/assets/uploads/files/1608747027575-screenshot-from-2020-12-23-13-10-00.png" alt="Screenshot from 2020-12-23 13-10-00.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Now I have two different applications,type A (which uses tenant default) and type B (which also uses tenant default)? Why? Because the tenant field in Applications is read only.</p>
<p dir="auto">You mentioned a day or two ago creating an application under the 2nd tenant. How do I do this in the UI? Under Tenant, is there a place for me to specify what Application to use?</p>
<p dir="auto">I am thinking that the easiest way to do this would be to just create another application, so there will be 3 in total. But how to create it under it's own tenant  (in the UI)?</p>
]]></description><link>https://fusionauth.io/community/forum/post/2048</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2048</guid><dc:creator><![CDATA[richb201]]></dc:creator><pubDate>Wed, 23 Dec 2020 18:25:52 GMT</pubDate></item><item><title><![CDATA[Reply to workflow for self registration on Wed, 23 Dec 2020 16:10:55 GMT]]></title><description><![CDATA[<p dir="auto">I'm glad you got it working! Finishing the topic I will leave few more links:</p>
<ol>
<li><a href="https://fusionauth.io/docs/v1/tech/apis/users/#create-a-user" rel="nofollow ugc">User creation</a></li>
<li><a href="https://fusionauth.io/docs/v1/tech/apis/registrations/#create-a-user-registration-for-an-existing-user" rel="nofollow ugc">Registration of an existing user in an application.</a></li>
</ol>
<p dir="auto">There is also combined API call, that creates a user and a registration at once - I have missed that saying your register request is invalid - sorry.  <a href="https://fusionauth.io/docs/v1/tech/apis/registrations/#create-a-user-and-registration-combined" rel="nofollow ugc">User creation and registration in one call</a>. This is probably the request you were trying to perform.</p>
<p dir="auto">You can configure unverified users deletion time in <em>Edit Tenant &gt; Email</em> - as mentioned in my first response. But 5 minute offset is not reachable since the time is given in days.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2046</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2046</guid><dc:creator><![CDATA[mgetka]]></dc:creator><pubDate>Wed, 23 Dec 2020 16:10:55 GMT</pubDate></item></channel></rss>