gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis-gtk] branch master updated: add TOTP entry dialog


From: gnunet
Subject: [taler-anastasis-gtk] branch master updated: add TOTP entry dialog
Date: Sun, 26 Sep 2021 14:09:06 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis-gtk.

The following commit(s) were added to refs/heads/master by this push:
     new 68a5d98  add TOTP entry dialog
68a5d98 is described below

commit 68a5d98ff711be2069bf04e483466059284d324b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Sep 26 14:09:04 2021 +0200

    add TOTP entry dialog
---
 contrib/Makefile.am                                |   1 +
 contrib/anastasis_gtk_auth_add_totp.glade          | 205 +++++++++++++++++++++
 ...stasis-gtk_handle-main-window-forward-clicked.c |   2 +
 3 files changed, 208 insertions(+)

diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index 897e61c..ad7c839 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -30,6 +30,7 @@ pkgdata_DATA = \
   anastasis_gtk_auth_add_post.glade \
   anastasis_gtk_auth_add_question.glade \
   anastasis_gtk_auth_add_sms.glade \
+  anastasis_gtk_auth_add_totp.glade \
   anastasis_gtk_auth_add_video.glade \
   anastasis_gtk_challenge_code.glade \
   anastasis_gtk_challenge_iban.glade \
diff --git a/contrib/anastasis_gtk_auth_add_totp.glade 
b/contrib/anastasis_gtk_auth_add_totp.glade
new file mode 100644
index 0000000..83aea5d
--- /dev/null
+++ b/contrib/anastasis_gtk_auth_add_totp.glade
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.38.2 
+
+Copyright (C) 2019-2021 Anastasis SARL
+
+This file is part of anastasis-gtk.
+
+anastasis-gtk is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+anastasis-gtk is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with anastasis-gtk.  If not, see <http://www.gnu.org/licenses/>.
+
+Author: Belen Pena, Christian Grothoff, Dennis Neufeld
+
+-->
+<interface domain="">
+  <requires lib="gtk+" version="3.12"/>
+  <!-- interface-license-type gplv3 -->
+  <!-- interface-name anastasis-gtk -->
+  <!-- interface-description Key backup and recovery -->
+  <!-- interface-copyright 2019-2021 Anastasis SARL -->
+  <!-- interface-authors Belen Pena, Christian Grothoff, Dennis Neufeld -->
+  <object class="GtkDialog" id="anastasis_gtk_b_totp_dialog">
+    <property name="can-focus">False</property>
+    <property name="type-hint">dialog</property>
+    <signal name="response" handler="anastasis_gtk_b_totp_dialog_response_cb" 
swapped="no"/>
+    <child internal-child="vbox">
+      <object class="GtkBox">
+        <property name="can-focus">False</property>
+        <property name="orientation">vertical</property>
+        <property name="spacing">2</property>
+        <child internal-child="action_area">
+          <object class="GtkButtonBox">
+            <property name="can-focus">False</property>
+            <property name="layout-style">end</property>
+            <child>
+              <object class="GtkButton" 
id="anastasis_gtk_b_email_dialog_btn_cancel">
+                <property name="label">gtk-cancel</property>
+                <property name="visible">True</property>
+                <property name="can-focus">False</property>
+                <property name="receives-default">False</property>
+                <property name="use-stock">True</property>
+                <property name="always-show-image">True</property>
+              </object>
+              <packing>
+                <property name="expand">True</property>
+                <property name="fill">True</property>
+                <property name="position">0</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" 
id="anastasis_gtk_b_email_dialog_btn_ok">
+                <property name="label">gtk-ok</property>
+                <property name="visible">True</property>
+                <property name="sensitive">False</property>
+                <property name="can-focus">False</property>
+                <property name="can-default">True</property>
+                <property name="has-default">True</property>
+                <property name="receives-default">False</property>
+                <property name="use-stock">True</property>
+                <property name="always-show-image">True</property>
+              </object>
+              <packing>
+                <property name="expand">True</property>
+                <property name="fill">True</property>
+                <property name="position">1</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">False</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkBox">
+            <property name="visible">True</property>
+            <property name="can-focus">False</property>
+            <property name="orientation">vertical</property>
+            <child>
+              <object class="GtkLabel" id="explainer_label">
+                <property name="name">explainer_label</property>
+                <property name="visible">True</property>
+                <property name="can-focus">False</property>
+                <property name="label" translatable="yes">For TOTP 
authentication, you need to set a name for the TOTP secret.
+Then, you must scan the generated QR code with your TOTP App to
+import the TOTP secret it into your TOTP App.
+&lt;b&gt;Make sure to scan the QR code before closing this 
dialog!&lt;/b&gt;</property>
+                <property name="use-markup">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="padding">20</property>
+                <property name="position">0</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkBox">
+                <property name="visible">True</property>
+                <property name="can-focus">False</property>
+                <property name="margin-bottom">50</property>
+                <property name="orientation">vertical</property>
+                <child>
+                  <object class="GtkLabel">
+                    <property name="visible">True</property>
+                    <property name="can-focus">False</property>
+                    <property name="halign">start</property>
+                    <property name="margin-start">25</property>
+                    <property name="margin-end">25</property>
+                    <property name="label" translatable="yes">TOTP 
Name</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                    <property name="padding">5</property>
+                    <property name="position">0</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkEntry" 
id="anastasis_gtk_b_totp_dialog_name_entry">
+                    <property name="visible">True</property>
+                    <property name="can-focus">True</property>
+                    <property name="has-focus">True</property>
+                    <property name="margin-start">25</property>
+                    <property name="margin-end">25</property>
+                    <property name="hexpand">True</property>
+                    <property name="activates-default">True</property>
+                    <property name="width-chars">36</property>
+                    <property name="text" 
translatable="yes">Anastasis</property>
+                    <property name="primary-icon-stock">gtk-info</property>
+                    <property name="input-purpose">name</property>
+                    <signal name="changed" 
handler="anastasis_gtk_b_totp_dialog_name_entry_changed_cb" swapped="no"/>
+                  </object>
+                  <packing>
+                    <property name="expand">True</property>
+                    <property name="fill">True</property>
+                    <property name="padding">5</property>
+                    <property name="position">1</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkImage" id="qr_image">
+                    <property name="name">qr_image</property>
+                    <property name="visible">True</property>
+                    <property name="can-focus">False</property>
+                    <property name="halign">center</property>
+                    <property name="margin-start">25</property>
+                    <property name="margin-end">25</property>
+                    <property name="margin-top">25</property>
+                    <property name="margin-bottom">25</property>
+                    <property name="stock">gtk-missing-image</property>
+                    <property name="icon_size">6</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                    <property name="padding">5</property>
+                    <property name="position">2</property>
+                  </packing>
+                </child>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="padding">5</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="padding">5</property>
+            <property name="position">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+    <action-widgets>
+      <action-widget 
response="-6">anastasis_gtk_b_email_dialog_btn_cancel</action-widget>
+      <action-widget 
response="-5">anastasis_gtk_b_email_dialog_btn_ok</action-widget>
+    </action-widgets>
+    <child type="titlebar">
+      <object class="GtkLabel">
+        <property name="visible">True</property>
+        <property name="can-focus">False</property>
+        <property name="label" translatable="yes">Configure TOTP</property>
+      </object>
+    </child>
+    <action-widgets>
+      <action-widget 
response="-6">anastasis_gtk_b_email_dialog_btn_cancel</action-widget>
+      <action-widget 
response="-5">anastasis_gtk_b_email_dialog_btn_ok</action-widget>
+    </action-widgets>
+  </object>
+</interface>
diff --git a/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c 
b/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
index c388361..1080a36 100644
--- a/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
+++ b/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
@@ -141,6 +141,8 @@ static void
 forward_authentications_editing (void)
 {
   AG_freeze ();
+  // FIXME: if insufficient authentication methods,
+  // throw warning at the user!
   AG_ra = ANASTASIS_redux_action (AG_redux_state,
                                   "next",
                                   NULL,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]