GithubHelp home page GithubHelp logo

simplesamlphp / simplesamlphp-module-adfs Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 5.0 226 KB

This module adds support for WS-Federation

License: GNU Lesser General Public License v2.1

PHP 98.37% JavaScript 0.25% Twig 1.37%

simplesamlphp-module-adfs's Introduction

simplesamlphp-module-adfs's People

Contributors

dependabot[bot] avatar pradtke avatar thijskh avatar tvdijen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplesamlphp-module-adfs's Issues

ADFS Post response should exit

When we've been testing v1.0.2 module we get a weird behavior where the ADFS module post a response AND shows an about "Code should never be reached". I believe this is because the response code below

private static function postResponse(string $url, string $wresult, string $wctx): void
{
$config = Configuration::getInstance();
$t = new Template($config, 'adfs:postResponse.twig');
$t->data['baseurlpath'] = Module::getModuleURL('adfs');
$t->data['url'] = $url;
$t->data['wresult'] = $wresult;
$t->data['wctx'] = $wctx;
$t->send();
}

is different from HTTP::submitPOSTData which calls exit(0) after running.

The ADFS response does not call exit() which results in code in prp.php to continue to run.

Adding exit() into ADFS class works fine in our test environment. I was looking to make a PR but I see master has moved to Symfony controller, which I'm not familiar with. I think this issue wouldn't exist in master since the controller is returning a streamed response.

Should we make a v1.0.3 that has a fix for this issue, and the cherry-picked mis-named file commit (a297351) and any other issues we uncover with our testing?

wrong filename javascript asset

In the module adfs when using the new ui ('usenewui' => true) the adfs module uses postResponse.js but the file is called modules/adfs/www/assets/js/postReponse.js.
Missing 's' between Re and ponse.js

Tested on version 1.8.5

Module is broken

I installed the module using composer, but it's pretty broken. Trying to display metadata just gives a: "Error 500", and when trying to authenticate it'll give this exception: "Template: Could not find template file [adfs:postResponse.twig]". I checked, and the template is present.
I'm running simplesamlphp v1.19.4, php version 7.4.3 and ubuntu 20.04LTS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.