- 浏览: 121231 次
- 性别:
- 来自: 武汉
最新评论
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 1021Introduction Procedure base ... -
How to shorten display time for the inline message in Windchill 10.0
2012-09-03 00:24 1237标题 How to shorten display ... -
How to perform SaveAs on WTPart using API in Windchill PDMLink 10.0
2012-04-05 18:38 1563标题 How to perform SaveAs ... -
Manual Installation Steps For Archive Client Installation on Red Hat Linux 4.0
2012-03-31 19:18 1013On Red hat Linus 4.0 (64-Bit), ... -
Windchill单点登录方案
2012-03-31 00:20 3185Windchill SSO 单点登录 可下载附件查看。 ... -
如何在Windchill PDMLink 9.1设定多个Background Method Server去执行特定的工作流
2012-03-31 00:17 2697标题 如何在Windchill PDMLink 9.1 ... -
通过IE8访问Windchill PDMLink 10.0,出现警告提示"Windchill 只支持标准模式下的浏览器".
2012-03-31 00:15 3079标题 通过IE8访问Windchill PDMLink ... -
Solution for searching the latest revision object
2012-02-01 11:44 1046// Implement your query ... -
Solution for search object with IBA Attribute
2012-02-01 11:39 1502QuerySpec qs = new Quer ... -
Required Ports for Windchill
2011-10-29 18:53 1082Windchill utilizes multiple por ... -
[WIP] How to see the document creator full name instead of the login name in DTI
2011-09-07 14:23 879标题 [WIP] How to see the doc ... -
Windchill Project Daily Build
2011-08-26 22:54 716下载软件: ant svnant sliksvn htt ... -
How to set schedule for Synchronization from Replica to Master?
2011-08-23 10:17 1118To do this, please follow these ... -
copy user from team administrator to workflow team.
2011-07-16 12:14 1674The code can be used directly i ... -
How to Disallow Anonymous Access to Aphelion LDAP?
2011-06-12 17:34 1675Description This TPI add ... -
MethodServer Exits Prematurely With the Error *com.ptc.windchill.upgrade.history
2011-06-11 23:39 2933Description ---------------- ... -
从Aphelion迁移至WindchillDS
2011-06-11 23:00 955假设: 1. Aphelion ... -
How to Configure Windchill with Active Directory
2011-06-09 22:28 3804说明 This article describe ... -
Taking the Windchill System Offline
2011-06-09 22:20 1221Description This documen ... -
浅谈基于Info*Engine的Windchill系统集成应用
2011-06-09 21:04 3526...
相关推荐
ssh2 一些错误问题的记录
The server requested authentication method unknown to the client 查阅一些相关的资料后发现是由于新版本的mysql账号密码解锁机制不一致导致的 解决办法: 删除创建的用户和授权, 找到mysql配置文件并加入 ...
Arduino Webserver with Authentication Sketch
错误信息显示“Reading from the stream has failed”,表明在数据传输过程中存在问题。本篇文章将深入探讨该问题的成因及解决方案。 1. **问题特征** - 错误仅在使用Connector/NET(MySQL ADO.NET Driver)时出现...
标题中的“集成Sqlserver Windows Authentication验证到第三方DB客户端软件中,如DbVisualizer & Squirrel等”涉及到的是在非Microsoft数据库管理工具中使用SQL Server的Windows身份验证(也称为集成安全或Kerberos...
现代云端网络攻防 Modern Authentication with Azure Active Directory for Web Applications (Developer Reference)
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 ...
The choice of Microsoft SQL Server 2000 as the backend database system is due to its robustness, scalability, and compatibility with JSP. SQL Server 2000 offers efficient storage and management of ...
标题中提到的“An Improved Uniform Identity Authentication Method.pdf”和描述中的内容表明,本文档是一项改进的基于SAML(Security Assertion Markup Language)的身份认证方法,它专注于在云环境中实现改进的...
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
优质资源,值得拥有
- **Authentication**: The initial handshake messages are signed with valid/reliable keys, allowing the server to authenticate the chip to verify if it is an NXP legitimate device. - **Authorization**:...
With the JavaMail API, in order to communicate with a server, you need a provider for a protocol. The creation of protocol-specific providers is not covered in this course because Sun provides a ...
我们一般使用PuTTY等SSH客户端来远程管理 Linux 服务器。...暴力破解的问题。...录。...密钥方式登录。 密钥形式 登录的原理是:利用密钥生成器制作一对密钥;(公钥文件和私钥文件)。将公钥添加到服务器的 ...
How to use SFTP (with client ...The other authentication method, keyboard-interactive authentication, is discussed in How to use SFTP (with client validation - keyboard-interactive authentication).