Make granttype configurable
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
parent
f71d96be6e
commit
1a0e0b13e7
@ -37,6 +37,9 @@ export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthS
|
||||
}).then(() => {
|
||||
let router = injector.get(Router);
|
||||
if (!oauthService.hasValidAccessToken()) {
|
||||
if(appConfig.getConfig("grantType") == "code")
|
||||
oauthService.initCodeFlow(urlPath);
|
||||
else
|
||||
oauthService.initImplicitFlow(urlPath);
|
||||
} else {
|
||||
router.navigateByUrl(urlPath);
|
||||
|
@ -3,6 +3,7 @@
|
||||
"clientId": "farmmaps",
|
||||
"audience": "http://farmmaps.awtest.nl/",
|
||||
"requireHttps": false,
|
||||
"apiEndPoint": "http://farmmaps.awtest.nl"
|
||||
"apiEndPoint": "http://farmmaps.awtest.nl",
|
||||
"grantType":"implicit"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user