問題タブ [phpcas]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - phpCAS html form authentication for username and password
I'm trying to authenticate a username and password with a CAS server using phpCAS but didn't find anything relevant on the internet. Once the user inputs their username and password how do I authenticate it with a CAS server using phpCAS? Also, how do I redirect user to a different .php page? I saw that we can use phpCAS:foreAuthentication() to authenticate users, but I'm trying to understand how a user is authenticated using this. Thanks!
php - Cakephp 3 で phpCAS に接続する際の無限ループ リダイレクト
プロジェクトを Cakephp 2 から Cakephp 3 に移行しています。したがって、phpCas 認証を移行することを決定した後、ナビゲーターがプロセスを停止することを決定する前に、無限のリダイレクトがあります。多くの調査の結果、リダイレクト後にセッション変数が保持されないことが問題であることがわかりました。現在のセッション番号を調べたところ、実際にリダイレクトごとにセッション ID が異なり、ユーザーに関する情報が消えてしまいました。app.php で、php のデフォルト モードを使用してセッションを構成しました。また、セッションは Cookie を使用してリダイレクトした後にその番号を見つける必要があり、私のものはアクティブ化されていない可能性があると考えました。phpCas のログを確認すると、ログインに問題はなく、自分のユーザー名が見つかりました。すべてがうまくいきます。リダイレクト後にセッション変数だけが保持されません。