Login Scripts for php and node.js
Its never been easier to use ID-card and mobile-ID before!
We made php and node.js sample script for you to see how it works. You can get started in 5 minutes!
You need to:
- open terminal, login to your server, upload the files from repository with commands
$ git clone https://bitbucket.org/smartid/loginphp
$ git clone https://bitbucket.org/smartid/loginnodejs
- Go to https://id.smartid.ee and register your website with catalog https://mydomen.ee/samplescript
- Copy the Public and Secret keys and redirect uri mydomen.ee/samplescript with command
sudo nano mydomen.ee/samplescript/index.php
- Go to mydomen.ee/samplescript/index.php and login!
PHP sample result is here.