3

Google App Engine と GWT を使用して Web アプリケーションを開発しています。提供された認証を Google アカウントで使用しているため、web.xml には次の行が含まれています。

<security-constraint>
    <web-resource-collection>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
        <role-name>*</role-name>
    </auth-constraint>
</security-constraint>

Android デバイスによって呼び出されるため、特定のサーブレットを Google 認証から解放する必要があります。私のニーズに合わないため、デバイスを認証する方法を提案しないでください。

すべてが認証下で保護され、1 つのサーブレットのみが保護されないように、プロジェクトをセットアップするにはどうすればよいですか?

4

1 に答える 1

0

なぜあなたはできないのですか:

1) 制約の URL を変更する

<security-constraint>
    <web-resource-collection>
        <url-pattern>/protected/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
        <role-name>*</role-name>
    </auth-constraint>
</security-constraint>

2) すべてを /protected に移動します

3)Androidのものを別の場所に置きます... /または新しいフォルダー/androidのいずれか

于 2012-06-28T08:42:52.370 に答える