what is the actual regex pattern used in validation of Identifier (Entity ID) field in Basic SAML Configuration section in Microsoft azure ?

Venkatesh Naik 20 Reputation points
2024-11-21T08:12:55.41+00:00

User's image

requirement : I have to write a code for validation of Entity ID through regex.
problem : Cant able to identify how the textbox validation is handled because the textbox excepts "a" and also it accepts "//hello/world?" but not this "hello/world?".

I may have to find all the possible inputs and test this textbox to find out the ideal regex
which is too much time consuming.
So, is it possible that i get the regex for it ?

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,254 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,378 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,375 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,297 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 3,111 Reputation points Microsoft Vendor
    2024-11-22T07:27:12.35+00:00

    Venkatesh Naik -
    You can try with below regex pattern that might work for your requirements:
    ^(a|//[^/]+/[^/]+?)$

    Thanks, 

    Nivedipa

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here )to escalate. 

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.