Giter Site home page Giter Site logo

authsignal-php's Introduction

Authsignal Server PHP SDK

Check out our official PHP SDK documentation.

Installation

  1. Add Authsignal's library as a depependency in composer.json
"require": {
    ...
    "authsignal/authsignal-php" : "0.1.5"
    ...
}
  1. Run composer update.
  2. Now Authsignal will be autoloaded into your project.

Initialization

Initialize the Authsignal SDK, ensuring you do not hard code the Authsignal Secret Key, always keep this safe.

Authsignal::setApiKey('secretKey');

You can find your secretKey in the Authsignal Portal.

Region selection

Authsignal has multiple api hosting regions. To view your hostname for your tenant, find it in the Authsignal Portal.

Region Base URL
US (Oregon) https://signal.authsignal.com/v1
AU (Sydney) https://au.signal.authsignal.com/v1
EU (Dublin) https://eu.signal.authsignal.com/v1

You can set the hostname via the following code. If the setApiHostname function is not called, the api call defaults to the main Authsignal US region hostname https://signal.authsignal.com

An example setting the client to use the AU region.

Authsignal::setApiHostname("https://au.signal.authsignal.com");

Alternatively, an environment variable can be used to set the base URL:

AUTHSIGNAL_SERVER_API_ENDPOINT=https://au.signal.authsignal.com/v1

Usage

Authsignal's server side signal API has five main calls track, getAction, getUser, enrollVerifiedAuthenticator, verifyChallenge

For more details on these api calls, refer to our official PHP SDK docs.

License

The library is available as open source under the terms of the MIT License.

authsignal-php's People

Contributors

stevenclouston avatar justinsoong 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.