Giter VIP home page Giter VIP logo

afp-core's People

Contributors

eheine avatar esc avatar mseiwald avatar programmieramt avatar sneben avatar snordhausen avatar thoeynck avatar tvollmer-at-is24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

afp-core's Issues

AFP throws "silent" 500 errors

When throwing an HTTP 500 error, afp is silent about the reason the error is thrown. This makes it hard to debug problems when needed.

See (internal) PRO-17434

Please find a way to make those errors more verbose, so that clients are able to display a "human readable" error message.

No accounts found. You have no attached accounts.

we are using afp-core as STS for our company to login into the AWS Console. The setup was built with puppet and the afp was deployed automatically which everything is fine.

From time to time we observed that someone got the error message "No accounts found. You have no attached accounts." even he entered the corrected password and the username was already configured properly.

The error message is not easy to reproducible, for example i tried 2 hours today and it doesn't come, but yesterday twice.

We setup afp-core + apache + sssd as the description.

an investigation in the source code i found that the function getAccountList return Errormessage but didn't understand why the login is working, it still return the Error Message

afp-web/js/service/userMessageService.js

` function getAccountList(callback) {
var error = {};

  $http.get(appVars.afpApiEndpoint + "account")
    .success(function (response, status, headers) {
      callback(null, getLoginstatus(headers), createAccountArray(response));
    })
    .error(function (response, status, headers) {
      error.message = getErrorMessage(status, response);
      callback(error, getLoginstatus(headers));
    });
}

return {
  getLoginstatus: getLoginstatus,
  getErrorMessage: getErrorMessage,
  getAccountList: getAccountList
};`

afp-web/js/controller/AccountlistController.js

` userMessageService.getAccountList(function (err, loginstatus, accounts) {
$scope.loginstatus = loginstatus;

  if (err) {
    $scope.error = err.message;
    $scope.showError = true;

    return;
  }

  $scope.favoriteCount = favouritesService.readFavorites(accounts);
  $scope.accounts = accounts;
  $scope.showError = false;
  focusQueryInput();
});`

afp-web/templates/resultlist.html

`<div class="align-center" ng-show="accounts.length == 0">
     <div class="alert alert-info" role="alert" >
        <b>No accounts found.</b>
             You have no attached accounts.
    </div>
 </div>`

sssd_provider.py only available as example

With regard to the issue #6 I saw the sssd_provider in the examples. Is there any reason why the sssd_provider is only available as example? The sssd_provider fixed the issue #6 for our site.

I'd be grateful if you could add the sssd_provider as official provider.

Rename IS24 specific classes to IS24 specific name

Some classes (e.g. provider_by_ip.py) contain IS24 specific code.

That makes it very difficult to see the generic parts of AFP in contrast to the IS24 specific parts.

For other users it would be much easier to adapt AFP to their use cases if all IS24 specific implementations would be clearly marked as such.

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.