From 1258b68ef0478891f77106967a32417193bcfd47 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 11 Nov 2017 19:46:27 +0100 Subject: [PATCH] Add dataporten config --- .gitignore | 1 + dev.sh | 4 +++- dist/dataporten_config.php | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 dist/dataporten_config.php diff --git a/.gitignore b/.gitignore index 0fbf257..f136e0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /sql_config.php +/dataporten_config.php *.sqlite /test.sql /vendor/ diff --git a/dev.sh b/dev.sh index d72cde1..15ae023 100755 --- a/dev.sh +++ b/dev.sh @@ -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 diff --git a/dist/dataporten_config.php b/dist/dataporten_config.php new file mode 100644 index 0000000..1a280eb --- /dev/null +++ b/dist/dataporten_config.php @@ -0,0 +1,20 @@ + "", + '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' => "", +];