necto 16 training 21 - single sign on

12
Necto 16 Training Necto SDK and Single Sign-on

Upload: panorama-software

Post on 13-Apr-2017

11 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Necto 16 training 21 -  single sign on

Necto 16 Training Necto SDK and Single Sign-on

Page 2: Necto 16 training 21 -  single sign on

Objectives

• By the end of this lesson you will be able to:• Use the Necto SDK• Know what Single Sign On (SSO) is for Necto• Create or modify an SSO file (database if needed).• Debug C# and ASPX files

Page 3: Necto 16 training 21 -  single sign on

Agenda

• Where is the SDK and how can I use it?• Getting Microsoft Community 2015 (Free Tool)• Implementing SSO• Debugging SSO

Page 4: Necto 16 training 21 -  single sign on

Overview

• To allow Necto to be used within your corporate portal or other wrapper you can utilize SSO• SSO is called using a URL from your portal/wrapper to

call a Necto aspx page• To edit and debug the aspx page you will require

• Microsoft Community 2015 or other debugging tool• Medium level knowledge of C# and JavaScript• IIS debugging knowledge

Page 5: Necto 16 training 21 -  single sign on

Necto SDK

• The Necto SDK can be found here:• http://<yourservername>:4444/panorama/api/Necto_SDK.htm

• SDK can be used to feed information in to Necto through Necto.htm or through other files in component mode such as .aspx files• Call SDK files using URL’s, with additional parameters

• http://<yourservername>:4444/panorama/novaview. UserLoginDB2.aspx?user_name=a1&password=1234

Page 6: Necto 16 training 21 -  single sign on

SDK Rendering Parameters

• Alias, the unique Id of a Workboard• Slicers, sliceing security that can be performed• User, If current user is admin you can impersonate, or

load as a specific user with an ASID• Security mode, Windows, Mixed, Necto, None• Language defined as he, en, it• Show, features such as BOOKS, USERS_BAR• TaskPane, pane to show on start i.e. WORKBOARDS• FirstWB, first WB to show• Menus, Show or hide menu’s by ID• Settings, Skin file name

Page 7: Necto 16 training 21 -  single sign on

Implementing SSO

• Necto is installed to be able to work with SSO• Create an *.aspx file in the ‘…\Panorama\E-BI\

Novaview’ folder• Novaview is an Application within the IIS system• The file can be called and executed from a URL to run

Necto following the SDK and the example files I will provide• Necto can take the parameters from the calling

program but also get more from a database

Page 8: Necto 16 training 21 -  single sign on

Getting Microsoft Community 2015

• Got to https://www.visualstudio.com/• You can get the full developer suite here for free, so

that you can code, attach to a process and debug a web app• Download install and restart your machine…

Page 9: Necto 16 training 21 -  single sign on

Debugging an IIS application

• Open Visual Studio 2015 using ‘run as Administrator’• Got to File -> Open -> Web Site

• Select Local IIS• Choose Novaview (it is an application in the tree) which the

wizard will see as http://localhost/Panorama/Novaview• Press ‘Open’

• Go to Debug -> Novaview Properties• Choose ‘Start Options’ then in ‘Specific Page’ enter similar to

the following• UserLoginDB2.aspx?user_name=a1&password=1234

• Press Start to start debugging

Page 10: Necto 16 training 21 -  single sign on

Work through Exercise

• Add this file to the Necto server

• Debug change the password for the database• string connectionString = "server=vpc-james2\\

olap;database=Data security;uid=datasecuritylogin;pwd=MyPassword;connection timeout=30";

• Change the first Workboard to a real Workboard in your system• AttachParameter('FirstWB','b5829046-4137-46d1-9378-

f5ad56ed92d7');

UserLoginDB2.aspx

Page 11: Necto 16 training 21 -  single sign on

Work through Exercise

• Create a database called ‘Data Security’ and create a table called ‘Sheet1$’ and columns similar to the following:

• Debug using the steps in the previous slides

Page 12: Necto 16 training 21 -  single sign on

Thank you, any questions?