Add dataporten config
This commit is contained in:
parent
689975f262
commit
1258b68ef0
|
@ -1,4 +1,5 @@
|
|||
/sql_config.php
|
||||
/dataporten_config.php
|
||||
*.sqlite
|
||||
/test.sql
|
||||
/vendor/
|
||||
|
|
4
dev.sh
4
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
|
||||
|
||||
|
|
|
@ -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' => "",
|
||||
];
|
Reference in New Issue