trustedlogin / trustedlogin-vendor

Plugin to interact with TrustedLogin's encrypted storage infrastructure to redirect support staff into an authenticated session on client installations.
GNU General Public License v3.0
0 stars 1 forks source link

Add filters to the API endpoints so they can be directed for development #5

Closed shawnhooper closed 4 years ago

shawnhooper commented 5 years ago

These endpoints should be able to be redirected to another server, whether it's a staging environment, or local. Implement a WordPress filter.

switch ($this->type) {
            case 'saas':
                $this->api_url = 'https://app.trustedlogin.com/api/' . self::saas_api_version . '/';
                $this->auth_header_type = 'Authorization';
                break;
            case 'vault':
                $this->api_url = 'https://vault.trustedlogin.com/' . self::vault_api_version . '/';
                $this->auth_header_type = 'X-Vault-Token';
                break;
        }
inztinkt commented 4 years ago

closing as there's no longer 2 APIs and it was already done