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

Community site session details

Session Id :
Power Pages - Security
Suggested answer

Local sign in error

(0) ShareShare
ReportReport
Posted on by
Hello,
 
I've been having an issue trying to create local logins. My client wants full control regarding its users. Users that want to acces their site must get approved by the admin. Currently using a plugin for this and everything works (getting the application, approving it and creating a contact with login credentials.) however when the user tries to log in it gives me following error: Error-id # [04bb124d-8e75-4d63-b029-83ceb38d3207] Value cannot be null. Parameter name: value
This is about the claims mapping. I can't seem to find which data is necessary. Hope someone can help, thanks in advance
Categories:
I have the same question (1)
  • Suggested answer
    SwatiSTW Profile Picture
    710 Super User 2025 Season 2 on at
    Local sign in error

    The error means something important is missing when the user tries to log in using local authentication. most likely the contact record is missing required values or claim mappings are not set up properly.
    steps to fix the issue:
    1. open the contact record created by the plugin
      check these fields are filled:
      1. emailaddress1 (this must match login email)
      2. adx_username (used if login is by username)
      3. adx_loginenabled = true
      4. adx_approved = true
      5. adx_identity_provider = leave it empty or set to:
        "https://login.microsoftonline.com" (for local login it can be null)
    2. go to power pages management app
      open "site settings"
      search for a setting with name:
      Authentication/Registration/ClaimsMapping
      if not there, create it
    3. paste this value into the setting (use correct capitalization):
    [
      {
        "LoginProvider": "LocalLogin",
        "Claims": [
          {
            "ContactField": "emailaddress1",
            "ClaimType": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
            "IsPrimary": true
          },
          {
            "ContactField": "adx_username",
            "ClaimType": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
          }
        ]
      }
    ]
    1. check another setting:
      name = Authentication/Registration/LoginButtonAuthenticationType
      value should include: LocalLogin
    2. save everything and try login again
    if still fails, turn on portal diagnostics logging to see exact missing value

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Pages

#1
Jon Unzueta Profile Picture

Jon Unzueta 100 Super User 2025 Season 2

#2
Shafiuddin Profile Picture

Shafiuddin 45

#3
Fubar Profile Picture

Fubar 36 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics