- 浏览: 118059 次
- 性别:
- 来自: 武汉
最新评论
During development for a customer, they wanted to access a JSP page that would execute some server-side code. The problem was that the page was being accessed by a program developed by the customer, so no user interaction could occur for authentication on Windchill's end.
The requirements prevented the code from being placed in the netmarkets folder or wtcore, but authentication was still required to execute the server-side code. Experimenting with automatic authentication caused a variety of errors:
- wt.method.AuthenticationException
- wt.method.MethodServerException: no active method context
- wt.util.WTContextNestingException
Finally, the code that worked:
<%@ include file="/netmarkets/jsp/util/context.jsp" %>
<%
try
{
GatewayAuthenticator auth = new GatewayAuthenticator();
wt.org.WTPrincipal admin = SessionHelper.manager.getAdministrator();
auth.setRemoteUser(admin.getName());
wtcontext.setAuthentication(auth);
SessionHelper.manager.setAdministrator();
...
%>
Some code will still need to be executed through a service so that it executes inside the Method Server, but with the above code, it will execute without causing authentication or context errors.
Be careful of the above code because all code will execute as the administrator. If access control is needed then the code needs modified to reflect the current user.
发表评论
-
How to deactivate a user in Windchill?
2012-10-17 22:09 974Introduction Procedure base ... -
How to shorten display time for the inline message in Windchill 10.0
2012-09-03 00:24 1170标题 How to shorten display ... -
How to perform SaveAs on WTPart using API in Windchill PDMLink 10.0
2012-04-05 18:38 1532标题 How to perform SaveAs ... -
Manual Installation Steps For Archive Client Installation on Red Hat Linux 4.0
2012-03-31 19:18 975On Red hat Linus 4.0 (64-Bit), ... -
Windchill单点登录方案
2012-03-31 00:20 3018Windchill SSO 单点登录 可下载附件查看。 ... -
如何在Windchill PDMLink 9.1设定多个Background Method Server去执行特定的工作流
2012-03-31 00:17 2659标题 如何在Windchill PDMLink 9.1 ... -
通过IE8访问Windchill PDMLink 10.0,出现警告提示"Windchill 只支持标准模式下的浏览器".
2012-03-31 00:15 3035标题 通过IE8访问Windchill PDMLink ... -
Solution for searching the latest revision object
2012-02-01 11:44 1012// Implement your query ... -
Solution for search object with IBA Attribute
2012-02-01 11:39 1467QuerySpec qs = new Quer ... -
Required Ports for Windchill
2011-10-29 18:53 1047Windchill utilizes multiple por ... -
[WIP] How to see the document creator full name instead of the login name in DTI
2011-09-07 14:23 850标题 [WIP] How to see the doc ... -
Windchill Project Daily Build
2011-08-26 22:54 679下载软件: ant svnant sliksvn htt ... -
How to set schedule for Synchronization from Replica to Master?
2011-08-23 10:17 1073To do this, please follow these ... -
copy user from team administrator to workflow team.
2011-07-16 12:14 1640The code can be used directly i ... -
How to Disallow Anonymous Access to Aphelion LDAP?
2011-06-12 17:34 1645Description This TPI add ... -
MethodServer Exits Prematurely With the Error *com.ptc.windchill.upgrade.history
2011-06-11 23:39 2891Description ---------------- ... -
从Aphelion迁移至WindchillDS
2011-06-11 23:00 919假设: 1. Aphelion ... -
How to Configure Windchill with Active Directory
2011-06-09 22:28 3773说明 This article describe ... -
Taking the Windchill System Offline
2011-06-09 22:20 1183Description This documen ... -
浅谈基于Info*Engine的Windchill系统集成应用
2011-06-09 21:04 3480...
相关推荐
ssh2 一些错误问题的记录
在本篇文章里小编给大家整理的是关于mysql 8.0 错误The server requested authentication method unknown to the client解决方法,有此需要的朋友们可以学习下。
Arduino Webserver with Authentication Sketch
Passwordless Authentication With Golang
The major contribution of this paper is to present a novel security and privacy RFID method with group ownership transfer. This protocol involves minimal interaction between reader and tags. The ...
Configure AAA authentication for console login to use the default AAA authentication method. Step 6. Verify the AAA authentication method. Verify the user EXEC login using the AAA TACACS+ server. ...
An Improved Uniform Identity Authentication Method.pdf
现代云端网络攻防 Modern Authentication with Azure Active Directory for Web Applications (Developer Reference)
Abstract – Hwang and Li proposed the first remote user authentication scheme using smart cards...the authentication server. This scheme is also secure against Chan – Cheng and all the extended attacks1
主要给大家介绍了关于MySQL连接抛出Authentication Failed错误的分析与解决方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
Authentication protocols are the basis of security in many distributed systems, and it is therefore essential to ensure that these protocols function correctly. Unfortunately, their design has been ...
C#连接MYSQL8.0的版本老是提示[Authentication method 'caching_sha2_password' not supported by any of the available plugins.] 这个错误,换低版本的MYSQL连接又没有问题,现在把我的经验分享一下,解决这个连接...
Called by the server (via the service method) to allow a servlet to handle a OPTIONS request. doPost(HttpServletRequest, HttpServletResponse) - Method in class javax.servlet.http.HttpServlet Called ...
Bug with authentication in the Direct mode is fixed MySQL data provider Bug with processing DATETIME fields is fixed SQLServer data provider Bug with the "Invalid column name" error when editing a ...
Bug with authentication in the Direct mode is fixed MySQL data provider Bug with processing DATETIME fields is fixed SQLServer data provider Bug with the "Invalid column name" error when editing a ...
In this paper, we formalize the types of authentication and confidentiality goal that IPsec is capable of achie- ving, and we provide criteria that entail that a network with particular IPsec ...
Hardware Security for Device Authentication in the Smart Grid.zip
security and flexibility advantages.This Learning Path will teach you how to get up and running with three of the most popular Linux server distros: Ubuntu Server, CentOS 7 Server, and RHEL 7 Server....
Quantum Authentication of Classical Messages with Perfect SecurityQuantum Authentication of Classical Messages with Perfect SecurityQuantum Authentication of Classical Messages with Perfect Security