Module: EeIdVerification

Defined in:
lib/ee_id_verification.rb,
lib/ee_id_verification/models.rb,
lib/ee_id_verification/version.rb,
lib/ee_id_verification/web_eid_verifier.rb,
lib/ee_id_verification/certificate_reader.rb

Overview

Estonian ID card authentication library.

Simple Ruby interface for authenticating users with Estonian ID cards using local card readers. Focuses on DigiDoc Local authentication only.

Basic Usage

require 'ee_id_verification'

# Create verifier
verifier = EeIdVerification.new

# Check if ID card is available
if verifier.available?
  # Authenticate user
  session = verifier.authenticate
  puts "Enter PIN1: "
  pin = gets.chomp

  result = verifier.complete_authentication(session, pin)
  puts "Welcome #{result.full_name}!" if result.success?
end

Defined Under Namespace

Classes: AuthenticationResult, AuthenticationSession, CertificateReader, Error, Verifier, WebEidVerifier

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.newObject

Module-level convenience method



116
117
118
# File 'lib/ee_id_verification.rb', line 116

def self.new
  Verifier.new
end