Dōrvis

Sign in

Log in to WordPress with Dorvis

The Dorvis Auth plugin adds a Dorvis button to the WordPress login form, so editors and members log in with Smart-ID, eParaksts or their bank instead of a password.

Open on wordpress.org

Requires WordPress 5.5 or newer and PHP 8.0 or newer.

What the plugin does

Configure the plugin on one settings page. Login uses the same Dorvis integration as other apps.

  • Dorvis button on the login form

    The button sits on the standard WordPress login form and uses the authorization code flow with PKCE.

  • Accounts on first login

    A new user gets a WordPress account the first time they log in, with the first and last name from Dorvis.

  • Link-only mode

    Turn off automatic account creation to allow only existing account holders to link their Dorvis identity.

  • Bulk linking by personal code

    Fill the dorvis_personal_code field for your users and their accounts link on the first Dorvis login.

  • Disable password login

    After linking accounts, you can disable password login. A setting in wp-config.php lets you restore it if needed.

  • Status in the user list

    A column in the Users list shows which users have linked their Dorvis identity.

Set up in five steps

You need a Client ID and a Client Secret, which you get after registering the site in the Dorvis portal.

  1. 01InstallFind Dorvis Auth under Plugins → Add New or run the WP-CLI command below.
  2. 02ActivateActivate the plugin in the Plugins list.
  3. 03Register the siteAdd the site in the Dorvis portal and copy the Client ID and Client Secret.
  4. 04Fill in the settingsOpen Settings → Dorvis Auth and enter the Client ID, Client Secret, Issuer URI and Redirect URI.
  5. 05Save and testSave the settings and test login in a private browser window. Choose any permalink structure other than Plain.
Shell
wp plugin install dorvis-auth --activate
SettingsSettings → Dorvis Auth
Client ID     = your-client-id
Client Secret = your-client-secret
Issuer URI    = https://dorvis.eu/oidc
Redirect URI  = shown on this page, register the same address in Dorvis

# optional
Create accounts automatically   = off links existing users only
Match accounts by personal code = on reads the dorvis_personal_code meta

# wp-config.php, if Dorvis is unreachable and passwords are off
define( 'DORVIS_AUTH_ALLOW_PASSWORD_LOGIN', true );

Moving an existing site to Dorvis

Most sites already have accounts with passwords. The plugin lets you link those accounts to Dorvis and restore password login if needed.

  • Users link themselves

    Turn off Create accounts automatically. Users log in with their password once, open their profile and click Link Dorvis identity.

  • Link in bulk

    Turn on Match accounts by personal code and fill in dorvis_personal_code for each user. Accounts will link on the first Dorvis login.

  • Restore password login

    If password login is off and Dorvis cannot be reached, define DORVIS_AUTH_ALLOW_PASSWORD_LOGIN as true in wp-config.php.

Not on WordPress?

Dorvis login works in any app that supports OpenID Connect. The developer documentation includes examples in seven languages.

Loading complete

We use cookies to make this website easier to use. Read our Privacy and Cookie Policy.