shibboleth | Adds Shibboleth authentication to MODX Revolution | Authentication library

 by   electrickite PHP Version: Current License: GPL-2.0

kandi X-RAY | shibboleth Summary

kandi X-RAY | shibboleth Summary

shibboleth is a PHP library typically used in Security, Authentication applications. shibboleth has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

This extra assumes that Shibboleth has been enabled in [passive or "lazy session" mode][2] for the root directory (containing index.php) of the MODX site. In a typical setup, the following directives should be added to the .htaccess file in the MODX root folder, after the RewriteBase directive. Note that these settings will not protect any files or resources present in the file system. For access controlled downloads, appropriate Shibboleth directives will need to be placed in the .htaccess file for the directory that contains the files to be protected.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              shibboleth has a low active ecosystem.
              It has 4 star(s) with 0 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 3 have been closed. On average issues are closed in 128 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of shibboleth is current.

            kandi-Quality Quality

              shibboleth has no bugs reported.

            kandi-Security Security

              shibboleth has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              shibboleth is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              shibboleth releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed shibboleth and discovered the below as its top functions. This is intended to give you an instant insight into shibboleth implemented functionality, and help decide if they suit your requirements.
            • Do the login .
            • Finds the rules in the cache
            • Alters a URL parameter
            • Returns URL of the script handler .
            • Set the Shibboleth user
            • Check user s authorization rules
            • Sets the rules
            • Set the event output
            • Fix the working environment
            • Determine if the user is authenticated .
            Get all kandi verified functions for this library.

            shibboleth Key Features

            No Key Features are available at this moment for shibboleth.

            shibboleth Examples and Code Snippets

            No Code Snippets are available at this moment for shibboleth.

            Community Discussions

            QUESTION

            400 Bad Request You're speaking plain HTTP to an SSL-enabled server port kubernetes pod
            Asked 2021-Apr-18 at 18:31

            I am getting the error "400 Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please."

            What I am trying to achieve is :

            1.Docker Run Docker Image which is using apache2 and Shibboleth both are running on port http(8090) & https(8443) respectively with self signed certificate. Running the image locally using the docker run it is working fine. http://localhost:8090/ ----> working fine https://localhost:8443/Shibboleth.sso/Status ----> giving cert error but after accept and ignore working fine. (Shibboleth service which is being accessed via apache2 000-default.conf ProxyPass /Shibboleth.sso/ https://localhost:8443/Shibboleth.sso/Status)

            1. Kubernetes Platform Below are the deployment,Service and Ingress created to access the same image.
            ...

            ANSWER

            Answered 2021-Apr-18 at 18:31

            Can you please try adding this annotation to your ingress file?

            Source https://stackoverflow.com/questions/67151948

            QUESTION

            Multiple attribute-resolver.xml for different SPs
            Asked 2021-Apr-09 at 06:21

            I have different SPs that use my IDP Shibboleth, but for each of them I want to send different attributes in the SAML response.

            Is there a way to achieve this? Maybe use different attribute-resolver files, or maybe the same one but with some configuration on the AttributeDefinition that I can set so that shibboleth knows what values to resolve?

            I haven't found anything regarding this on their wiki.

            ...

            ANSWER

            Answered 2021-Apr-09 at 06:21

            I would suggest you look into the topic of attribute mapping. With this, you can define filters on your Service Providers. Collect all attributes you need for all SPs on your IDP and then filter the ones you need on your Service Provider.

            Example: SP 1 needs an attribute called email_1 and SP 2 needs email_2. Then your attribute-resolver.xml might look something like this:

            Source https://stackoverflow.com/questions/66339644

            QUESTION

            No scripting engine associated with scripting language JavaScript
            Asked 2021-Mar-16 at 13:39

            I am installing Shibboleth IDP on a CentOS 7 server. I installed JDK 15.0.2 and Tomcat 9.0.44

            Java version is:

            ...

            ANSWER

            Answered 2021-Mar-16 at 13:39

            Java 15 and later no longer includes a bundled JavaScript engine.

            The simplest way to deal with this is to use an earlier version of Java. Note that the Shibboleth project only formally supports Long Term Support releases of Java, which for IdP V4.0.1 means Java 11.

            Another commenter notes that you can add a separate JavaScript engine to your classpath if you really need to use the latest Java and the current IdP version, but it's not a supported configuration.

            Going forward, the Shibbleth IdP 4.1 release (which is coming out very soon now) has a plug-in mechanism to help support this use case, but using Java 11 will still be the simplest approach.

            The complete System Requirements documentation for the current version of the Shibboleth IdP is here: https://wiki.shibboleth.net/confluence/display/IDP4/SystemRequirements

            Source https://stackoverflow.com/questions/66653798

            QUESTION

            Apache authorization using require dbd-group from SQL Server database
            Asked 2021-Feb-05 at 23:13

            I have an app running behind a reverse proxy on Apache 2.4.6 on CentOS 7. I am doing authentication using Shibboleth and am currently doing authorization via a whitelist using AuthGroupFile /path/to/authfile and Require group authGroup. This currently works with my setup. I'm trying to change this process to do authorization against a whitelist stored in a SQL Server database, and this is proving to be difficult.

            Currently in conf.d/shib.conf I have the following:

            ...

            ANSWER

            Answered 2021-Feb-05 at 23:13

            For anyone that has a similar issue, I was finally able to solve the problem myself.

            My Apache Version was 2.4.6 but the most recent RHEL Version, httpd-2.4.6-97.el7.centos I believe. Looking at the Change Log for apache 2.4 (https://www.apachelounge.com/Changelog-2.4.html) most of the mod_authz_dbd changes were included in the CentOS version except for the one integrated in Apache 2.4.17 entitled

            Source https://stackoverflow.com/questions/65945922

            QUESTION

            The type 'System.IdentityModel.Tokens.Saml2SecurityTokenHandler, System.IdentityModel' cannot be resolved
            Asked 2020-Nov-17 at 11:10

            I'm baffled with this error. I've looked everywhere and googled everything I know.

            I'm updating an application from dotnet 4.5.3 to dotnet 4.8. The setup hasn't changed dramatically, this identity config has not changed in a long time. The updated code runs good in the development and test environments. Now it's time to update the qa environment. There are new servers for this upgrade. All run the same version of Windows 10 (just the latest). I have installed dotnet 4.8 on all of them. I have verified that the System.IdentityModel.dll is present in the GAC. (I even decompiled the assembly and verified that this class is present in it.) I have verified that the dll is referenced in my .csproj file.

            Yet, when I start the website, this is the error that greets me.

            Let me repeat that this same code works fine in development and test environments, yet the same build fails in the qa environment. This is the configuration causing the problem.

            ...

            ANSWER

            Answered 2020-Nov-17 at 11:10

            The answer to the problem is to set Copy Local in the assembly dependencies to true.

            Not sure why this assembly can't be found. It's blowing my mind. After spending +3 days looking for it, I'm calling it quits as this solution works.

            Source https://stackoverflow.com/questions/64822432

            QUESTION

            Why does Liferay prefix password with algorithm name?
            Asked 2020-Nov-12 at 11:07

            I looked at the User_ table in liferay and every new password has a prefix of:

            {SHA-256}

            I am trying to set up a Shibboleth IDP to use the User_ table to authenticate like this:

            ShibUserPassAuth { relationalLogin.DBLogin required debug=true dbDriver="com.mysql.jdbc.Driver" userTable="User_" userColumn="emailAddress" passColumn="password_" dbURL="jdbc:mysql://mysql:3306/lportal" dbUser="root" dbPassword="password" hashAlgorithm="SHA-256"; };

            However my authentication fails because the password does not match. If I go into the database an manually update the password, then it works.

            Any ideas how I can work around this by getting Liferay to not set this prefix or getting Shibboleth to look for this prefix?

            ...

            ANSWER

            Answered 2020-Nov-12 at 11:07

            The answer to your question in the title probably is "because Liferay's history and upgrade compatibility". I guess they didn't want to alter the User_ table's schema, but needed a way to mark the hashing algorithm.

            I don't have the answer to your actual question, but two ideas:

            I found an old discussion that leads me to believe that you could write a query template for the Shibboleth DB connection (example copied from the linked discussion for longievity):

            Source https://stackoverflow.com/questions/64778258

            QUESTION

            opensaml::BindingException when logging out of a Shibboleth Service Provider with Azure ActiveDirectory as IdP
            Asked 2020-Sep-30 at 19:33

            When users click logout, I'm redirecting them to "/Shibboleth.sso/Logout"
            This successfully brings them to the Microsoft logout page, then they get redirected back to the SP.
            However, as they return to the SP they get a SOAP error message.

            ...

            ANSWER

            Answered 2020-Sep-30 at 19:33

            When configuring the SP on Azure, I uploaded the metadata as-is.
            This populated the fields on Azure, and things mostly worked.
            However, it pulled the logout url as the first entry from the metadata:

            Source https://stackoverflow.com/questions/64144428

            QUESTION

            Spring security OAuth redirect endpoint not found
            Asked 2020-Sep-26 at 07:31

            I have added Spring Security to an existing JEE application to add OAuth to the application. The security configuration is set to protect the REST API, and that part seems to work fine. When the UI requests a protected URL, the response contains a redirect to 'oauth2/authorize/keycloak'.

            But that's where the story ends, since the request to 'oauth2/authorize/keycloak' itself returns a 404.

            I am pretty out of date with spring security (have used it the last time with Spring applications about 8 years ago) and I have no idea where I am supposed to find the implementation of the endpoint 'oauth2/authorize/keycloak' in order to figure out what is missing or wrong in my setup.

            The relevant part of my dependency tree looks as follows:

            ...

            ANSWER

            Answered 2020-Sep-26 at 07:31

            By default, the OAuth 2.0 Login Page is auto-generated by the DefaultLoginPageGeneratingFilter.
            The login page for a client defaults to this: OAuth2AuthorizationRequestRedirectFilter.DEFAULT_AUTHORIZATION_REQUEST_BASE_URI + "/{registrationId}". As per your configuration, registrationId: "keycloak", this means (/oauth2/authorization/keycloak).

            Please check your WebSecurityConfigurerAdapter configuration. Try to override the default login page by configuring oauth2Login().loginPage() and (optionally) oauth2Login().authorizationEndpoint().baseUri().

            The following listing shows an example:

            Source https://stackoverflow.com/questions/64062893

            QUESTION

            Shibboleth SP logout does not redirect to my correct server URL
            Asked 2020-Sep-17 at 07:20

            I have recently configured Shibboleth Service Provider for my IIS web server and Microsoft Azure. The authentication works like a charm but I do have some problems getting Azure or Shibboleth to redirect to my correct local logout page.

            To be honest then I am not 100% sure how the logout mechanism works but from my web page I am calling this logout:

            https://my.webserver.xyz/Shibboleth.sso/Logout

            This will in fact log me off from Azure on my application but my problem is that it will show this standard Shibboleth logout page after logoff:

            ...

            ANSWER

            Answered 2020-Sep-09 at 05:17

            I will answer the question myself as there have been no other solutions propossed and this seems to work for me.

            I have found the problem with this as it seemed to be myself being too impatient ;-) I think I may have tested the logout functionality too soon after the configuration changes in Azure as Azure needs some time before the changes get effectuated.

            I have now found out that when I have this Logout URL configured in Azure https://my.webserver.xyz/Shibboleth.sso/Logout then it redirects me back to the above standard Shibboleth /etc/localLogout.html logout page.

            When I configure the Azure Logout URL to be https://my.webserver.xyz/Shibboleth.sso/Logout?return=https://my.webserver.xyz/loggedout/ then it actually will redirect directly back to this page from Azure.

            It is not required to redirect back to the same URL as the one configured in Azure - you can just have a link on your web page like this https://my.webserver.xyz/Shibboleth.sso/Logout?return=https://my.webserver.xyz/test-123/ and it will redirect back to this after logout.

            Morale here - be a little more patient and allow for some Azure synchronization time before rushing out and doing a lot of configuration changes :-)

            Source https://stackoverflow.com/questions/63340324

            QUESTION

            Extracting values from Strings with seemingly no uniform delimiters
            Asked 2020-Sep-10 at 07:18

            I have a log file with lines of strings similar to this

            ...

            ANSWER

            Answered 2020-Sep-09 at 06:40
            def extract_from_log(log_line, label):
              if label[-1] != '=':
                label += '='
              start = log_line.index(label)
              end = log_line.index('#', start + len(label))
              return log_line[start + len(label): end]
            
            print(extract_from_log(log_line, 'TS'))
            print(extract_from_log(log_line, 'USERID'))
            

            Source https://stackoverflow.com/questions/63805800

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install shibboleth

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            The MODX Shibboleth extra is [hosted on GitHub][4]. Ideas for improvements? Bug reports? Please open an issue in the project’s issue queue.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/electrickite/shibboleth.git

          • CLI

            gh repo clone electrickite/shibboleth

          • sshUrl

            git@github.com:electrickite/shibboleth.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Authentication Libraries

            supabase

            by supabase

            iosched

            by google

            monica

            by monicahq

            authelia

            by authelia

            hydra

            by ory

            Try Top Libraries by electrickite

            batsignal

            by electrickiteC

            luks-tpm2

            by electrickiteShell

            mkinitcpio-tpm2-encrypt

            by electrickiteShell

            pacpro

            by electrickitePHP

            luks-tpm

            by electrickiteShell