GithubHelp home page GithubHelp logo

isabella232 / aap-client-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from embl-ebi-tsi/aap-client-php

0.0 0.0 0.0 99 KB

AAP Token checking using PHP

License: Apache License 2.0

PHP 100.00%

aap-client-php's Introduction

image

Overview

Tools used to test that the owncloud plugin actually checks correctly what should be checked.

Cryptographic files here shouldn't be used in production, they're just for testing :)

Installing dependencies

Go to the project root and then

$ composer install

Usage

To show how claims afects the validity of a JWT token run:

$ php examples/ShowTokens.php

If, for some reason you also want to see the contents of the tokens, you can switch the $print variable to true.

To run the verification tests use phpunit like so:

$ phpunit tests/TokenTest

More validity checks can be done following the structure in src/Checker/PresentSubjectChecker.php and adding them in the function getClaimChecks() in src/Token/TokenTester.php.

More test tokens/claims can be added in src/Claim/ClaimFactory.php along with the expected result.

Including the library

In order to use this library add this git repository to composer.json, like so:

{
  "repositories": [
    {
      "type": "vcs",
      "url" : "[email protected]:EMBL-EBI-TSI/aap-client-php.git"
    }
  ],
  "require": {
    "ebi/jwt": "^v2.0.0"
  }
}

Compatibility

Versions v1.x.x are compatible with PHP 5.6, 7.0 and 7.1, v2.x.x with 7.1 and 7.2. This is due to breaking changes in 7.2 and the dependencies used.

aap-client-php's People

Contributors

psafont avatar

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.