<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dolibarr.org/index.php?action=history&amp;feed=atom&amp;title=Module_SmartAuth</id>
	<title>Module SmartAuth - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dolibarr.org/index.php?action=history&amp;feed=atom&amp;title=Module_SmartAuth"/>
	<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_SmartAuth&amp;action=history"/>
	<updated>2026-12-01T14:31:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_SmartAuth&amp;diff=69620&amp;oldid=prev</id>
		<title>Eric.seigne: SmartAuth 2.0.76</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_SmartAuth&amp;diff=69620&amp;oldid=prev"/>
		<updated>2026-11-30T19:30:08Z</updated>

		<summary type="html">&lt;p&gt;SmartAuth 2.0.76&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[fr:Module_SmartAuth_FR]]&lt;br /&gt;
[[Category:Complementary modules]]&lt;br /&gt;
[[Category:CAP-REL]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
=Information=&lt;br /&gt;
{{TemplateModuleInfo&lt;br /&gt;
|modulename=SmartAuth&lt;br /&gt;
|editor=CAP-REL&lt;br /&gt;
|web=[https://www.cap-rel.fr www.cap-rel.fr]&lt;br /&gt;
|webbuy={{LinkToPluginDownloadDoliStore|keyword=smartauth}}&lt;br /&gt;
|status=stable&lt;br /&gt;
|prerequisites=No Dolibarr module required&lt;br /&gt;
|minversion=18.0.0&lt;br /&gt;
|note=Authentication and authorization of the applications connected to Dolibarr: JWT tokens for mobile apps, OAuth2 / OpenID Connect server for single sign-on, client credentials for server-to-server exchanges.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
&lt;br /&gt;
Your users already have a Dolibarr account. SmartAuth makes it the single identity of your mobile apps, third-party services and server-to-server exchanges, with no second directory and no second password.&lt;br /&gt;
&lt;br /&gt;
==At a glance==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;For whom&amp;#039;&amp;#039;&amp;#039;: any organisation running a mobile app, a customer portal or an in-house service next to its Dolibarr. SmartAuth is also the common base of the SmartMaker apps by CAP-REL.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;What the module does&amp;#039;&amp;#039;&amp;#039;: it authenticates external applications, issues their tokens, tracks the connected devices and logs the accesses.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;What it does not do&amp;#039;&amp;#039;&amp;#039;: it does not replace the login of the Dolibarr web interface, which stays the Dolibarr one.&lt;br /&gt;
&lt;br /&gt;
==Feature list==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;JWT API&amp;#039;&amp;#039;&amp;#039; - an access token and refresh token pair per device for mobile apps; each device forms an isolated token family, revocable on its own.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;OAuth2 / OpenID Connect&amp;#039;&amp;#039;&amp;#039; - Dolibarr becomes the identity provider of WordPress, Nextcloud or any compatible application: authorization, token, userinfo, discovery, revocation; confidential clients, or public clients with PKCE.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Client credentials&amp;#039;&amp;#039;&amp;#039; - machine-to-machine authentication with no user interaction, under the identity of a service user.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;QR code pairing&amp;#039;&amp;#039;&amp;#039; - a Dolibarr workstation already signed in shows a short-lived QR code, the phone scans it and receives its tokens once the workstation confirms, with no password typed.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Dashboard&amp;#039;&amp;#039;&amp;#039; - active tokens, connected users, rate limit blocks and refresh success rate, with alerts on token replay, brute force and repeated failed attempts.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Tokens, devices and logs&amp;#039;&amp;#039;&amp;#039; - browsable lists, devices that can be renamed, immediate revocation, history of logins and API calls.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SmartAuth tab on the user card&amp;#039;&amp;#039;&amp;#039; - tokens and history of each user.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Security&amp;#039;&amp;#039;&amp;#039; - rate limiting per IP address and per user, token replay detection, email alert on a login from an unknown IP address or device, optional GeoIP location.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;External users kept to their company&amp;#039;&amp;#039;&amp;#039; - a user linked to a third party only sees, in the apps, the data of their own company, as in Dolibarr.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PWA fields&amp;#039;&amp;#039;&amp;#039; - settings of the photo lists (&amp;lt;code&amp;gt;smartlistphoto_&amp;lt;/code&amp;gt; extra fields) shown by the apps.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Scheduled job&amp;#039;&amp;#039;&amp;#039; - cleanup of expired tokens and old logs.&lt;br /&gt;
&lt;br /&gt;
==Screenshots==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=&amp;quot;300px&amp;quot; heights=&amp;quot;200px&amp;quot;&amp;gt;&lt;br /&gt;
File:SmartAuth tableau-de-bord.png|Dashboard: active tokens, connected users, blocks and refreshes&lt;br /&gt;
File:SmartAuth onglet-utilisateur.png|The SmartAuth tab of the user card: tokens and history&lt;br /&gt;
File:SmartAuth liste-jetons.png|The list of active tokens&lt;br /&gt;
File:SmartAuth liste-peripheriques.png|The registered devices&lt;br /&gt;
File:SmartAuth configuration-oauth.png|The setup of the OAuth2 / OpenID Connect server&lt;br /&gt;
File:SmartAuth liste-journaux.png|The authentication logs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Links=&lt;br /&gt;
&lt;br /&gt;
* [https://doc.cap-rel.fr/smartauth/?lang=en Module documentation]&lt;br /&gt;
* [https://doc.cap-rel.fr/smartauth/nouveautes-2-0#version-2-0-76 What&amp;#039;s new in version 2.0.76]&lt;br /&gt;
* [https://dolinews.com/en/projets/smartauth Get update notifications]&lt;br /&gt;
* [https://cap-rel.fr/sav-module-dolibarr/ Support form]&lt;br /&gt;
* [https://tests.cap-rel.fr/projects/2/quality Automated test report]&lt;br /&gt;
&lt;br /&gt;
=Requirements=&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Item !! Version or condition&lt;br /&gt;
|-&lt;br /&gt;
| Dolibarr || 18.0 or later&lt;br /&gt;
|-&lt;br /&gt;
| PHP || 7.4 or later&lt;br /&gt;
|-&lt;br /&gt;
| Rights || an administrator account to install, enable and set up the module&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
&lt;br /&gt;
{{InstallModuleDoliStoreEn|keyword=smartauth}}&lt;br /&gt;
&lt;br /&gt;
==Upgrade==&lt;br /&gt;
&lt;br /&gt;
# Install the new version through &amp;#039;&amp;#039;&amp;#039;Home &amp;gt; Setup &amp;gt; Modules/Applications &amp;gt; Deploy/install external app/module&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# Disable then enable the module again: enabling it applies the database updates.&lt;br /&gt;
&lt;br /&gt;
==Uninstall==&lt;br /&gt;
&lt;br /&gt;
Disable the module from &amp;#039;&amp;#039;&amp;#039;Home &amp;gt; Setup &amp;gt; Modules/Applications&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=Setup=&lt;br /&gt;
&lt;br /&gt;
{{ActivationModuleEn}}&lt;br /&gt;
&lt;br /&gt;
The setup is in &amp;#039;&amp;#039;&amp;#039;Home &amp;gt; Setup &amp;gt; Modules &amp;gt; SmartAuth&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Tab !! Content&lt;br /&gt;
|-&lt;br /&gt;
| Settings || token lifetime (10, 20, 30 or 90 days, 30 by default), default user, logs and how long they are kept, trusted proxies, debug mode&lt;br /&gt;
|-&lt;br /&gt;
| OAuth Server || enabling and settings of the OAuth2 / OpenID Connect server&lt;br /&gt;
|-&lt;br /&gt;
| OAuth Clients || the applications allowed to connect: confidential, or public with PKCE&lt;br /&gt;
|-&lt;br /&gt;
| PWA fields || maximum number of photos of the photo lists (between 1 and 100, 20 by default)&lt;br /&gt;
|-&lt;br /&gt;
| GeoIP Setup || download and activation of the location database&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The cleanup scheduled job is disabled by default: enable it in &amp;#039;&amp;#039;&amp;#039;Home &amp;gt; Setup &amp;gt; Scheduled jobs&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
If you enable the OAuth2 server, expose the public SSO portal of the module on a dedicated subdomain: the [https://doc.cap-rel.fr/smartauth/oauth?lang=en OAuth2/OIDC documentation] describes the web server setup.&lt;br /&gt;
&lt;br /&gt;
=Permissions=&lt;br /&gt;
&lt;br /&gt;
The module defines one read permission, &amp;#039;&amp;#039;&amp;#039;Read objects of SmartAuth&amp;#039;&amp;#039;&amp;#039;, which gives access to its pages. An administrator grants it from &amp;#039;&amp;#039;&amp;#039;Home &amp;gt; Users &amp;amp; Groups&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Permissions&amp;#039;&amp;#039;&amp;#039; tab. The setup pages remain restricted to administrators.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
Once enabled, the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SmartAuth&amp;#039;&amp;#039;&amp;#039; menu appears in the left menu.&lt;br /&gt;
&lt;br /&gt;
==Dashboard==&lt;br /&gt;
&lt;br /&gt;
Four indicators: active tokens, connected users, rate limit blocks over 24 hours and refresh success rate. Alerts report the token families revoked after a replay, the IP addresses with repeated attempts and the accounts targeted by brute force.&lt;br /&gt;
&lt;br /&gt;
==Tokens and devices==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SmartAuth &amp;gt; Tokens&amp;#039;&amp;#039;&amp;#039; lists the active tokens; revoking one signs the device out immediately. &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SmartAuth &amp;gt; Devices&amp;#039;&amp;#039;&amp;#039; lets you rename a device, see its activity or revoke it.&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SmartAuth &amp;gt; Logs&amp;#039;&amp;#039;&amp;#039; shows the logins and API calls, once log collection is enabled in the settings.&lt;br /&gt;
&lt;br /&gt;
==User tab==&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;SmartAuth&amp;#039;&amp;#039;&amp;#039; tab of each user card shows their tokens and login history.&lt;br /&gt;
&lt;br /&gt;
Details are in the [https://doc.cap-rel.fr/smartauth/utilisation?lang=en user guide].&lt;br /&gt;
&lt;br /&gt;
=FAQ=&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Does SmartAuth replace the Dolibarr login?&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
No. The Dolibarr web interface keeps its own login; SmartAuth only authenticates external applications.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Do the SmartMaker mobile apps need the OAuth server?&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
No. They use JWT tokens, independent from the OAuth server, which only serves single sign-on and server-to-server exchanges.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Why was a token revoked automatically?&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
A refresh token already used was presented a second time: the whole token family of the device is revoked to protect it against theft.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The logs stay empty.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Log collection is disabled by default: enable it in the &amp;#039;&amp;#039;&amp;#039;Settings&amp;#039;&amp;#039;&amp;#039; tab.&lt;br /&gt;
&lt;br /&gt;
All questions: [https://doc.cap-rel.fr/smartauth/faq?lang=en documentation FAQ].&lt;br /&gt;
&lt;br /&gt;
=Development=&lt;br /&gt;
&lt;br /&gt;
Developments and improvements can be proposed to the project manager by email (see the headers of the source files) or through the [https://cap-rel.fr/sav-module-dolibarr/ support form].&lt;/div&gt;</summary>
		<author><name>Eric.seigne</name></author>
	</entry>
</feed>