Zitadel
Zitadel is one of Palmr's officially supported OIDC providers, offering enterprise-grade authentication through Zitadel's identity platform. This integration allows users to sign in to Palmr using Zitadel's comprehensive authentication system, making it perfect for enterprise organizations, applications requiring advanced security features, and teams that need centralized identity management with both cloud and self-hosted deployment options.

Why use Zitadel authentication?
Zitadel authentication provides several advantages for enterprise and security-focused organizations:
- Enterprise-grade security - Advanced security features like MFA, adaptive authentication, and threat detection
- Flexible deployment - Choose between cloud-hosted or self-hosted deployment options
- Centralized identity management - Single platform to manage users across multiple applications
- Compliance ready - Built-in compliance with GDPR, SOC 2, and other enterprise standards
- Advanced customization - Actions, flows, and custom branding capabilities
Prerequisites
Before configuring Zitadel authentication, ensure you have:
- Zitadel instance - Either cloud-hosted or self-hosted Zitadel installation
- Admin privileges in Palmr - Required to configure OIDC settings
- Domain configuration - For production deployments with custom domains
Note: Zitadel is pre-configured as an official provider in Palmr, which means the technical configuration is handled automatically. You only need to provide your OAuth credentials.
Setting up Zitadel Application
Creating a Zitadel application
To get started with Zitadel authentication, you'll need to create an application in your Zitadel Console.
- Navigate to Zitadel Console: Go to your Zitadel instance URL (e.g.,
your-instance.zitadel.cloud
for cloud oryour self-hosted URL
)

- Create new application: Click "Create Application" button in the home screen.
- Enter application details:
- Enter a descriptive name like "Palmr File Sharing" for your project, ou select an existing project.
- Select Framework: Select "
Other (OIDC, SAML, API)
"

- Create application: Click "Create" to generate your Zitadel application
After creating your application, you'll be redirected to the application configuration page step-by-step. in this page you can configure your application.
Configuring application settings
- Select application type: in the first step:
- Choose "Web" for web-based Palmr instances
- Add a descriptive name for your application (e.g. "Palmr File Sharing")

This is a fake application, you have to use your own.
click on "Continue" to advance to the next step.
- Select application type: in the second step:
- Choose "CODE" for authentication method and click on "Continue" to advance to the next step.

This is a fake application, you have to use your own.
- Configure application URLs:
You'll need to configure several URLs in your Zitadel application settings. Here's what to add for each environment:
Redirect URIs
Environment | URL |
---|---|
Production | https://yourdomain.com/api/auth/providers/zitadel/callback |
Development | http://localhost:3000/api/auth/providers/zitadel/callback |
Custom Port | https://yourdomain.com:5487/api/auth/providers/zitadel/callback |
Post Logout Redirect URIs
Environment | URL |
---|---|
Production | https://yourdomain.com |
Development | http://localhost:3000 |
Custom Port | https://yourdomain.com:5487 |
Note: Replace
yourdomain.com
with your actual domain name in all production and custom port URLs. Note: If you using http:// (not https://) in your redirect URIs, you need to enableDevelopment mode
switch. Note: You can add multiple redirect URIs for different environments (development, staging, production).

This is a fake application, you have to use your own.
Click on "Continue" to advance to the last step. That is just a summary of the configuration you have done.
- Save changes: Click "Save" to apply your configuration

This is a fake application, you have to use your own.
You can click on "Create" to create your application.
Getting OAuth credentials
After creating your application, a modal will appear with the credentials that Palmr will use to authenticate with Zitadel.

The client ID and client secret shown in the image are examples only (fake credentials). You must use your own credentials from Zitadel.
you can copy the credentials and save them in a safe place for later use.
Final Zitadel configuration
Confirm the Zitadel application configuration:
After closing the modal, you'll be redirected to the Zitadel application page.

This is a fake application, you have to use your own.
Confirm the application configuration fields:
- Application Type: The Application Type has been set to "Web"
- Response Type: The Response Type has been set to "Code"
- Authentication Method: The Authentication Method has been set to "Basic"
- Grant Types: The Grant Types has been set to "Authorization Code"
- Refresh Token: The Refresh Token has been set to "Disabled"
You can edit the application configuration if you want to change something and click on "Save" to save the application configuration.
Note: If you edit your client ID, you need to update the credentials that you saved in the previous step.
Select the "Token Settings" section in the side menu, you can configure the token settings for your application.
The default Auth Token Type is "Bearer" and you can change it to "JWT" and click on "Save" to save the token settings.

This is a fake application, you have to use your own.
Click on Redirect Settings section in the side menu, you can configure the redirect settings for your application. Just confirm the previous URLs you have configured in the previous step. If you want to add more redirect URLs, you can add them by clicking on "+" button. If you need to edit the redirect URLs, you can edit them by clicking on the pen icon.

This is a fake application, you have to use your own.
The last step in Zitadel is grab your instance URL. You can find it clicking on the "URLs" in the side menu.

This is a fake application, you have to use your own.
You dont need copy the complete URL, just the domain name and protocol and port if you are using a custom port.
For example: https://palmr-zaxijp.us1.zitadel.cloud
(image bellow case) or https://zitadel.yourdomain.com
or https://zitadel.yourdomain.com:5487
if you are using a custom port.
Note: In Zitadel we finish the configuration. Let's go to Palmr to configure the provider. Remember you need
Client ID
,Client Secret
andInstance URL
to configure the provider in Palmr.
Configuring Palmr
Accessing OIDC settings
To configure Zitadel authentication in Palmr, you need administrator access to the settings panel.
-
Login as administrator: Sign in to Palmr with an admin account
-
Access settings: Click your profile picture in the header and select Settings
-
Navigate to authentication: Find and click on the Authentication Providers configuration section

Enabling Zitadel provider
Zitadel comes pre-configured as an official provider, so the setup process is streamlined.
-
Locate Zitadel provider: Find Zitadel in the list of available providers
-
Enable the provider: Toggle the status to Enabled

After enabling the provider, click on the pen icon to configure the provider.
- Configure credentials:
- Provider URL: Paste your Zitadel instance URL (e.g.,
https://your-instance.zitadel.cloud
) - Client ID: Paste the Client ID from Zitadel application
- Client Secret: Paste the Client Secret from Zitadel application
- Scopes: Add the scopes you want to use. The default scopes are
openid
,profile
, andemail
. You don't need change this if you are not sure.
- Provider URL: Paste your Zitadel instance URL (e.g.,

This is a fake application, you have to use your own.
Advanced configuration options
Configure additional settings to customize the authentication behavior:
Auto Registration: Enable this to automatically create user accounts when someone authenticates for the first time.
Sort Order: Control where the Zitadel login button appears relative to other authentication providers.
Icon: you can choose the icon you want to use for the Zitadel login button (default is FaShieldAlt
).

Enterprise tip: Zitadel authentication works great for enterprise organizations requiring advanced security features and centralized identity management with deployment flexibility.
Account linking
By default, if a user is already registered in Palmr with their Zitadel email, they will be automatically linked to their Palmr account.
Note: You can't disable account linking. If you want to unlink a user from their Zitadel account, you need to delete the user from Palmr.
Technical configuration
Zitadel's technical configuration is handled automatically, but understanding the setup can help with troubleshooting:
Field mappings
Palmr automatically maps Zitadel user information to local user accounts:
- User ID: Maps from Zitadel's
sub
field - Email: Maps from Zitadel's
email
field - Full Name: Maps from Zitadel's
name
field - First Name: Maps from Zitadel's
given_name
field - Last Name: Maps from Zitadel's
family_name
field - Avatar: Maps from Zitadel's
picture
field - Username: Maps from Zitadel's
preferred_username
field
Zitadel-specific features
- Custom Claims: Can include custom user metadata and app metadata
- Actions Support: Can customize authentication flow with custom actions
- Multi-factor Authentication: Supports Zitadel's MFA features
- Enterprise SSO: Integrates with SAML, LDAP, and other enterprise systems
- Self-hosted Support: Full functionality with self-hosted Zitadel instances
Testing the configuration
Verifying the setup
After configuring Zitadel authentication, test the integration to ensure everything works correctly.
-
Check login page: Navigate to your Palmr login page and verify the "Sign in with Zitadel" button appears
-
Test authentication flow: Click the Zitadel sign-in button and complete the authentication process
-
Verify user creation: Confirm that a new user account is created (if auto-registration is enabled)
Login flow verification
The complete authentication process should work as follows:
- User clicks "Sign in with Zitadel": The browser redirects to Zitadel's authorization page
- User authenticates: User completes authentication through Zitadel (login, MFA, etc.)
- Zitadel redirects back to Palmr: User returns to Palmr with authentication tokens
- Palmr creates or updates user: User account is automatically managed with Zitadel information
- User accesses Palmr: User is logged in with their Zitadel identity
Troubleshooting common issues
Redirect URI mismatch error
Error message: invalid_redirect_uri
Cause: The redirect URI in your request doesn't match what's configured in Zitadel application.
Solution:
- Check the exact URL in the error message
- Add this exact URL to your Zitadel application's redirect URIs
- Ensure you include the correct protocol (http/https) and port
- Remove any trailing slashes unless they're in the callback URL
Access denied error
Error message: access_denied
Cause: User denied permissions or the application isn't properly configured.
Solution:
- Verify that your Zitadel application requests the correct scopes
- Check that users are granting permissions during the authorization flow
- Ensure your application is not restricted or disabled
- Verify the application has proper permissions set up
Invalid client error
Error message: invalid_client
Cause: Incorrect Client ID, Client Secret, or Instance URL.
Solution:
- Double-check that you've copied the credentials correctly from Zitadel
- Ensure there are no extra spaces or characters in the credentials
- Verify you're using the correct instance URL format
- Generate a new Client Secret if necessary
Instance URL configuration issues
Error message: Instance not found or invalid
Cause: Incorrect Zitadel instance URL or instance configuration.
Solution:
- Verify your Zitadel instance URL is correct
- Check that your Zitadel instance is active and accessible
- Ensure you're using the correct protocol (https://)
- Verify DNS resolution for your Zitadel instance
Self-hosted connectivity issues
Cause: Network connectivity problems with self-hosted Zitadel instance.
Solution:
- Check server firewall and network connectivity
- Verify DNS resolution from your server to the Zitadel instance
- Ensure the Zitadel instance is properly configured and running
- Check SSL certificate validity for the Zitadel instance
Security best practices
Credential management
- Never expose secrets: Keep your Client Secret secure and never commit it to version control
- Rotate credentials regularly: Generate new Client Secrets periodically for enhanced security
- Use environment variables: Store sensitive configuration in environment variables, not config files
- Monitor access logs: Regularly review authentication logs for suspicious activity
Scope and permission management
- Minimal scopes: Only request
openid
,profile
, andemail
scopes as required by Palmr - User consent: Ensure users understand what permissions they're granting
- Regular audits: Review which users have connected their Zitadel accounts
- Access reviews: Periodically check user access and remove inactive accounts
Production considerations
- Use HTTPS: Always use HTTPS in production environments
- Configure proper domains: Use production domains in Zitadel application settings
- Test thoroughly: Verify the complete authentication flow before going live
- Plan for failures: Have fallback authentication methods available
Next steps
With Zitadel authentication configured, you might want to:
- Configure additional providers: Set up other OIDC providers for more authentication options
- Customize user management: Fine-tune auto-registration and admin assignment rules
- Review security settings: Ensure your authentication setup meets your security requirements
- Monitor usage: Keep track of authentication patterns and user activity
For more information about OIDC authentication in Palmr, see the OIDC Authentication overview.