Add dataporten config

This commit is contained in:
Peder Bergebakken Sundt 2017-11-11 19:46:27 +01:00
parent 689975f262
commit 1258b68ef0
3 changed files with 24 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/sql_config.php
/dataporten_config.php
*.sqlite
/test.sql
/vendor/

4
dev.sh
View File

@ -1,7 +1,9 @@
#!/bin/sh
which sqlite3 > /dev/null 2>&1 && test \! -e pvv.sqlite && sqlite3 pvv.sqlite < dist/pvv.sql
test \! -e sql_config.php && cp dist/sql_config_example.php sql_config.php
test \! -e sql_config.php && cp -v dist/sql_config_example.php sql_config.php
test \! -e dataporten_config.php && cp -v dist/dataporten_config.php dataporten_config.php
test -e composer.phar || curl -O https://getcomposer.org/composer.phar

20
dist/dataporten_config.php vendored Normal file
View File

@ -0,0 +1,20 @@
<?php
# go to https://auth.dataporten.no/
$dataportenConfig = [
'client_id' => "",
'client_secret' => "",
'redirect_uri' => "",
'auth' => "https://auth.dataporten.no/oauth/authorization",#Authorization endpoint
'token' => "https://auth.dataporten.no/oauth/token",#Token endpoint
/* OPTIONAL */
# 'authorization_type' => "Bearer",
# 'session' => false,
# 'verify' => 1,
# 'grant_type' => "authorization_code",
# 'response_type' => "code",
# 'scope' => "",
];