Skip to content

nicogis/TwoFA-Utility-SOE

Repository files navigation

2FA using operations SOE

Description

This is a Proof of Concept (PoC) using 2FA (two factor authentication) in a operation of SOE.

This SOE has two operations:

  • twoFA: authorizes the current user to 2FA

  • addOperation: an add operation (value1 + value2)

You need secure ArcGIS Server service

In this sample I secure 'SampleWorldCities' service with user 'Utente1'.

Login using a user

Login Rest

Click on TwoFAUtility SOE

Two F A Utility

Click on TwoFA operation

Two F A Operation

Set issuerID and format image so you see qrCode for Google Authenticator (Android, iOS) or Authenticator (Windows Phone, iOS, Android).

The issuerID will appear on the user's Google/Microsoft Authenticator app. It should be the name of your app/system so the user can easily identify it.

Reset parameter is optional (default = false). If you set true and the current user has yet set 2FA the secret key is regenerated.

Two F A Operation Set Parameters

Click on twoFA(Get)

Two F A Operation Q R Code

Use Google Authenticator to read qrcode

G A

or Authenticator of Microsoft to read qrcode

W A

Scan QR code with photo camera

Scan Q R Code

If I give the code from Authenticator in operation 'addOperation', SOE returns result of operation

Code

otherwise SOE returns error

Code K O

Releases

No releases published

Packages

No packages published

Languages