Install OAuth1 Control Center
A Business Administrator can install the OAuth1 Control Center
app, which is used to approve consumer keys from external applications that use
an ENOVIA app as an OSLC provider.
-
Locate the installer file for your platform on the installation
media.
- On Windows, the installer file is in
ENOVIAOAuth1ProviderFoundation.Windows64_package .
- On Linux, the installer file is in
ENOVIAOAuth1ProviderFoundation.Linux64_package .
-
Run the installer.
- On Windows, double-click the installer file to start it.
- On Linux, run the following command:
./StartTUI.sh
-
Provide the server paths, ports, and user information to the
installer.
For both Windows and Linux:
- Enter the
3DSpace
service URL without a
/ at the end. For example:
https://sampleservername.3ds.com/3DSpace
- The default NodeJS server port:
8090
- The default username for the OAuth1 server administrator
account:
OAuthAdminUser
- The default password for the OAuth1 server administrator
account:
ev6@dm
Configure OAuth1 Server Information
After installing the OAuth1 Control Center app, a Business
Administrator must edit several files to configure OAuth server information,
then restart the reverse proxy server before starting the OAuth server.
Before you begin: You must have already installed the OAuth1 Control Center app
before you can configure OAuth server information.
-
Add the following information to the
3DEXPERIENCE VirtualHost section of
httpd.conf file:
#OAuth1:
IncludeOptional /<OAuth1Provider>/conf/OAuth_httpd_fragment.conf* where
<OAuth1Provider> is the location in which
the OAuth1 server is installed.
-
Add the following information to the end of the
Header setifempty
Access-Control-Allow-Headers section of
httpd.conf file:
OSLC-Core-Version,Authorization so that it reads:
Header setifempty Access-Control-Allow-Headers "accept,x-requested-method,origin,x-requested-with,
x-request,cache-control,content-type,SecurityContext,x-utc-offset,X-DS-CSRFTOKEN,X-DS-IAM-CSRFTOKEN,
eep-alive,DS-API-Version,DS-Client-Step-Name,DS-Request-ID,ENO_CSRF_TOKEN,SecurityToken,
DS-Change-Authoring-Context,DS-Configuration-Authoring-Context,OSLC-Core-Version,Authorization"
-
Restart the reverse proxy server.
-
Define an environment variable for the OAuth1 server URL.
Do one of the following, depending on your environment:
-
Open the Run MQL window:
-
From the compass, select Collaboration and
Approvals.
-
In the navigation pane, click .
To run an MQL command, enter the command in the
MQL Command box and click Run
or press Enter.
-
Run the one of the following
MQL
commands, depending on your environment.
Note:
If the OAuth1 provider service is not installed on the same
machine as 3DSpace server, copy the
OAuthService.tcl file to the 3DSpace server,
then run it from there.
Start and Stop the OAuth1 Server
A Business Administrator can start and stop the OAuth1 server
if required.
Before you begin: You must have already installed OAuth1 Control Center and
configured OAuth server information before starting the OAuth1 server.
-
To start the OAuth1 server, do one of the following, depending
on your environment:
Note:
Only start one instance of the OAuth server per installation
directory.
-
To stop the OAuth server, do one of the following, depending on
your environment:
Note:
Only start one instance of the OAuth server per installation
directory.
Uninstall and Reinstall the OAuth1 Server on Windows
On Windows, a Business Administrator must uninstall the OAuth
server using the Windows Control Panel before reinstalling it.
-
Stop the OAuth1 server.
-
Use the Windows
Control Panel to uninstall the
Dassault Systemes OAuth1 Provider app.
-
Manually clean up the logs and configuration files.
-
If required, run the Windows installer again to reinstall the
OAuth1 server.
The first time users try to create or edit information in the
ENOVIA app from the external applications consuming the services, they must log
in using their
3DPassport
credentials. Users will not be asked to log in again until the OAuth server is
restarted, causing the authentication token to expire.
|