簡體   English   中英

沒有身份驗證的GAE + GWT Servlet

[英]GAE + GWT Servlet without authentication

我正在使用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>

我需要一個特定的servlet免於Google身份驗證,因為它將由Android設備調用。 請不要建議驗證設備的方法,因為它不符合我的需要。

如何設置我的項目,以便在身份驗證下保護所有內容,而不是只有一個servlet?

你為什么不能這樣做:

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)將所有內容移入/保護

3)將android內容放在其他地方......或者在/或新文件夾/ android中

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM