💥 TRENDING: Changeset/ - Complete Album!

Changeset 1375073


Ignore:
Timestamp:
03/20/2016 03:54:22 PM (10 years ago)
Author:
mitchoyoshitaka
Message:

tagging 1.7

Location:
shibboleth
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shibboleth/tags/1.7/options-admin.php

    r889047 r1375073  
    22// functions for managing Shibboleth options through the WordPress administration panel
    33
    4 if ( current_user_can('manage_options') )
     4if ( is_multisite() ) {
     5    add_action('network_admin_menu', 'shibboleth_network_admin_panels');
     6} else {
    57    add_action('admin_menu', 'shibboleth_admin_panels');
     8}
    69
    710/**
     
    1114 **/
    1215function shibboleth_admin_panels() {
    13     // global options page
    14     if ( function_exists('is_site_admin') ) {
    15         $hookname = add_submenu_page('wpmu-admin.php', __('Shibboleth Options', 'shibboleth'),
    16             __('Shibboleth', 'shibboleth'), 8, 'shibboleth-options', 'shibboleth_options_page' );
    17     } else {
    18         $hookname = add_options_page(__('Shibboleth options', 'shibboleth'),
    19             __('Shibboleth', 'shibboleth'), 8, 'shibboleth-options', 'shibboleth_options_page' );
    20     }
    21 
     16    $hookname = add_options_page(__('Shibboleth options', 'shibboleth'),
     17        __('Shibboleth', 'shibboleth'), 'manage_options', 'shibboleth-options', 'shibboleth_options_page' );
     18    add_contextual_help($hookname, shibboleth_help_text());
     19}
     20
     21/**
     22 * Setup multisite admin menus for Shibboleth options.
     23 *
     24 * @action: network_admin_menu
     25 **/
     26function shibboleth_network_admin_panels() {
     27    $hookname = add_submenu_page('settings.php', __('Shibboleth options', 'shibboleth'),
     28        __('Shibboleth', 'shibboleth'), 'manage_network_options', 'shibboleth-options', 'shibboleth_options_page' );
    2229    add_contextual_help($hookname, shibboleth_help_text());
    2330}
  • shibboleth/tags/1.7/readme.txt

    r889085 r1375073  
    33Tags: shibboleth, authentication, login, saml
    44Requires at least: 3.3
    5 Tested up to: 3.9
    6 Stable tag: 1.6
     5Tested up to: 4.5
     6Stable tag: 1.7
    77
    88Allows WordPress to externalize user authentication and account creation to a
     
    4949If it is unable to do so, you can add this manually:
    5050
    51     AuthType Shibboleth
    52     Require Shibboleth
     51    AuthType shibboleth
     52    Require shibboleth
    5353
    5454The option to automatically login the users into WordPress also works when not
     
    6363automatic login feature
    6464
    65     AuthType Shibboleth
    66     ShibRequireSession on
     65    AuthType shibboleth
     66    ShibRequestSetting requireSession 1
    6767    Require valid-user
    6868
    6969OR
    7070
    71     Authtype Shibboleth
    72     ShibRequireSession on
     71    Authtype shibboleth
     72    ShibRequestSetting requireSession 1
    7373    Require isMemberOf group1 group2
    7474    Require sAMAccountName user1 user 2
     
    145145== Changelog ==
    146146
     147= version 1.7 (2016-03-20) =
     148 - fixed a security vulnerability reported by WordPress security team
     149 - load multisite options correctly; [thanks to jdelsemme for reporting](https://github.com/mitcho/shibboleth/issues/8)
     150 - updated htaccess setting strings; [props dericcrago](https://github.com/mitcho/shibboleth/pull/6)
     151 - fix reauth loop; [props jrchamp](https://github.com/mitcho/shibboleth/pull/5)
     152 - set l10n text domain; [props jrchamp](https://github.com/mitcho/shibboleth/pull/5)
     153
    147154= version 1.6 (2014-04-07) =
    148155 - tested for compatibility with recent WordPress versions; now requires WordPress 3.3
  • shibboleth/tags/1.7/shibboleth.php

    r889085 r1375073  
    55 Description: Easily externalize user authentication to a <a href="http://shibboleth.internet2.edu">Shibboleth</a> Service Provider
    66 Author: Will Norris, mitcho (Michael 芳貴 Erlewine)
    7  Version: 1.6
     7 Version: 1.7
    88 License: Apache 2 (http://www.apache.org/licenses/LICENSE-2.0.html)
    99 */
     
    460460function shibboleth_login_form() {
    461461    $login_url = add_query_arg('action', 'shibboleth');