From 8515052e1a6de2de56effbc61c73d3aa80169a93 Mon Sep 17 00:00:00 2001
From: Aijana Schumann <aijana.schumann@highstreet-technologies.com>
Date: Mon, 15 Feb 2021 18:22:28 +0100
Subject: Add OAuth support to odlux

Extend odlux to support oauth, support external login provider for sign-in

Issue-ID: CCSDK-3167
Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com>
Change-Id: Id5772e0026fa7ebda22c41c2620a7868598f41aa
---
 sdnr/wt/odlux/framework/src/views/frame.tsx | 40 ++++++++++++++---------------
 1 file changed, 20 insertions(+), 20 deletions(-)

(limited to 'sdnr/wt/odlux/framework/src/views/frame.tsx')

diff --git a/sdnr/wt/odlux/framework/src/views/frame.tsx b/sdnr/wt/odlux/framework/src/views/frame.tsx
index c8e24fdb9..b4cc43e0b 100644
--- a/sdnr/wt/odlux/framework/src/views/frame.tsx
+++ b/sdnr/wt/odlux/framework/src/views/frame.tsx
@@ -80,32 +80,32 @@ class FrameComponent extends React.Component<FrameProps>{
                 }
                 <Switch>
                     <Route exact path="/" component={() => (
-                    <AppFrame title={"Home"} icon={faHome} >
-                        <Home />
-                    </AppFrame>
+                      <AppFrame title={"Home"} icon={faHome} >
+                          <Home />
+                      </AppFrame>
                     )} />
                     <Route path="/about" component={() => (
-                    <AppFrame title={"About"} icon={faAddressBook} >
-                        <About />
-                    </AppFrame>
+                      <AppFrame title={"About"} icon={faAddressBook} >
+                          <About />
+                      </AppFrame>
                     )} />
                     {process.env.NODE_ENV === "development" ? <Route path="/test" component={() => (
-                    <AppFrame title={"Test"} icon={faAddressBook} >
-                        <Test />
-                    </AppFrame>
+                      <AppFrame title={"Test"} icon={faAddressBook} >
+                          <Test />
+                      </AppFrame>
                     )} /> : null}
                     <Route path="/login" component={() => (
-                    <AppFrame title={"Login"} icon={faSignInAlt} >
-                        <Login />
-                    </AppFrame>
-                    )} />
-                    {Object.keys(registrations).map(p => {
-                    const application = registrations[p];
-                    return (<Route key={application.name} path={application.path || `/${application.name}`} component={() => (
-                        <AppFrame title={application.title || (typeof application.menuEntry === 'string' && application.menuEntry) || application.name} icon={application.icon} appId={application.name} >
-                        <application.rootComponent />
-                        </AppFrame>
-                    )} />)
+                      <AppFrame title={"Login"} icon={faSignInAlt} >
+                          <Login />
+                      </AppFrame>
+                      )} />
+                    { Object.keys(registrations).map(p => {
+                      const application = registrations[p];
+                      return (<Route key={application.name} path={application.path || `/${application.name}`} component={() => (
+                          <AppFrame title={application.title || (typeof application.menuEntry === 'string' && application.menuEntry) || application.name} icon={application.icon} appId={application.name} >
+                          <application.rootComponent />
+                          </AppFrame>
+                      )} />)
                     })}
                     <Redirect to="/" />
                 </Switch>
-- 
cgit 1.2.3-korg

