{"id":22881379,"url":"https://github.com/nicogis/twofa-utility-soe","last_synced_at":"2025-03-31T15:51:05.590Z","repository":{"id":80808369,"uuid":"84597139","full_name":"nicogis/TwoFA-Utility-SOE","owner":"nicogis","description":"PoC: using 2FA with operations SOE","archived":false,"fork":false,"pushed_at":"2023-02-21T15:21:16.000Z","size":1766,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T21:31:26.740Z","etag":null,"topics":["2factor","operations-soe","qrcode","soe","twofa"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicogis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-03-10T20:13:26.000Z","updated_at":"2023-02-21T15:21:21.000Z","dependencies_parsed_at":"2023-04-05T11:43:21.615Z","dependency_job_id":null,"html_url":"https://github.com/nicogis/TwoFA-Utility-SOE","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"aed5fd931ddb0188a1f9509279ce616428a67441"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicogis%2FTwoFA-Utility-SOE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicogis%2FTwoFA-Utility-SOE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicogis%2FTwoFA-Utility-SOE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicogis%2FTwoFA-Utility-SOE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicogis","download_url":"https://codeload.github.com/nicogis/TwoFA-Utility-SOE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246491585,"owners_count":20786212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2factor","operations-soe","qrcode","soe","twofa"],"created_at":"2024-12-13T17:33:28.193Z","updated_at":"2025-03-31T15:51:05.563Z","avatar_url":"https://github.com/nicogis.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# 2FA using operations SOE\n\n## Description\nThis is a Proof of Concept (PoC) using 2FA (two factor authentication) in a operation of SOE.\n\nThis SOE has two operations:\n\n- **twoFA**: authorizes the current user to 2FA\n\n- **addOperation**: an add operation (value1 + value2)\n \n\n\nYou need secure ArcGIS Server service\n\nIn this sample I secure 'SampleWorldCities' service with user 'Utente1'.\n\n*Login using a user* \n  \n![Login Rest](Images/LoginRest.PNG)\n\n\n*Click on TwoFAUtility SOE*\n\n![Two F A Utility](Images/TwoFAUtility.PNG)\n\n\n*Click on TwoFA operation*\n\n![Two F A Operation](Images/TwoFAOperation.PNG)\n\nSet **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). \n\nThe 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.\n \n**Reset** parameter is optional (default = false). If you set true and the current user has yet set 2FA the secret key is regenerated.\n\n![Two F A Operation Set Parameters](Images/TwoFAOperationSetParameters.PNG)\n\n*Click on twoFA(Get)*\n\n![Two F A Operation Q R Code](Images/TwoFAOperationQRCode.PNG)\n\nUse Google Authenticator to read qrcode\n\n![G A](Images/GA.PNG)\n\nor Authenticator of Microsoft to read qrcode\n\n![W A](Images/WA.PNG)\n\nScan QR code with photo camera\n\n![Scan Q R Code](Images/ScanQRCode.PNG)\n\nIf I give the code from Authenticator in operation 'addOperation', SOE returns result of operation \n\n![Code](Images/Code.PNG)\n\notherwise SOE returns error\n\n![Code K O](Images/CodeKO.PNG)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicogis%2Ftwofa-utility-soe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicogis%2Ftwofa-utility-soe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicogis%2Ftwofa-utility-soe/lists"}