This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
2017-11-11 19:46:27 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
# go to https://auth.dataporten.no/
|
|
|
|
|
|
|
|
$dataportenConfig = [
|
|
|
|
'client_id' => "",
|
|
|
|
'client_secret' => "",
|
2017-11-11 22:08:24 +01:00
|
|
|
//'redirect_uri' => "https://pvv.ntnu.no/paamelding/",
|
|
|
|
'redirect_uri' => "http://localhost:1080/paamelding/",
|
2017-11-11 19:46:27 +01:00
|
|
|
'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' => "",
|
|
|
|
];
|