Hi all,
Hoping someone can help me here. I'm sure there must be an answer to this one but can't seem to pinpoint it. We are going to use Entra External ID for our external users. We have this configured and, so long as we use the buttons on Power Pages, everything works as you'd expect. You can register and you can sign-in okay.
However, the issue we have is the registering process as you need to click Sign-in (or go in via Register) and you see a Sign-in page where you need to click the "No account? Create one" link that is there (not very intuitive). So I know you can get around this by following an example on the Woodgrove demo site:
woodgrovedemo.com/#usecase=SignUpLink. So you can add prompt=create as well as the email address as the login_hint to a URL. Great...but I'm not sure how we should be constructing the link for this.
I have a link that points the user to the Entra External ID page, has the prompt=create and the login_hint. This then displays the Create account page as we expect with the email address prepopulated. We click Next, get the one-time passcode, add this and then are taken to the form to complete the User Flow details (first name, last name, etc.). When we click Next the local account is created (all good) and then we are prompted about staying signed in or not (standard browser fair). No matter what we choose we are taken back to the Power Pages site but we are not signed in. We need to click the sign in button just once and the system then signs us in automatically (assume because the browser still knows about the creation of the account).
I know when you start a Register process normally (via Power Pages) it adds state=OpenIdConnect.AuthenticationProperties... and nonce= ... and we don't have this in our constructed URL (since these are created at Power Pages side). We have the site for the Entra External ID, the Client ID, redirect_uri, response_type, scope, response_mode, ui_locales, prompt and login_hint.
Does anyone know how we can get this "over the line" and have the process complete so that a user is registered and then signed on automatically? We are sending the link out to the user registering with us using Power Automate. They are completing a Customer Voice form giving us some details, a flow picks this up and send out the email with the link so we can do whatever we need to in Power Automate. I've tried to send out the Invitation using this method but the process is way worse and more confusing for users.
Any advice/suggestions welcomed as always.
Steven