Steps to Enable SSO for the W Energy application (on-prem)
In Azure, set
Identifier (Entity ID)to the W-energy app domain.Example: client.wenergysoftware.com
Set the Reply URL to the W app sign-in URL.
On the W app server, there should be a
idp.yml.samplefile in/srv/www/apps/revenue_accounting/config. Copy this file and name itidp.yml.edit idp.yml and make these changes:
set the first line to
production(from development)set the
assertion_consumer_service_urlto your W-energy app login URLset
issuerto the W-Energy app domainexample: client.wenergysoftware.com
Set
idp_sso_target_urlto URL in the Metadata XML section under SingleSignOnServicereplace the certificate with one provided by Azure
Edit
/etc/revenue_accounting/config.ymland add top-level config:- CODE
authentication_mode: saml
Create
/srv/www/apps/revenue_accounting/config/attribute-map.ymlwith the following contents. note: this maps the email from the SAML request to the user’s email in the W app.- CODE
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress": "email"
Restart services
Additional notes:
To troubleshoot SSO issues, you could enable verbose SSO logging by editing /etc/revenue_accounting/config.yml and under the features block add:
sso_verbose_logging: true
This will then log SSO activity to the production log in /srv/www/apps/revenue_accounting/log/
If you need additional assistance, please log a support ticket through the Customer Portal.
https://wenergysoftware.atlassian.net/servicedesk/customer/portal/5
If you do not have a portal account, please reach out to support@wenergysoftware.com and we’ll get one created for you. Thank you!