berthott / laravel-tableau-direct-trust-token
A Laravel Tableau Direct Trust Token generator
3.0.1
2024-12-17 11:54 UTC
Requires
- firebase/php-jwt: ^6.10
- paragonie/sodium_compat: ^2.1
- ramsey/uuid: ^4.7
Requires (Dev)
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2025-02-17 12:30:18 UTC
README
Laravel-Tableau-Direct-Trust-Token
Create an API Token for a Tableau Cloud Direct Trust integration.
Requirements
For a Direct Trust connection to Tableau Cloud it is necessary to configure Direct Trust within Tableau.
Installation
$ composer require berthott/laravel-tableau-direct-trust-token
Usage
This package registers a tableau\token
POST route that can be used to obtain a token, that can be used to connect to Tableau Cloud via Direct Trust.
To generate the correct token you need to provide the Config Information and an optional user
body parameter to alter the desired username with witch you want to authenticate with Tableau.
Options
To provide the config options use
$ php artisan vendor:publish --provider="berthott\Tableau\TableauDirectTrustTokenProvider" --tag="config"
defaultUser
: the default username with witch you want to authenticate with Tableau. Defaults toenv('TABLEAU_DEFAULT_USER')
secret
: the Tableau secret. Defaults toenv('TABLEAU_SECRET')
secretId
: the Tableau secretId. Defaults toenv('TABLEAU_SECRET_ID')
clientId
: the Tableau clientId. Defaults toenv('TABLEAU_CLIENT_ID')
prefix
: Defines the route prefix. Defaults toapi
.middleware
: An array of all middlewares to be applied to all of the generated routes. Defaults to[]
.
Compatibility
Tested with Laravel 10.x.
License
See License File. Copyright © 2024 Jan Bladt.