Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nicogis/twofa-utility-soe

PoC: using 2FA with operations SOE
https://github.com/nicogis/twofa-utility-soe

2factor operations-soe qrcode soe twofa

Last synced: about 2 months ago
JSON representation

PoC: using 2FA with operations SOE

Awesome Lists containing this project

README

        

# 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](Images/LoginRest.PNG)

*Click on TwoFAUtility SOE*

![Two F A Utility](Images/TwoFAUtility.PNG)

*Click on TwoFA operation*

![Two F A Operation](Images/TwoFAOperation.PNG)

Set **issuerID** and **format** image so you see qrCode for [Google Authenticator](https://support.google.com/ACCOUNTS/ANSWER/1066447) (Android, iOS) or [Authenticator](http://www.windowsphone.com/EN-US/STORE/APP/AUTHENTICATOR/E7994DBC-2336-4950-91BA-CA22D653759B) (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](Images/TwoFAOperationSetParameters.PNG)

*Click on twoFA(Get)*

![Two F A Operation Q R Code](Images/TwoFAOperationQRCode.PNG)

Use Google Authenticator to read qrcode

![G A](Images/GA.PNG)

or Authenticator of Microsoft to read qrcode

![W A](Images/WA.PNG)

Scan QR code with photo camera

![Scan Q R Code](Images/ScanQRCode.PNG)

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

![Code](Images/Code.PNG)

otherwise SOE returns error

![Code K O](Images/CodeKO.PNG)