Register mobile client
- Last UpdatedJun 04, 2024
- 2 minute read
Note: Ensure that command is one long string without any carriage returns. Any returns in the command will cause an error.
Parameters for Powershell commands for mobile client
An explanation of the parameters used in the Powershell commands for mobile client.
|
Parameter |
Description |
|---|---|
|
Id |
The Id should reflect the purpose of the client. For example, osmclientmobileprod or osmclientmobileuat. This is the value that the OSM installer will require. |
|
Name |
Must be equal to value for Id parameter. |
|
HostBase |
The machine/server name where PCS is installed. |
|
RedirectUris |
This is used to redirect after sign in.
|
|
PostLogoutRedirectUris |
This is a login page after signing out.
|
|
AccessTokenLifetime |
The validity time of the access token for AVEVA Identity Manager. The default value is 3600 seconds. This is the recommended value. |
|
IdentityTokenLifetime |
The validity time of the access token for AVEVA Identity Manager. The default value is 3600 seconds. This is the recommended value. |
To register mobile client with Add command
-
Open Windows PowerShell in Administrator mode.

-
Enter the command statement.
Add-IdentityManagerClient -HostBase "https://pcs_server_name.company.com" -Id osmclientmobileprod -Name osmclientmobileprod -Secret osmmobileclientsecret -PostLogoutRedirectUris "osm.mobile://callback/" -RedirectUris "osm.mobile://callback/" -ScopeRestrictions "openid","profile" -AllowedGrantTypes "authorizationcode" -AllowRememberConsent 0 -RequireConsent 0 -SkipLoggedOutPage 1 -AccessTokenLifetime 3600 -IdentityTokenLifetime 3600

The results should look like this.

-
Close PowerShell by exit.
-
Restart the AVEVA Identity Manager service.
