Sign In with Microsoft offers employees a streamlined, secure, and user-friendly way to access the Employee Portal using their existing Microsoft credentials. By replacing traditional login methods—such as employee numbers and separate passwords—with familiar credentials from services like Outlook, Xbox, OneDrive, Windows, or Office 365 work/school accounts, it simplifies access and eliminates password fatigue
This single sign-on (SSO) solution enhances productivity by reducing login friction, facilitating seamless integration with Microsoft tools, and strengthening security through centralized authentication and multi-factor authentication (MFA). It also minimizes IT support demands related to password resets and access issues, resulting in a smoother user experience and greater employee engagement with HR services.
The "Sign in with Microsoft" feature utilizes the Microsoft OAuth 2.0 protocol through the Microsoft Identity Platform and Entra ID (formerly Azure Active Directory) to securely authenticate employee users. Rather than managing separate usernames and passwords, employees are redirected to Microsoft’s secure login page, where they sign in using their existing Microsoft account credentials.
Once Microsoft successfully verifies the user’s identity, HRPro receives the authenticated account details—typically the employee’s email address—and uses that information to grant access to the Employee Portal. This process ensures secure, centralized authentication while simplifying the login experience.
In Employee Portal Setup, General tab. Under the Login panel. In "Employee Portal Login Options", enable "Sign in with Microsoft".
Admins can disable the "Enable Sign in with Microsoft" option for individual employees by navigating to Employee Master > EPortal tab, under the User Permissions and Roles panel.
The Email address used for login must be recorded in the Employee Master under either the 'Email' or 'Personal Email' fields to ensure successful authentication.
A button "Sign in with Microsoft" will appear on the login page. Users simply click the button on the login page and authenticate using their Microsoft Account credentials.
The system verifies the email address in the Microsoft Account and matches it with the employee's email stored in the HRPro's Employee Master records. Once authenticated, users gain immediate access without needing to enter a separate password for the portal, making login quick and secure.
The process is seamless and reduces login friction by leveraging Microsoft’s secure authentication infrastructure to achieve the Single Sign-On (SSO).
"Sign in with Microsoft" offers an alternative login method for the Employee Portal. When enabled, users can still access the portal using their usual User ID and Password in addition to signing in with their Microsoft account.
To enable secure "Sign in with Microsoft" authentication for the Employee Portal, specific technical and environmental requirements must be fulfilled.
Core Requirements
HTTPS Enforcement: Access the Employee Portal exclusively via HTTPS to encrypt all data transmissions and protect against interception.
Stable Internet Access: Reliable connectivity is essential, as the service relies on Microsoft's cloud-based authentication infrastructure.
Entra ID Configuration
Register the Employee Portal application in Microsoft Entra ID (formerly Azure AD). Obtain and securely store the Client ID (Application ID) and Client Secret for OAuth 2.0 flows in EPortal.config. This setup supports secure token exchange for HRPro user sessions.
For organizations that prefer to use their own Azure credentials, you must obtain a Client ID, Client Secret, and Tenant ID from the Microsoft Entra admin center. Follow the steps below to register the HRPro Employee Portal as an application in Microsoft Entra ID.
Prerequisites
A Microsoft Work or School account with at least the Application Developer role (or Cloud Application Administrator / Global Administrator) in your Entra ID tenant.
Your EPortal URL must be accessible over HTTPS (e.g., https://hrpro.yourdomain.com/EPortal/).
Step 1 — Sign in to the Microsoft Entra admin center
Go to the Microsoft Entra admin center and sign in with your Work or School account.
If you have access to multiple tenants, use the Settings (gear) icon in the top menu bar to switch to the tenant where you want to register the application.
Step 2 — Create a new app registration
In the left-hand navigation menu, browse to Entra ID → App registrations.
Click New registration.
Step 3 — Configure the application
On the Register an application page, fill in the following:
Name: A meaningful name, e.g., HRPro EPortal
Supported account types: Select Single tenant only — Accounts in this organizational directory only
Redirect URI: Select the Web platform from the dropdown, then enter your EPortal callback URL, e.g., https://hrpro.yourdomain.com/EPortal/OidcCallback.aspx
Click Register to create the application.
Step 4 — Copy your Client ID and Tenant ID
After registration, the app's Overview page is displayed. Record the following two values — you will need them for EPortal.config:
Application (client) ID — this is your Client ID
Directory (tenant) ID — this is your Tenant ID
Both are shown on the Overview page under the Essentials section.
Step 5 — Create a Client Secret
In the left-hand menu of your app registration, under Manage, click Certificates & secrets.
Select the Client secrets tab, then click New client secret.
Configure the secret:
Description: e.g., EPortal Client Secret
Expiration: Choose an expiry period (e.g., 12 months). The maximum is 24 months. Microsoft recommends 12 months or less.
Click Add.
Immediately copy the Value in the Value column — this is your Client Secret.
Step 6 — Configure EPortal.config
Add the three values you collected to your EPortal.config file:
<add key="MicrosoftSignInClientID" value="your-client-id-here" />
<add key="MicrosoftSignInClientSecret" value="your-client-secret-here" />
<add key="MicrosoftSignInTenantID" value="your-tenant-id-here" />
Tips & reminders
Redirect URI must use HTTPS and match your actual EPortal callback URL exactly, including path and trailing slash if applicable.
Client Secret expiry: Set a calendar reminder before the secret expires. When it expires, "Sign In with Microsoft" will stop working until you generate a new secret and update EPortal.config.
Supported account types: Use Single tenant only unless your organization has a specific multi-tenant requirement. This ensures only accounts in your Entra ID directory can sign in.
For production environments, Microsoft recommends using a certificate instead of a client secret. See Add credentials to your application for details.
More details