問題タブ [simplesamlphp]

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.

0 投票する
1 に答える
1570 参照

apache - Simplesamlphp - requireAuth で 404 Not Found にリダイレクトする

simpleSAMLphp をアプリケーションに統合しようとしていますが、次の問題が発生しています。

requireAuth メソッドを実行すると、404 ページ、具体的には「http://test.localhost/simplesaml/module.php/saml/disco.php {たくさんのパラメーターがここにある}」にリダイレクトされます。

simplesamlphp の仮想ホストは " http://simplesamlphp.localhost "であるため、もちろん、これは 404 not found を返します。

不足している構成はどれですか?

私のアプリケーションの完全なコードは次のとおりです。

そして、これが /etc/apache2/sites-enabled/000-default.conf の私の仮想ホスト構成です

0 投票する
1 に答える
1868 参照

php - Simplesamlphp - stuck in the simplesamlphp page when integrating with my application

So, I am trying to integrate my application with SimpleSAMLphp.

I have to IdP configured and they're both working fine (I can test it on the simplesamlphp admin page, via "Test configured authentication sources")

But when I try to integrate with my application, after loggin in with an IdP, I get stuck in the simplesamlphp page

Like this:

  1. I open my application

  2. My Application calls requireAuth, which redirects me to the simplesamlphp page, where I can choose which IdP I am going to use

  3. I choose one IdP. I get redirected to the IdP page. I successfully log in.

  4. The IdP redirects me back to the simplesamlphp IdP selection screen. I get stuck in here because when I open My Application, it redirects me to this same page.

Does someone knows what am I doing wrong? I think it is a configuration problem, but I have no idea which one could be. Also, isAuthenticated function ALWAYS returns false.

Here is my application code

0 投票する
1 に答える
1698 参照

php - Drupal で SAML による SSO を構成するには?

まず、私は SAML の初心者です。simplesamlphp を使用して Drupal で SSO を構成する方法を、誰かが順を追って説明できますか? または、「構成された認証ソースのテスト」でテストする方法は?

私が今持っているもの。

  1. simpleSAMLphp 認証モジュールをインストールしました。
  2. simplesamlphp ライブラリを自分のサイト (mysite/simplesamlphp) に追加します。
  3. config.php を変更しました
  4. saml20-sp-remote.php にメタを追加

    /li>
  5. mysite/saml_login にアクセスすると、IdP のログイン ページに戻ります。ログイン後、SAMLRequest とその他の GET パラメータを使用して自分のサイト (mysite/sso/login?params) に戻ります。しかし、サイトの表示ページが見つからないというエラーが発生しました。wikiではステップ2です。

それで、私は何を間違えましたか?この GET-params を処理するには、同じページのコールバックを設定する必要がありますか?

simplesamlの「構成された認証ソースのテスト」でもこれを実行しようとしましたが、同じ結果が得られました。

助けてください!

0 投票する
2 に答える
594 参照

php - Symfony 2.4+ および simplesamlphp : NO STATE

Symfony 2.4+ ( http://symfony.com/ ) で SimpleSAMLPHP ( https://simplesamlphp.org/ )を実装しようとしました。しかし、Symfony はセッションを管理しているため、SimpleSAML セッションが書き込まれる前に破棄されます。

誰でもこの問題を解決できますか? 現在、別の SAML ライブラリに移行しています: onelogin/php-saml ( https://github.com/onelogin/php-saml )

0 投票する
1 に答える
15903 参照

php - SP が誤ってリダイレクトするための SimpleSamlPhp

サービス プロバイダーとして機能する SimpleSamlPHP 実装があるため、ワークフローは次のようになります。

IdP がアサーションを ACS URL に送信します。

/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp

しかし、その後、彼は認証され、リダイレクトされるように見えます

/simplesaml/module.php/saml/sp/saml2-acs.php

authsource (/default-sp 部分) が指定されていないため、エラーがスローされます。

ただし、ページにも一連の PHP エラーが出力されます。

(ディレクトリパスを取り出して*に置き換えました-通常はそうではありません)

それが SimpleSamlPHP のバグなのか、それとも (はるかに可能性が高い) 不適切なセットアップなのか、私にはわかりません。私のauthsourcesとメタデータは次のとおりです。

saml20-idp-remote.php:

authsources.php: