Login with SAML2 SSO

hi allI created a project by logging in via the users table:
table : users
users : v 25
password : v25
name : v 100
I am very interested in logging in with sso. please let me know how to make login with SAML2 SSO.
thanks

I’m sorry, I don’t understand about connecting with sso, but I was asked to integrate my application phpmaker with sso. from my office I was given a configuration like this

<?php

$baseUrl = 'http://localhost:8000/';

return [
    'sp' => [
        'entityId' => 'testing', // silakan diganti dengan nama aplikasi anda
        'assertionConsumerService' => [
            'url' => $baseUrl.'saml-acs.php',
            'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
        ],
        'singleLogoutService' => [
            'url' => $baseUrl.'saml-sls.php',
            'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
        ],
        'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified',
    ],
    'idp' => [
        'entityId' => 'https://sso.xxx.ac.id/saml2/idp/metadata.php',
        'singleSignOnService' => [
            'url' => 'https://sso.uns.ac.id/saml2/idp/SSOService.php',
            'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
        ],
        'singleLogoutService' => [
            'url' => 'https://sso.xxx.ac.id/saml2/idp/SingleLogoutService.php',
            'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',

        ],
        'x509cert' => 'MxxFSDCCBDCgAwIBAgIRAOmg/xuJyTxxWdMbbVJL69NEwDQYJKoZIhvcNAQELBQAwgZAxCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoTEUNPTU9ETyBDQSBMaW1pdGVkMTYwNAYDVQQDEy1DT01PRE8gUlNBIERvbWFpbiBWYWxpZGF0aW9uIFNlY3VyZSBTZXJ2ZXIgQ0EwHhcNMTUwOTAzMDAwMDAwWhcNMTcwOTAyMjM1OTU5WjBXMSEwHwYDVQQLExhEb21haW4gQ29udHJvbCBWYWxpZGF0ZWQxHDAaBgN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jLmlkMA0GCSqGSIb3DQEBCwUAA4IBAQBuyEh0ZpADN7lYVCOSd9NiBZWX9OCfQYwjHC0UZVIAg8qoOMVC/2gumhx8E5qbrAjPgALhn3kGP7D53zU6Xvi0uM32KUVa+Qqgwkm1VTOQWZwxm0CR14sPXBvc3m7Fgz9u3I5G5KFkhNuZkTEV7GK+kCYHV6y2QHS4Qoh8+lVXlznvxmm/tEFmZsqQj/bQBGAi/07jfBbFkAxbqan2aINzTQLU9z/1T09bBHrUsa8JJbUYDUT3nOQ50DYmUDbHJGKyyAAFInoYbGhRWOoa+rzQWnA/ud3qO85pzAVv23umhOGQM8CuxCJpogrx7QZT3wmTB6gMJFKeMoSVncEf1efl',
    ],
];

what should I do next? then to get the username xxx and passw yyy is it obtained through the User_CustomValidate server event?
please guide.
thanks

You may need a PHP package for SAML 2.0, you better google “php saml 2.0” for more information.

hi allI’ve managed to connect the login form with sso without User_CustomValidate server event
but when I press logout in the application but I haven’t logged out from sso, and I will log in with sso, it turns out that sso is still logged in, so logout must open the url sso.instansi.com/logout.php

  1. how to do if pressing the logout button automatically also logout sso / automatically run sso.instansi.com/logout
  2. logout sso (sso.instansi.com/logout.php) but don’t log out of the system, can still open the menu in the application. what if after sso logout, the system should automatically detect sso login again?
    thanks

You may write your PHP code in User_LoggedOut server event that belongs to the Logout page in order to logout from your sso.

cantika wrote:

I’ve managed to connect the login form with sso without User_CustomValidate server event

Hi, can you show us the code you used ? This would help a lot.
Thanks in advance.
Ciao
Piero.

Yes, could you please share the code you used. I am just beginning this process and this would be extremely helpful.