web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Unable to implement th...
Power Pages
Suggested Answer

Unable to implement the custom login and registration page in power pages

(1) ShareShare
ReportReport
Posted on by
Hello,

I am working on the project where I need to create custom login, registration and profile page for local authentication in power pages. 



Login:



Registration:



I have used power pages web api and power automate flow to create new user and storing values in contact entity. But I don't know how to extend custom logic and profile page functionality and manage user session for custom pages in power pages. I am trying to use the below code but it is not working. Local sign in is already enabled but it is showing "_services/auth/login/local" page not found error when testing with portal URL.

I notice that we can't integrate custom HTML directly to existing login and registration pages in power pages.



Could you please help me on this?

Thanks
Pradip
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    Super User 2025 Season 2 on at
     
     

    1. Enable Local Authentication

    Make sure these site settings are correctly configured in the Portal Management App:

    Site Setting Value
    Authentication/Registration/Enabled true
    Authentication/Registration/LocalLoginEnabled true
    Authentication/Registration/OpenRegistrationEnabled true
    Authentication/Registration/ResetPasswordEnabled true
     

    You can find these under Site Settings in the Portal Management App.


    2. Use Built-in Pages with Custom Styling

    Instead of building login/registration from scratch, use the built-in pages and customize them via CSS and Liquid. You can:

    • Add custom branding.
    • Hide/show fields conditionally.
    • Use Web Templates and Content Snippets to inject HTML.

    3. Custom Registration via Web API + Power Automate

    You're already creating users via Web API and storing them in the Contact table. That’s great! To complete the flow:

    • Generate an invitation code for the contact.
    • Send a link to the user like:

      https://yourportal.powerappsportals.com/register/?invitation=CODE

    • This allows the user to complete registration and be linked to the correct contact record.

    4. Custom Profile Page

    You can create a custom profile page using a model-driven form on the Contact table. Steps:

    • Create a form in Dataverse for the Contact entity.
    • Add it to a Power Pages page using the Form component.
    • Use Liquid to restrict access to authenticated users:
    •  

    {% if user %}

    {% else %}

    Please log in to view your profile.

    {% endif %}

     

    🏷️ Tag me if you have any further questions or if the issue persists. ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems. ❤️ Give it a Like if you found the approach useful in any way.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

Last 30 days Overall leaderboard