# Using SAML SSO with OPS-COM ### What is Single Sign-On (SSO) Single Sign-On, or SSO, is a way to make it easier for your users to access OperationsCommander using your existing managed accounts. Your users will not have to remember a separate username and password and will instead login directly to your corporate service provider. ### Configuring SAML Setup
Important - You must first follow the instructions to setup login sources found [here](https://opscom.wiki/books/administrators/page/login-sources-sso).
The following is an example of a response from an external system to OPS-COM. In this case, it is a SimpleSAMLPhp service set up as the identity provider. At the bottom, are several attributes within an saml:AttributeStatement tag. These are required for our system to match to a user within our system. The one field that matters in this attribute section is the value being used as the permanently-unique identifier for a user. In this case it is "uid". Since "uid" is being sent back, then the setup for Identity Provider Fields should have "uid" as the Unique ID Field. If the unique ID is something else, such as SAMaccountName, then that should be used for the UniqueID.
```xml` `version``=``"1.0"``?>` ` ``<``samlp:Response` `xmlns:samlp``=``"urn:oasis:names:tc:SAML:2.0:protocol"` `xmlns:saml``=``"urn:oasis:names:tc:SAML:2.0:assertion"` `ID``=``"_aa1963115aa6490e728c7376f4c8849813bbb..."``>` ` ``...` ` ``<``saml:Assertion` `xmlns:xsi``=``"http://www.w3.org/2001/XMLSchema-instance"` `xmlns:xs``=``"http://www.w3.org/2001/XMLSchema"` `ID``=``"_9efd79bf6425983ee9176f3d33a99d1a9176180..."``>` ` ``...` ` ``<``saml:Subject``>` ` ``<``saml:NameID` `SPNameQualifier``=``"MinionOpsComStaff"` `Format``=``"urn:oasis:names:tc:SAML:2.0:nameid-format:transient"``>_7a426e0be71f14c1f349db00d7d543b6f7dcb52baa``saml:NameID``>` ` ``<``saml:SubjectConfirmation` `Method``=``"urn:oasis:names:tc:SAML:2.0:cm:bearer"``>` ` ``<``saml:SubjectConfirmationData` `NotOnOrAfter``=``"2021-08-24T16:00:41Z"` `Recipient``=``"https://minion-3.dev.parkadmin.com/auth/saml2/MinionOpsComStaff/acs"` `InResponseTo``=``"ONELOGIN_bb8a09203c888cf59af4c621a71cfa8f7559c016"``/>` ` ````saml:SubjectConfirmation``>` ` ````saml:Subject``>` ` ``<``saml:Conditions` `NotBefore``=``"2021-08-24T15:55:11Z"` `NotOnOrAfter``=``"2021-08-24T16:00:41Z"``>` ` ``<``saml:AudienceRestriction``>` ` ``<``saml:Audience``>MinionOpsComStaff``saml:Audience``>` ` ````saml:AudienceRestriction``>` ` ````saml:Conditions``>` ` ``<``saml:AuthnStatement` `AuthnInstant``=``"2021-08-24T15:34:46Z"` `SessionNotOnOrAfter``=``"2021-08-24T23:34:46Z"` `SessionIndex``=``"_a7a68666092117d24aab8adecf1b0830622855b85..."``>` ` ``<``saml:AuthnContext``>` ` ``<``saml:AuthnContextClassRef``>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport``saml:AuthnContextClassRef``>` ` ````saml:AuthnContext``>` ` ````saml:AuthnStatement``>` ` ``<``saml:AttributeStatement``>` ` ``<``saml:Attribute` `Name``=``"uid"` `NameFormat``=``"urn:oasis:names:tc:SAML:2.0:attrname-format:basic"``>` ` ``<``saml:AttributeValue` `xsi:type``=``"xs:string"``>6ddf4027-3397-4e45-8628-0189f60fe91e``saml:AttributeValue``>` ` ````saml:Attribute``>` ` ``<``saml:Attribute` `Name``=``"full name"` `NameFormat``=``"urn:oasis:names:tc:SAML:2.0:attrname-format:basic"``>` ` ``<``saml:AttributeValue` `xsi:type``=``"xs:string"``>Sarah Knowles``saml:AttributeValue``>` ` ````saml:Attribute``>` ` ``<``saml:Attribute` `Name``=``"email"` `NameFormat``=``"urn:oasis:names:tc:SAML:2.0:attrname-format:basic"``>` ` ``<``saml:AttributeValue` `xsi:type``=``"xs:string"``>sknowles@tomahawk.ca``saml:AttributeValue``>` ` ````saml:Attribute``>` ` ````saml:AttributeStatement``>` ` ````saml:Assertion``>` ` ````samlp:Response``>` |