[Rt-commit] rt branch, 5.0/disable-password-option-for-authtoken, repushed

Aaron Trevena ast at bestpractical.com
Mon Aug 3 08:28:24 EDT 2020


The branch 5.0/disable-password-option-for-authtoken was deleted and repushed:
       was 264f3ddda79092bf030cd152db6d7fb473cfb602
       now eada50f40613a7651bd1d315e091ee899e489fa5

1: 264f3ddda7 ! 1: eada50f406 Add config option to disable password for auth tokens
    @@ -15,8 +15,8 @@
      
     +
     +If you have a mix of local and external authentication you can disable
    -+requiring a password to create or edit tokens with the following line
    -+in /opt/rt4/etc/RT_SiteConfig.pm :
    ++requiring a password to create tokens with the following line
    ++in RT_SiteConfig.pm :
     +
     +   Set($DisablePasswordForAuthToken, 1);
     +
    @@ -24,6 +24,47 @@
      You can find more information about tokens in L<RT::Authen::Token>.
      
      =head1 External Authentication
    +
    +diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
    +--- a/etc/RT_Config.pm.in
    ++++ b/etc/RT_Config.pm.in
    +@@
    + are not in LDAP can still be created when they email in.
    + See L<RT::Authen::ExternalAuth> for details.
    + 
    ++=item C<$DisablePasswordForAuthToken>
    ++
    ++If you have a mix of local and external authentication you can disable
    ++requiring a password to create tokens with the following line
    ++in RT_SiteConfig.pm. You can find more information about tokens
    ++in L<RT::Authen::Token>.
    ++
    + =back
    + 
    ++=cut
    ++
    ++Set($DisablePasswordForAuthToken, 0);
    ++
    + 
    + =head2 Initialdata Formats
    + 
    +
    +diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
    +--- a/lib/RT/Config.pm
    ++++ b/lib/RT/Config.pm
    +@@
    +         Widget    => '/Widgets/Form/Boolean',
    +     },
    + 
    ++    DisablePasswordForAuthToken => {
    ++        Immutable => 1,
    ++        Widget    => '/Widgets/Form/Boolean',
    ++    },
    ++
    ++
    +     ExternalSettings => {
    +         Immutable     => 1,
    +         Obfuscate => sub {
     
     diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
     --- a/lib/RT/Interface/Web.pm



More information about the rt-commit mailing list