Changeset 2259


Ignore:
Timestamp:
Feb 28, 2014, 2:20:18 PM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #580: Authenticate users using YubiKey? sticks

Added a YubiKey? tab in the 'Edit user' dialog. This should make it relatively easy to register/unregister a YubiKey? with a certain user.

Location:
extensions/net.sf.basedb.yubikey/trunk
Files:
6 added
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.yubikey/trunk/.classpath

    r2256 r2259  
    66  <classpathentry kind="lib" path="META-INF/lib/yubico-validation-client2-2.0.1.jar"/>
    77  <classpathentry kind="lib" path="lib/base-webclient-3.3.0.jar"/>
     8  <classpathentry kind="lib" path="lib/servlet-api.jar"/>
     9  <classpathentry kind="lib" path="lib/json_simple-1.1.jar"/>
    810  <classpathentry kind="output" path="bin"/>
    911</classpath>
  • extensions/net.sf.basedb.yubikey/trunk/META-INF/extensions.xml

    r2256 r2259  
    1919    >
    2020    <about>
    21       <name>UbiKey authentication manager</name>
     21      <name>YubiKey authentication manager</name>
    2222    </about>
    2323    <index>1</index>
     
    3232    >
    3333    <about>
    34       <name>UbiKey login form</name>
     34      <name>YubiKey login form</name>
    3535    </about>
    3636    <index>1</index>
     
    4141      </parameters>
    4242    </action-factory>
    43  
    4443  </extension>
     44
     45  <extension
     46    id="net.sf.basedb.yubikey.user-edit"
     47    extends="net.sf.basedb.clients.web.tabcontrol.edit.user"
     48    >
     49    <about>
     50      <name>YubiKey tab in user edit dialog</name>
     51    </about>
     52    <index>1</index>
     53    <action-factory>
     54      <factory-class>
     55        net.sf.basedb.clients.web.extensions.tabcontrol.IncludeContentTabFactory
     56      </factory-class>
     57      <parameters>
     58        <id>yubikey-tab</id>
     59        <title>YubiKey</title>
     60        <tooltip>Assign a YubiKey to the user</tooltip>
     61        <include>~/edit-user.jsp</include>
     62        <stylesheet>~/css/yubico.css</stylesheet>
     63        <script>~/edit-user.js</script>
     64      </parameters>
     65    </action-factory>
     66  </extension>
     67
    4568 
    4669</extensions>
  • extensions/net.sf.basedb.yubikey/trunk/lib

    • Property svn:ignore
      •  

        old new  
        1 *.jar
         1base-*.jar
  • extensions/net.sf.basedb.yubikey/trunk/resources/css/yubico.css

    r2256 r2259  
    1717  min-height: 60px;
    1818}
     19
     20#settings\.yubikey-tab
     21{
     22  background-image: url('../images/yubico.png');
     23  background-position: 2px center;
     24  background-repeat: no-repeat;
     25  padding-left: 20px;
     26}
     27
     28#settings\.yubikey-tab:hover, #settings\.yubikey-tab.active
     29{
     30  background-position: 1px center;
     31  padding-left: 19px;
     32}
  • extensions/net.sf.basedb.yubikey/trunk/src/net/sf/basedb/yubikey/YubiKeyAuthenticationManager.java

    r2258 r2259  
    107107      {
    108108        // Verify the one-time-password using the YubiCloud service
    109         YubicoClient ybClient = null;
    110109        YubicoResponse response = null;
    111110        try
Note: See TracChangeset for help on using the changeset viewer.