• Ensuring Replay-Resistant Authentication with FusionAuth

    Moved Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    W
    FusionAuth provides replay-resistant authentication mechanisms by adhering to industry standards for the technologies it implements. The level of replay resistance depends on the authentication workflow and specific standards followed. Key Standards: OAuth 2.0: FusionAuth adheres to RFC 6749, RFC 8628, and OpenID Connect Core, which include mechanisms to mitigate replay attacks (e.g., nonce and state parameters). Documentation: OAuth 2.0 Authorization Code Grant Example Other Standards: FusionAuth follows established standards for other authentication protocols, such as: WebAuthn: Provides strong, cryptographic-based authentication resistant to replay attacks. SAMLv2: Uses unique assertions and timestamps to prevent replay. OIDC (OpenID Connect): Includes nonce and other mechanisms to mitigate replay. Replay Resistance Considerations: Replay resistance is primarily ensured when these protocols are implemented as defined by their standards. FusionAuth provides the tools and configurations necessary to follow these standards. However, deviations from these standards or implementation flaws outside of FusionAuth’s control (e.g., improper handling of state or nonce values) could introduce vulnerabilities.
  • Understanding Authenticator App Compatibility with FusionAuth's TOTP Feature

    Moved Unsolved mfa
    2
    0 Votes
    2 Posts
    5k Views
    W
    FusionAuth's TOTP implementation is compatible with most popular authenticator apps that follow the industry-standard TOTP algorithm, specifically those using HMACSHA1. While we cannot provide an exhaustive list, here are some commonly used authenticator apps that are known to work with FusionAuth: Google Authenticator Authy Microsoft Authenticator LastPass Authenticator 1Password Compatibility Check: If an authenticator app does not support FusionAuth’s TOTP, it will simply fail to recognize the QR code when scanned. Documentation Reference: For more details about FusionAuth's TOTP implementation and requirements, refer to the FusionAuth TOTP Documentation. Most users should have no issues using any modern TOTP-based authenticator app.
  • 0 Votes
    2 Posts
    2k Views
    W
    Unfortunately, FusionAuth does not support changing a user’s ID after the user has been created. However, when creating users via API, you can specify a custom user ID at the time of creation. This allows you to control user IDs during the initial setup. API Reference: Create a User API Since the IDs are already assigned, your best option might be to adjust your integration logic or recreate the users with the desired IDs.
  • 0 Votes
    2 Posts
    2k Views
    W
    The sendSetPasswordEmail functionality currently has a limitation in that it doesn’t allow you to pass custom data for use in the email template through the API. However, you can still achieve personalization by configuring the email template directly in the FusionAuth Admin UI. Steps to Personalize the Setup Password Email: Edit the Email Template: Navigate to Customizations > Email Templates > Setup Password in the Admin UI. You can either edit the existing default template or duplicate it to create a new one. Use variables like ${user.firstName!'Unknown User'} or any other user data fields to customize the message. Assign the Template to Your Application: Go to Applications in FusionAuth. Edit your application and assign the appropriate template to the Setup Password field. Consider Custom Message Content: Include static or semi-dynamic content like "You were invited by ABC" in the email template. If you have multiple initiators, you might need to create separate templates for each scenario. Documentation for Reference: Email Templates and Replacement Variables FusionAuth Email Templates While the API does not allow for passing custom fields directly for sendSetPasswordEmail, configuring the templates in the Admin UI should allow you to achieve the desired level of personalization.
  • 0 Votes
    2 Posts
    1k Views
    W
    To achieve this behavior, you can use IdP Hints. IdP Hints allow you to send the user directly to a specific Identity Provider (e.g., Google or Facebook) without stopping at the FusionAuth Hosted Login Page. This approach aligns with the flow you described, bypassing the hosted page entirely. Steps to Use IdP Hints: Append the appropriate IdP hint parameter to the /oauth2/authorize request URL. The hint will direct FusionAuth to initiate authentication with the specified IdP immediately, skipping the hosted login page. Documentation Reference: FusionAuth Identity Provider Hints By using IdP Hints, you can streamline the login process and eliminate the need for JavaScript-based workarounds on the hosted login page.
  • 0 Votes
    2 Posts
    3k Views
    W
    Providing Empty Strings for Text Templates: While it is technically possible to provide empty strings for the text version of the templates, this is not recommended. FusionAuth sends both the text and HTML versions of the email, with each MIME encoded. The email client decides which version to render. If a user’s email client renders the text version, the email will appear blank if the text template is empty. Recommendation: Create a simple text version of the email by stripping out the HTML formatting (e.g., removing <p></p>, <a></a>, etc.). You can refer to FusionAuth's default email templates for examples of how to format text-only emails. Criteria for Sending Text vs. HTML Emails: The choice of rendering text or HTML emails is determined by the recipient's email client. Most modern email clients prioritize HTML, but some may fall back to text if they do not support HTML or if the user has configured their preferences for plain text emails. Forcing HTML Emails: FusionAuth does not provide a way to force emails to always render in HTML, as the decision ultimately lies with the recipient’s email client. However, providing well-constructed HTML templates ensures that most users will receive the intended design, as HTML rendering is the default behavior for the majority of email clients. By creating both text and HTML versions of your templates, you ensure compatibility with all email clients while maintaining your preferred HTML formatting for most users.
  • Understanding Signing Key Configurations and Shadow Keys in FusionAuth JWTs

    Moved Unsolved hosting
    2
    0 Votes
    2 Posts
    2k Views
    W
    Different Signing Keys for ID and Access Tokens: Configuring different signing keys for ID tokens and access tokens is an edge case, typically used when specific requirements exist: Use Case: Access tokens may need to be signed with HMAC for speed, particularly if they are consumed by resource servers within a controlled environment. ID tokens might require RSA signing to ensure security since they are often handled by clients that cannot be fully trusted. Rotating keys independently for ID and access tokens might be necessary to meet compliance or security policies. Best Practice: Unless you have a clear requirement for different key configurations, it's generally unnecessary to use separate keys. A unified approach simplifies key management and reduces potential issues. Shadow Keys (client_secret as Signing Key): Shadow keys are primarily included to ensure compliance with OpenID Connect (OIDC) specifications. Use Case: The client_secret as a signing key is used for ID tokens to meet OIDC compliance requirements. However, it’s not allowed for access tokens since access tokens are designed to be more flexible and are often consumed outside of the client-server context. Best Practice: This feature is useful only for OIDC-compliant setups where such signing methods are mandated. If OIDC compliance is not a requirement, shadow keys and their configurations are likely unnecessary. Summary: Both features—different signing keys and shadow keys—are provided to accommodate specific compliance or architectural requirements. For most use cases, these options are not needed unless dictated by your organization's security policies or external compliance requirements.
  • Managing Entity Grants in FusionAuth: Handling Permission Updates

    Moved Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    W
    Unfortunately, the Entity Grants API only supports POST as an upsert operation, meaning you must provide the entire list of permissions with each request. It does not currently allow selective addition or removal of permissions. If this feature is important to your workflow, we recommend submitting a feature request on FusionAuth's GitHub repository. Feature requests are prioritized based on community upvotes. Resources: Entity Grants API Documentation Submit a GitHub Issue
  • 0 Votes
    2 Posts
    2k Views
    W
    Yes, this can be achieved using FusionAuth’s Webhooks. You can trigger a Webhook when the user.registration.verified event occurs and send the necessary data to Google Tag Manager (GTM). Steps to Set Up: Create a Webhook in FusionAuth: Navigate to Settings > Webhooks in the FusionAuth Admin UI. Create a new Webhook and configure it to trigger on the user.registration.verified event. Enable the Webhook for Your Tenant: Go to Tenant > Webhooks and enable the Webhook for the desired tenant. Integrate with GTM: While FusionAuth Webhooks send data to external systems, ensure that GTM can ingest Webhook data. From my research, GTM supports Webhook ingestion, but you may need to configure a custom setup within GTM to process the incoming data. Resources for Reference: FusionAuth Events and Webhooks User Registration Verified Event This approach allows you to track account verification events seamlessly.
  • Managing User Data in Staging Environments with FusionAuth's Bulk APIs

    Moved Unsolved api
    2
    0 Votes
    2 Posts
    2k Views
    W
    Monthly Active Users (MAU): Using the Bulk User Import API will not count against your monthly active users (MAU) quota. This makes it suitable for staging or non-production environments where users are frequently added and removed. User Deletion Performance: The Bulk Delete API processes users one by one, performing verification checks for each user, which can cause delays. Unfortunately, there is currently no faster or more efficient way to delete users in bulk due to the way the API is designed. Alternative Approach: While tools like Terraform can automate the process of importing and deleting users, this essentially scripts the same API calls and will still encounter the same deletion delays. However, Terraform may simplify managing the environment by automating repetitive tasks. Documentation: FusionAuth Terraform Integration If the deletion delays significantly impact your workflow, consider submitting a feature request to FusionAuth for performance improvements in bulk deletion.
  • How to Resolve 'Your Account Has Expired' Errors in FusionAuth

    Moved Unsolved integration
    2
    0 Votes
    2 Posts
    3k Views
    W
    To update or extend a user’s account expiry date, you can use the FusionAuth User API to modify the expiry field. You can either set a new expiration date or set the field to null to remove the expiry entirely. Here’s an example of a PATCH request to update this field: curl --request PATCH \ --url https://local.fusionauth.io/api/user/42661043-9ab8-4bb8-8778-85217aa05086 \ --header 'Authorization: TulwCDDOmOtvXAVTsRUI4LfSWlF-Bd78uTnQhgviMQG9a1a3Qn7emwBn' \ --header 'Content-Type: application/json' \ --header 'X-FusionAuth-TenantId: 30665132-6767-6665-3132-323466613934' \ --data '{ "user": { "expiry": null } }' Explanation: Replace the URL, user ID, and tenant ID with your instance's values. Setting "expiry": null removes the expiration date and reactivates the user account. This should resolve the issue and allow the user to log in again.
  • How to Create a JWT Populate Lambda in FusionAuth

    Moved Unsolved
    2
    1 Votes
    2 Posts
    3k Views
    W
    The 11 Lambdas you see are the default ones included with FusionAuth. To create a JWT Populate Lambda, follow these steps: Navigate to Settings > Lambda in the FusionAuth Admin UI. Click the green + button in the top right to create a new Lambda. In the "Type" dropdown, select JWT Populate. Configure your Lambda logic as needed. For additional guidance, you can refer to the JWT Populate Lambda documentation, which includes a helpful video walkthrough of the process.
  • How to Restrict FusionAuth Admin Panel Access by IP Address

    Moved Unsolved security
    2
    0 Votes
    2 Posts
    3k Views
    W
    Here’s how you can approach securing access to your FusionAuth instance: IP Access Control Lists (ACL): You can define IP Access Control Lists in FusionAuth by navigating to Settings > IP Access Control in the Admin UI. Click the + icon to create a new ACL list. Add entries for each IP address or range you want to allow or block. Assign these ACLs to specific tenants or API keys as needed. Important Note: IP ACLs restrict access to endpoints like /oauth2/, /account/, /email/, /password/, /registration/, and other user-accessible pages. However, they do not restrict access to the FusionAuth Admin UI unless the Admin UI is accessed via SSO. Documentation: IP ACL API Overview Secure the Admin UI: Since IP ACLs do not directly secure the Admin UI, consider the following options: Use a Trusted Proxy: Place a trusted proxy at the edge of your network to filter incoming traffic before it reaches FusionAuth. The proxy can enforce IP-based restrictions or other security rules. In FusionAuth, configure your proxy under System > Networking, where you can specify the proxy’s IP address. If a request doesn’t go through the trusted proxy, FusionAuth will deny access. Documentation: FusionAuth Networking Login Lambda for Additional Validation: Implement a Login Lambda to validate login attempts further. This Lambda allows you to execute custom code during login, such as checking the origin IP or other request details to block unauthorized attempts. Documentation: Login Lambdas Recommended Next Steps: Configure IP ACLs for your tenants and API keys to secure application-level access. Implement a trusted proxy to filter admin panel access based on source IP. Use a Login Lambda for additional request-level security, if needed. By combining these approaches, you can enhance the security of your FusionAuth deployment and mitigate unauthorized access.
  • How to Manage Application Roles in FusionAuth Without a Bulk Import API

    Moved Unsolved api
    2
    1 Votes
    2 Posts
    2k Views
    W
    FusionAuth does not currently offer an API specifically for importing roles in bulk. However, roles can be created for an application using the following approaches: Create a Single Role via API: Use the POST /api/application/{applicationId}/role endpoint to create roles individually. Documentation: Create an Application Role Create Multiple Roles During Application Creation: When creating an application via the POST /api/application endpoint, you can define multiple roles as part of the application configuration. This is the most efficient way to set up multiple roles at once if you are creating a new application. While there isn’t a dedicated role import API, combining these endpoints allows flexibility in managing roles programmatically.
  • How to Prevent Double Email Issues with FusionAuth's Forgot Password API

    Moved Unsolved messages email
    2
    1 Votes
    2 Posts
    3k Views
    W
    This issue may occur if the Forgot Password email template is still enabled in FusionAuth. To resolve this: Disable the Forgot Password email template at the tenant level: Navigate to Tenant > Edit Tenant > Email tab > Template Settings. Set the Forgot Password template to Feature Disabled. Check the application-specific settings: If you have an application-specific template set up, ensure the Forgot Password template is also disabled under the Application settings. Verify API configuration in the PHP client (if applicable): If you’re using the PHP client, ensure sendForgotPasswordEmail is explicitly set to "false" (as a string with quotes), not just false (boolean). This ensures the value is passed correctly. These steps should prevent FusionAuth from sending its own Forgot Password email when the API is called, resolving the double-email issue.
  • Login user after setting password

    Moved Unsolved
    4
    0 Votes
    4 Posts
    12k Views
    mark.robustelliM
    @aponski Have you considered using the apis to change the user password and then directing the flow as you see fit from you own custom pages?
  • Password Reset Expired link - Safelinks users

    Moved Unsolved
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    2 Posts
    1k Views
    mark.robustelliM
    @hareply1 I assume the status field is a custom field? You can use the APIs to query the user and then allow or not allow based on that.
  • How do you reset a user's password upon their first login?

    Moved Unsolved
    2
    1 Votes
    2 Posts
    2k Views
    W
    Yes, this can be achieved using the FusionAuth API. Here's how you can implement it: Set the default password for each user: Use the POST /api/user/change-password endpoint to set the user's password to the desired format, e.g., company1234. Refer to the "Change a User's Password using an email address or username" section of the FusionAuth documentation. This allows you to update a user's password in a single API call without requiring the Forgot Password flow. Require the user to change their password: Use the PATCH /api/user/{userId} endpoint to set the passwordChangeRequired field to true. This ensures that the user will be prompted to change their password upon their next login. API Documentation for reference: Change a User’s Password Update a User Optional Customization: To guide users on the login page to use the default password format, you can customize the messaging through FusionAuth Themes: Navigate to Simple Theme > Messages > Default. Add a custom message, such as password=Password is company+username, to inform users of the default password structure.
  • JWT Refresh Returning 400

    Moved Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    mark.robustelliM
    @matt-3 Have you enabled logging in FusionAuth? I would start there to see if there is anything happening internally that is causing the 400 response.