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:
@@ -37,7 +37,10 @@ export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthS
|
||||
}).then(() => {
|
||||
let router = injector.get(Router);
|
||||
if (!oauthService.hasValidAccessToken()) {
|
||||
oauthService.initImplicitFlow(urlPath);
|
||||
if(appConfig.getConfig("grantType") == "code")
|
||||
oauthService.initCodeFlow(urlPath);
|
||||
else
|
||||
oauthService.initImplicitFlow(urlPath);
|
||||
} else {
|
||||
router.navigateByUrl(urlPath);
|
||||
}
|
||||
|
Reference in New Issue
Block a user