Code Monkey home page Code Monkey logo

authshibboleth's Issues

NetCommons3 と AuthShibboleth プラグインを同時に使用すると、内部エラーが発生する

NetCommons 3.3.3 に AuthShibboleth (2021年6月2日時点) を組み込んで、Shibboleth認証でログインしようとすると、アカウントのマッピング画面の次で「内部エラー」になる。

【やったこと・おこったこと】

  1. README.md にあるインストール方法のとおり、Pluginを組み込んだ。
  2. Shibboleth の DiscoveryService は使わないので, app/Plugin/AuthShibboleth/View/Elements/login.ctp の一部を書き換えた。

// [まだ]ログイン設定で切り替え可能にしたいなぁ
//$url = array('plugin' => 'auth_shibboleth', 'controller' => 'auth_shibboleth', 'action' => 'discovery'); // コメントアウト
//$url = SiteSettingUtil::read('AuthShibboleth.wayf_return_url');
$url = array('plugin' => 'auth_shibboleth', 'controller' => 'auth_shibboleth', 'action' => 'secure'); // 追加: DS使わないから

  1. アカウントとのマッピングをするところまでは上手くいくが、その次で内部エラーになる。

Call to a member function getDefaultStartPage() on null
エラー: 内部エラーが発生しました。
Stack Trace
APP/Plugin/Auth/Controller/AuthExternalController.php line 164 → AuthAppController->_getDefaultStartPage()
APP/Plugin/Auth/Controller/AuthExternalController.php line 100 → AuthExternalController->_exLogin()
APP/Plugin/Auth/Controller/AuthExternalController.php line 68 → AuthExternalController->_exloginCall()
[internal function] → AuthExternalController->exlogin()
CORE/Cake/Controller/Controller.php line 499 → ReflectionMethod->invokeArgs()
CORE/Cake/Routing/Dispatcher.php line 193 → Controller->invokeAction()
CORE/Cake/Routing/Dispatcher.php line 167 → Dispatcher->_invoke()
APP/webroot/index.php line 131 → Dispatcher->dispatch()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.