전문 관리 > OSLC(Open Services for Lifecycle Collaboration) 서버
OSLC(Open Services for Lifecycle Collaboration) 서버
OSLC(Open Services for Lifecycle Collaboration) 서비스는 라이프 사이클 관리 도구 전체의 통합을 단순화하기 위해 사용됩니다. Windchill은 기본적으로 OSLC 사양을 지원하며 OSLC 클라이언트에서 이러한 서비스를 사용하여 Windchill과 통합할 수 있습니다.
Windchill OSLC API를 사용하면 OSLC 클라이언트가 OSLC 사양을 기반으로 하는 Windchill 부품을 질의하고 연결할 수 있습니다. Windchill은 다음과 같은 OSLC 사양을 지원합니다.
Configuration Management 1.0(Windchill 부품 표시용)
Windchill OSLC 서비스는 Windchill 객체를 해당 OSLC 리소스에 매핑하고 요청된 형식으로 이러한 리소스에 대한 응답을 제공하는 역할을 담당합니다. 지원되는 형식은 다음과 같습니다.
rdf+xml(기본값)
text/turtle
* 
Windchill OSLC 서비스는 Windchill OSLC 클라이언트에서만 사용할 수 있습니다. OSLC 클라이언트가 아닌 클라이언트는 WRS(Windchill (OData) Rest Services)를 사용해야 합니다.
OSLC 카탈로그
사용 가능한 모든 서비스, 리소스 및 용어에 대한 자세한 내용은 http(s)://<server>:<port>/Windchill/oslc/catalog에서 OSLC Catalog에 액세스하여 확인하십시오.
OAuth 승인 구성
Windchill OSLC 서비스에 대한 기본 승인은 기본적인 승인입니다. OAuth 승인을 사용하려면 추가 구성 단계가 필요합니다. OAuth를 사용하기 위한 Windchill 구성 단계는 Configure OAuth Delegated Authorization을 참조하십시오. Windchill OAuth가 구성된 후 다음 Windchill 등록 정보를 설정합니다.
등록 정보 이름
설명
oslc.authorizationURI
OAuth 승인을 얻기 위한 URI
oslc.oauthAccessTokenURI
OAuth 액세스 토큰을 얻기 위한 URI
oslc.oauthRequestTokenURI
OAuth 요청 토큰을 얻기 위한 URI
OSLC OAuth 등록 정보가 구성되면 Windchill OSLC 카탈로그에는 OAuthConfiguration 등록 정보가 포함되어 있으며 OSLC 클라이언트는 이 등록 정보에 따라 OAuth 승인을 사용해야 함을 감지할 수 있습니다.
* 
OAuth 승인을 사용하는 경우 OSLC 끝점에 대한 모든 요청 앞에 구성된 SpringSecurityFilterChain url 패턴이 접두사로 추가되어 있는지 확인합니다. 예를 들어, SpringSecurityFilterChain이 /oauth/* url 패턴으로 구성된 경우 모든 OSLC 끝점에 /oauth/oslc/* url 패턴이 있어야 합니다.
Windchill 업데이트 후에 필요한 구성
이전 버전의 Windchill로부터 업데이트한 후 Windchill OSLC 서비스를 활성화하려면 다음 단계를 수행합니다.
1. 다음 엔트리를 % WT_HOME%/codebase/WEB_INF/web.xml xml에 추가합니다.
<servlet-mapping>
<servlet-name>OSLCServlet</servlet-name>
<url-pattern>/oslc/*</url-pattern>
</servlet-mapping>
2. OSLC 경로를 Apache 구성에 추가하려면 HTTPServer/conf/conf.d/30-app-Windchill-AJP.conf에 다음 엔트리를 추가합니다.
JkMount /Windchill/oslc/* ajpWorker
3. Apache 구성에서 익명 액세스에 대한 OSLC 카탈로그를 구성하려면 HTTPServer/conf/conf.d/30-app-Windchill-Auth.conf에 다음 엔트리를 추가합니다.
<LocationMatch ^/+Windchill/+oslc/catalog(;.*)?>
Require all granted
</LocationMatch>
콘텐츠 보안 정책에 대한 구성
다른 사이트의 클라이언트 사이트에서 OSLC 미리 보기를 볼 수 있도록 하려면 web.xml 파일을 업데이트하여 다음 OSLC 콘텐츠 보안 서브렛 필터 구성을 포함하도록 합니다.
<filter>
<filter-name>OSLCContentSecurityFilter</filter-name>
<description>Servlet request filter to set the Content Security Policy for previews</description>
<filter-class>com.ptc.oslc.windchill.filter.OSLCHttpHeaderSecurityFilter</filter-class>
<init-param>
<param-name>allowedOrigins</param-name>
<param-value>https://site1.domain.com,https://site2.domain.com </param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>OSLCContentSecurityFilter</filter-name>
<url-pattern>/oslc/*</url-pattern>
</filter-mapping>
OSLC용 CORS(Cross-Origin Resource Sharing)에 대한 구성
* 
보다 안전한 구성을 위해 도메인 간 OSLC 구성에만 CORS 필터를 사용하십시오.
* 
OSLC 리소스를 다른 PTC OSLC 클라이언트 응용 프로그램과 공유하도록 Windchill을 구성하는 경우 이러한 응용 프로그램을 동일한 도메인에 로컬로 설치합니다.
다른 사이트의 클라이언트 사이트에서 OSLC 서비스를 볼 수 있도록 하려면 web.xml 파일을 업데이트하여 다음 서브렛 필터 구성을 포함하도록 합니다.
<filter>
<filter-name>ContentCorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>[ALLOWED_ORIGINS]</param-value>
</init-param>
<init-param>
<param-name>cors.support.credentials</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>cors.allowed.methods</param-name>
<param-value>GET,POST,OPTIONS</param-value>
</init-param>
<init-param>
<param-name>cors.allowed.headers</param-name>
<param-value>Content-Type,X-Requested-With</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ContentCorsFilter</filter-name>
<url-pattern>/oslc/preview/*</url-pattern>
<url-pattern>/oslc/config/*</url-pattern>
</filter-mapping>
도움이 되셨나요?