├── .gitattributes
├── LICENSE
├── README.md
├── _config.yml
└── sso-connector
├── ACS.aspx
├── ACS.aspx.cs
├── ACS.aspx.designer.cs
├── Constants.cs
├── InvalidDataException.cs
├── MetaData.aspx
├── MetaData.aspx.cs
├── MetaData.aspx.designer.cs
├── Properties
└── AssemblyInfo.cs
├── Saml.cs
├── Scripts
├── bootstrap.js
├── bootstrap.min.js
├── jquery-1.9.1.intellisense.js
├── jquery-1.9.1.js
├── jquery-1.9.1.min.js
└── jquery-1.9.1.min.map
├── Web.Debug.config
├── Web.Release.config
├── Web.config
├── WebForm1.aspx
├── WebForm1.aspx.cs
├── WebForm1.aspx.designer.cs
├── WebForm2.aspx
├── WebForm2.aspx.cs
├── WebForm2.aspx.designer.cs
├── _header.Master
├── _header.Master.cs
├── _header.Master.designer.cs
├── bin
├── WebApplication1.dll
├── WebApplication1.dll.config
└── WebApplication1.pdb
├── ciphertext.cs
├── config.ini
├── css
├── bootstrap-theme.css
├── bootstrap-theme.css.map
├── bootstrap-theme.min.css
├── bootstrap-theme.min.css.map
├── bootstrap.css
├── bootstrap.css.map
├── bootstrap.min.css
├── bootstrap.min.css.map
└── main.css
├── example
└── sso.aspx
├── fonts
├── glyphicons-halflings-regular.eot
├── glyphicons-halflings-regular.svg
├── glyphicons-halflings-regular.ttf
├── glyphicons-halflings-regular.woff
└── glyphicons-halflings-regular.woff2
├── how_to_setup.aspx
├── how_to_setup.aspx.cs
├── how_to_setup.aspx.designer.cs
├── image
├── add_app.png
├── alias.png
├── atrrbute.png
├── control.png
├── idp_set.png
├── loginsetup.png
├── logo-home.png
├── logo_large.png
├── logsetup.png
├── miniorange.png
├── right.png
├── savetest.png
├── setup_4.png
├── signup.png
├── sp_set.png
└── wrong.png
├── include
├── css
│ └── main.css
└── js
│ ├── bootstrap.min.js
│ ├── jquery-3.2.1.min.js
│ ├── main.js
│ ├── plugins
│ ├── bootstrap-datepicker.min.js
│ ├── bootstrap-notify.min.js
│ ├── chart.js
│ ├── dataTables.bootstrap.min.js
│ ├── fullcalendar.min.js
│ ├── jquery-ui.custom.min.js
│ ├── jquery.dataTables.min.js
│ ├── jquery.vmap.min.js
│ ├── jquery.vmap.sampledata.js
│ ├── jquery.vmap.world.js
│ ├── moment.min.js
│ ├── pace.min.js
│ ├── select2.min.js
│ └── sweetalert.min.js
│ └── popper.min.js
├── login_page.aspx
├── login_page.aspx.cs
├── login_page.aspx.designer.cs
├── loginsetup.aspx
├── loginsetup.aspx.cs
├── loginsetup.aspx.designer.cs
├── logout.aspx
├── logout.aspx.cs
├── logout.aspx.designer.cs
├── obj
└── Debug
│ ├── DesignTimeResolveAssemblyReferences.cache
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── WebApplication1.csproj.FileListAbsolute.txt
│ ├── WebApplication1.dll
│ ├── WebApplication1.pdb
│ ├── saml.csproj.CoreCompileInputs.cache
│ ├── saml.csproj.FileListAbsolute.txt
│ └── saml.csprojAssemblyReference.cache
├── packages.config
├── packages
├── bootstrap.3.3.7
│ ├── bootstrap.3.3.7.nupkg
│ └── content
│ │ ├── Content
│ │ ├── bootstrap-theme.css
│ │ ├── bootstrap-theme.css.map
│ │ ├── bootstrap-theme.min.css
│ │ ├── bootstrap-theme.min.css.map
│ │ ├── bootstrap.css
│ │ ├── bootstrap.css.map
│ │ ├── bootstrap.min.css
│ │ └── bootstrap.min.css.map
│ │ ├── Scripts
│ │ ├── bootstrap.js
│ │ └── bootstrap.min.js
│ │ └── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
└── jQuery.1.9.1
│ ├── Content
│ └── Scripts
│ │ ├── jquery-1.9.1-vsdoc.js
│ │ ├── jquery-1.9.1.js
│ │ ├── jquery-1.9.1.min.js
│ │ └── jquery-1.9.1.min.map
│ ├── Tools
│ ├── common.ps1
│ ├── install.ps1
│ ├── jquery-1.9.1.intellisense.js
│ └── uninstall.ps1
│ └── jQuery.1.9.1.nupkg
├── request.aspx
├── request.aspx.cs
├── request.aspx.designer.cs
├── saml.xml
├── setting.config
├── setup.aspx
├── setup.aspx.cs
├── setup.aspx.designer.cs
├── side_navigation_bar.aspx
├── side_navigation_bar1.aspx
├── side_navigation_bar1.aspx.cs
├── side_navigation_bar1.aspx.designer.cs
└── signup_page.aspx
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | *.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | *.sln merge=binary
26 | *.csproj merge=binary
27 | *.vbproj merge=binary
28 | *.vcxproj merge=binary
29 | *.vcproj merge=binary
30 | *.dbproj merge=binary
31 | *.fsproj merge=binary
32 | *.lsproj merge=binary
33 | *.wixproj merge=binary
34 | *.modelproj merge=binary
35 | *.sqlproj merge=binary
36 | *.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | *.jpg binary
44 | *.png binary
45 | *.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | *.doc diff=astextplain
55 | *.DOC diff=astextplain
56 | *.docx diff=astextplain
57 | *.DOCX diff=astextplain
58 | *.dot diff=astextplain
59 | *.DOT diff=astextplain
60 | *.pdf diff=astextplain
61 | *.PDF diff=astextplain
62 | *.rtf diff=astextplain
63 | *.RTF diff=astextplain
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU LESSER GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 |
9 | This version of the GNU Lesser General Public License incorporates
10 | the terms and conditions of version 3 of the GNU General Public
11 | License, supplemented by the additional permissions listed below.
12 |
13 | 0. Additional Definitions.
14 |
15 | As used herein, "this License" refers to version 3 of the GNU Lesser
16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU
17 | General Public License.
18 |
19 | "The Library" refers to a covered work governed by this License,
20 | other than an Application or a Combined Work as defined below.
21 |
22 | An "Application" is any work that makes use of an interface provided
23 | by the Library, but which is not otherwise based on the Library.
24 | Defining a subclass of a class defined by the Library is deemed a mode
25 | of using an interface provided by the Library.
26 |
27 | A "Combined Work" is a work produced by combining or linking an
28 | Application with the Library. The particular version of the Library
29 | with which the Combined Work was made is also called the "Linked
30 | Version".
31 |
32 | The "Minimal Corresponding Source" for a Combined Work means the
33 | Corresponding Source for the Combined Work, excluding any source code
34 | for portions of the Combined Work that, considered in isolation, are
35 | based on the Application, and not on the Linked Version.
36 |
37 | The "Corresponding Application Code" for a Combined Work means the
38 | object code and/or source code for the Application, including any data
39 | and utility programs needed for reproducing the Combined Work from the
40 | Application, but excluding the System Libraries of the Combined Work.
41 |
42 | 1. Exception to Section 3 of the GNU GPL.
43 |
44 | You may convey a covered work under sections 3 and 4 of this License
45 | without being bound by section 3 of the GNU GPL.
46 |
47 | 2. Conveying Modified Versions.
48 |
49 | If you modify a copy of the Library, and, in your modifications, a
50 | facility refers to a function or data to be supplied by an Application
51 | that uses the facility (other than as an argument passed when the
52 | facility is invoked), then you may convey a copy of the modified
53 | version:
54 |
55 | a) under this License, provided that you make a good faith effort to
56 | ensure that, in the event an Application does not supply the
57 | function or data, the facility still operates, and performs
58 | whatever part of its purpose remains meaningful, or
59 |
60 | b) under the GNU GPL, with none of the additional permissions of
61 | this License applicable to that copy.
62 |
63 | 3. Object Code Incorporating Material from Library Header Files.
64 |
65 | The object code form of an Application may incorporate material from
66 | a header file that is part of the Library. You may convey such object
67 | code under terms of your choice, provided that, if the incorporated
68 | material is not limited to numerical parameters, data structure
69 | layouts and accessors, or small macros, inline functions and templates
70 | (ten or fewer lines in length), you do both of the following:
71 |
72 | a) Give prominent notice with each copy of the object code that the
73 | Library is used in it and that the Library and its use are
74 | covered by this License.
75 |
76 | b) Accompany the object code with a copy of the GNU GPL and this license
77 | document.
78 |
79 | 4. Combined Works.
80 |
81 | You may convey a Combined Work under terms of your choice that,
82 | taken together, effectively do not restrict modification of the
83 | portions of the Library contained in the Combined Work and reverse
84 | engineering for debugging such modifications, if you also do each of
85 | the following:
86 |
87 | a) Give prominent notice with each copy of the Combined Work that
88 | the Library is used in it and that the Library and its use are
89 | covered by this License.
90 |
91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license
92 | document.
93 |
94 | c) For a Combined Work that displays copyright notices during
95 | execution, include the copyright notice for the Library among
96 | these notices, as well as a reference directing the user to the
97 | copies of the GNU GPL and this license document.
98 |
99 | d) Do one of the following:
100 |
101 | 0) Convey the Minimal Corresponding Source under the terms of this
102 | License, and the Corresponding Application Code in a form
103 | suitable for, and under terms that permit, the user to
104 | recombine or relink the Application with a modified version of
105 | the Linked Version to produce a modified Combined Work, in the
106 | manner specified by section 6 of the GNU GPL for conveying
107 | Corresponding Source.
108 |
109 | 1) Use a suitable shared library mechanism for linking with the
110 | Library. A suitable mechanism is one that (a) uses at run time
111 | a copy of the Library already present on the user's computer
112 | system, and (b) will operate properly with a modified version
113 | of the Library that is interface-compatible with the Linked
114 | Version.
115 |
116 | e) Provide Installation Information, but only if you would otherwise
117 | be required to provide such information under section 6 of the
118 | GNU GPL, and only to the extent that such information is
119 | necessary to install and execute a modified version of the
120 | Combined Work produced by recombining or relinking the
121 | Application with a modified version of the Linked Version. (If
122 | you use option 4d0, the Installation Information must accompany
123 | the Minimal Corresponding Source and Corresponding Application
124 | Code. If you use option 4d1, you must provide the Installation
125 | Information in the manner specified by section 6 of the GNU GPL
126 | for conveying Corresponding Source.)
127 |
128 | 5. Combined Libraries.
129 |
130 | You may place library facilities that are a work based on the
131 | Library side by side in a single library together with other library
132 | facilities that are not Applications and are not covered by this
133 | License, and convey such a combined library under terms of your
134 | choice, if you do both of the following:
135 |
136 | a) Accompany the combined library with a copy of the same work based
137 | on the Library, uncombined with any other library facilities,
138 | conveyed under the terms of this License.
139 |
140 | b) Give prominent notice with the combined library that part of it
141 | is a work based on the Library, and explaining where to find the
142 | accompanying uncombined form of the same work.
143 |
144 | 6. Revised Versions of the GNU Lesser General Public License.
145 |
146 | The Free Software Foundation may publish revised and/or new versions
147 | of the GNU Lesser General Public License from time to time. Such new
148 | versions will be similar in spirit to the present version, but may
149 | differ in detail to address new problems or concerns.
150 |
151 | Each version is given a distinguishing version number. If the
152 | Library as you received it specifies that a certain numbered version
153 | of the GNU Lesser General Public License "or any later version"
154 | applies to it, you have the option of following the terms and
155 | conditions either of that published version or of any later version
156 | published by the Free Software Foundation. If the Library as you
157 | received it does not specify a version number of the GNU Lesser
158 | General Public License, you may choose any version of the GNU Lesser
159 | General Public License ever published by the Free Software Foundation.
160 |
161 | If the Library as you received it specifies that a proxy can decide
162 | whether future versions of the GNU Lesser General Public License shall
163 | apply, that proxy's public statement of acceptance of any version is
164 | permanent authorization for you to choose that version for the
165 | Library.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | -------------------------------------
2 | # miniOrange SAML 2.0 ASP.Net Connector
3 | -------------------------------------
4 | The miniOrange Authentication modules add SAML v2.0 support to ASP.NET and IIS web sites, allowing the web site to act as a SAML v2.0 Service Provider (SP).
5 | The connector acts as a SAML Service Provider which can be configured to establish the trust between the connector and a SAML capable Identity Providers to securely authenticate the user to the ASP.NET application.
6 | Now you can securely SSO to your ASP.NET application using credentials of identity provider like ADFS, Google Apps, Salesforce, Bitium, Centrify, OneLogin, PingFederate, Oracle, Azure AD, AWS Cognito and many more.
Description : ";
27 |
28 |
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/sso-connector/InvalidDataException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace WebApplication1
7 | {
8 | public class InvalidDataException : Exception
9 | {
10 | public InvalidDataException(string error) : base(error)
11 | {
12 |
13 | }
14 | }
15 | }
--------------------------------------------------------------------------------
/sso-connector/MetaData.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MetaData.aspx.cs" Inherits="WebApplication1.MetaData" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/sso-connector/MetaData.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 | using System.Data;
8 |
9 | namespace WebApplication1
10 | {
11 | public partial class MetaData : System.Web.UI.Page
12 | {
13 |
14 | protected void ViewXML(object sender, EventArgs e)
15 | {
16 | Response.Clear();
17 | Response.Buffer = true;
18 | Response.Charset = "";
19 | Response.Cache.SetCacheability(HttpCacheability.NoCache);
20 | Response.ContentType = "application/xml";
21 | Response.WriteFile(Server.MapPath("~/saml.xml"));
22 | Response.Flush();
23 | Response.End();
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/sso-connector/MetaData.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1 {
11 |
12 |
13 | public partial class MetaData {
14 |
15 | ///
16 | /// form1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
23 |
24 | ///
25 | /// btnViewXML control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.WebControls.Button btnViewXML;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/sso-connector/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("WebApplication1")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("WebApplication1")]
13 | [assembly: AssemblyCopyright("Copyright © 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("135447b7-36b4-4b8f-977e-2ebbc24fd040")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/sso-connector/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/sso-connector/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
--------------------------------------------------------------------------------
/sso-connector/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/sso-connector/WebForm1.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="_header.master" Inherits="WebApplication1.side_navigation_bar" %>
2 |
3 |
4 |
5 |
19 |
20 |
234 |
235 |
236 |
237 |
--------------------------------------------------------------------------------
/sso-connector/WebForm1.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 |
8 | namespace WebApplication1
9 | {
10 | public partial class WebForm1 : System.Web.UI.Page
11 | {
12 | protected void Page_Load(object sender, EventArgs e)
13 | {
14 |
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/sso-connector/WebForm1.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1
11 | {
12 |
13 |
14 | public partial class WebForm1
15 | {
16 |
17 | ///
18 | /// form1 control.
19 | ///
20 | ///
21 | /// Auto-generated field.
22 | /// To modify move field declaration from designer file to code-behind file.
23 | ///
24 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/sso-connector/WebForm2.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Title="" Language="C#" MasterPageFile="~/_header.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
2 |
3 |
4 |
18 |
19 |
233 |
234 |
235 |
236 |
237 |
238 |
--------------------------------------------------------------------------------
/sso-connector/WebForm2.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 |
8 | namespace WebApplication1
9 | {
10 | public partial class WebForm2 : System.Web.UI.Page
11 | {
12 | protected void Page_Load(object sender, EventArgs e)
13 | {
14 |
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/sso-connector/WebForm2.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1
11 | {
12 |
13 |
14 | public partial class WebForm2
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/sso-connector/_header.Master:
--------------------------------------------------------------------------------
1 | <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="_header.master.cs" Inherits="WebApplication1._header" %>
2 |
10 |
11 |
12 |
13 | miniOrange SSO Connector
14 |
15 |
16 |
17 |
18 |
50 |
51 |
52 |
77 |
78 |
--------------------------------------------------------------------------------
/sso-connector/_header.Master.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 |
8 | namespace WebApplication1
9 | {
10 | public partial class _header : System.Web.UI.MasterPage
11 | {
12 | protected void Page_Load(object sender, EventArgs e)
13 | {
14 |
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/sso-connector/_header.Master.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1 {
11 |
12 |
13 | public partial class _header {
14 |
15 | ///
16 | /// head control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.ContentPlaceHolder head;
23 |
24 | ///
25 | /// form1 control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
32 |
33 | ///
34 | /// ContentPlaceHolder1 control.
35 | ///
36 | ///
37 | /// Auto-generated field.
38 | /// To modify move field declaration from designer file to code-behind file.
39 | ///
40 | protected global::System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolder1;
41 |
42 | ///
43 | /// MainContent control.
44 | ///
45 | ///
46 | /// Auto-generated field.
47 | /// To modify move field declaration from designer file to code-behind file.
48 | ///
49 | protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/sso-connector/bin/WebApplication1.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/bin/WebApplication1.dll
--------------------------------------------------------------------------------
/sso-connector/bin/WebApplication1.dll.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/sso-connector/bin/WebApplication1.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/bin/WebApplication1.pdb
--------------------------------------------------------------------------------
/sso-connector/ciphertext.cs:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/sso-connector/config.ini:
--------------------------------------------------------------------------------
1 | [Configuration]
2 | acsurl = https://local.com/acs
3 | entityid = https://local
--------------------------------------------------------------------------------
/sso-connector/example/sso.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" %>
2 | <%@ Import Namespace="System" %>
3 |
4 |
--------------------------------------------------------------------------------
/sso-connector/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/sso-connector/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/sso-connector/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/sso-connector/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/sso-connector/how_to_setup.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="how_to_setup.aspx.cs" Inherits="WebApplication1.how_to_setup" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
54 |
55 |
56 |
188 |
189 |
--------------------------------------------------------------------------------
/sso-connector/how_to_setup.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 | using System.Configuration;
8 | using System.Web.Configuration;
9 |
10 | namespace WebApplication1
11 | {
12 | public partial class how_to_setup : System.Web.UI.Page
13 | {
14 | protected void Page_Load(object sender, EventArgs e)
15 | {
16 | string baseurl = ConfigurationManager.AppSettings["sp_entityid"];
17 | anurl.Text = baseurl + "request.aspx";
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/sso-connector/how_to_setup.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1 {
11 |
12 |
13 | public partial class how_to_setup {
14 |
15 | ///
16 | /// form1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
23 |
24 | ///
25 | /// anurl control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.WebControls.Label anurl;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/sso-connector/image/add_app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/add_app.png
--------------------------------------------------------------------------------
/sso-connector/image/alias.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/alias.png
--------------------------------------------------------------------------------
/sso-connector/image/atrrbute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/atrrbute.png
--------------------------------------------------------------------------------
/sso-connector/image/control.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/control.png
--------------------------------------------------------------------------------
/sso-connector/image/idp_set.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/idp_set.png
--------------------------------------------------------------------------------
/sso-connector/image/loginsetup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/loginsetup.png
--------------------------------------------------------------------------------
/sso-connector/image/logo-home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/logo-home.png
--------------------------------------------------------------------------------
/sso-connector/image/logo_large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/logo_large.png
--------------------------------------------------------------------------------
/sso-connector/image/logsetup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/logsetup.png
--------------------------------------------------------------------------------
/sso-connector/image/miniorange.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/miniorange.png
--------------------------------------------------------------------------------
/sso-connector/image/right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/right.png
--------------------------------------------------------------------------------
/sso-connector/image/savetest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/savetest.png
--------------------------------------------------------------------------------
/sso-connector/image/setup_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/setup_4.png
--------------------------------------------------------------------------------
/sso-connector/image/signup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/signup.png
--------------------------------------------------------------------------------
/sso-connector/image/sp_set.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/sp_set.png
--------------------------------------------------------------------------------
/sso-connector/image/wrong.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/image/wrong.png
--------------------------------------------------------------------------------
/sso-connector/include/js/main.js:
--------------------------------------------------------------------------------
1 | (function () {
2 | "use strict";
3 |
4 | var treeviewMenu = $('.app-menu');
5 |
6 | // Toggle Sidebar
7 | $('[data-toggle="sidebar"]').click(function(event) {
8 | event.preventDefault();
9 | $('.app').toggleClass('sidenav-toggled');
10 | });
11 |
12 | // Activate sidebar treeview toggle
13 | $("[data-toggle='treeview']").click(function(event) {
14 | event.preventDefault();
15 | if(!$(this).parent().hasClass('is-expanded')) {
16 | treeviewMenu.find("[data-toggle='treeview']").parent().removeClass('is-expanded');
17 | }
18 | $(this).parent().toggleClass('is-expanded');
19 | });
20 |
21 | // Set initial active toggle
22 | $("[data-toggle='treeview.'].is-expanded").parent().toggleClass('is-expanded');
23 |
24 | //Activate bootstrip tooltips
25 | $("[data-toggle='tooltip']").tooltip();
26 |
27 | })();
28 |
--------------------------------------------------------------------------------
/sso-connector/include/js/plugins/bootstrap-notify.min.js:
--------------------------------------------------------------------------------
1 | /* Project: Bootstrap Growl = v3.1.3 | Description: Turns standard Bootstrap alerts into "Growl-like" notifications. | Author: Mouse0270 aka Robert McIntosh | License: MIT License | Website: https://github.com/mouse0270/bootstrap-growl */
2 | !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){function e(e,i,n){var i={content:{message:"object"==typeof i?i.message:i,title:i.title?i.title:"",icon:i.icon?i.icon:"",url:i.url?i.url:"#",target:i.target?i.target:"-"}};n=t.extend(!0,{},i,n),this.settings=t.extend(!0,{},s,n),this._defaults=s,"-"==this.settings.content.target&&(this.settings.content.target=this.settings.url_target),this.animations={start:"webkitAnimationStart oanimationstart MSAnimationStart animationstart",end:"webkitAnimationEnd oanimationend MSAnimationEnd animationend"},"number"==typeof this.settings.offset&&(this.settings.offset={x:this.settings.offset,y:this.settings.offset}),this.init()}var s={element:"body",position:null,type:"info",allow_dismiss:!0,newest_on_top:!1,showProgressbar:!1,placement:{from:"top",align:"center"},offset:20,spacing:10,z_index:1031,delay:5e3,timer:500,url_target:"_blank",mouse_over:null,animate:{enter:"animated fadeInDown",exit:"animated fadeOutUp"},onShow:null,onShown:null,onClose:null,onClosed:null,icon_type:"class",template:''};String.format=function(){for(var t=arguments[0],e=1;e .progress-bar').removeClass("progress-bar-"+t.settings.type),t.settings.type=i[e],this.$ele.addClass("alert-"+i[e]).find('[data-notify="progressbar"] > .progress-bar').addClass("progress-bar-"+i[e]);break;case"icon":var n=this.$ele.find('[data-notify="icon"]');"class"==t.settings.icon_type.toLowerCase()?n.removeClass(t.settings.content.icon).addClass(i[e]):(n.is("img")||n.find("img"),n.attr("src",i[e]));break;case"progress":var a=t.settings.delay-t.settings.delay*(i[e]/100);this.$ele.data("notify-delay",a),this.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",i[e]).css("width",i[e]+"%");break;case"url":this.$ele.find('[data-notify="url"]').attr("href",i[e]);break;case"target":this.$ele.find('[data-notify="url"]').attr("target",i[e]);break;default:this.$ele.find('[data-notify="'+e+'"]').html(i[e])}var o=this.$ele.outerHeight()+parseInt(t.settings.spacing)+parseInt(t.settings.offset.y);t.reposition(o)},close:function(){t.close()}}},buildNotify:function(){var e=this.settings.content;this.$ele=t(String.format(this.settings.template,this.settings.type,e.title,e.message,e.url,e.target)),this.$ele.attr("data-notify-position",this.settings.placement.from+"-"+this.settings.placement.align),this.settings.allow_dismiss||this.$ele.find('[data-notify="dismiss"]').css("display","none"),(this.settings.delay<=0&&!this.settings.showProgressbar||!this.settings.showProgressbar)&&this.$ele.find('[data-notify="progressbar"]').remove()},setIcon:function(){"class"==this.settings.icon_type.toLowerCase()?this.$ele.find('[data-notify="icon"]').addClass(this.settings.content.icon):this.$ele.find('[data-notify="icon"]').is("img")?this.$ele.find('[data-notify="icon"]').attr("src",this.settings.content.icon):this.$ele.find('[data-notify="icon"]').append(' ')},styleURL:function(){this.$ele.find('[data-notify="url"]').css({backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)",height:"100%",left:"0px",position:"absolute",top:"0px",width:"100%",zIndex:this.settings.z_index+1}),this.$ele.find('[data-notify="dismiss"]').css({position:"absolute",right:"10px",top:"5px",zIndex:this.settings.z_index+2})},placement:function(){var e=this,s=this.settings.offset.y,i={display:"inline-block",margin:"0px auto",position:this.settings.position?this.settings.position:"body"===this.settings.element?"fixed":"absolute",transition:"all .5s ease-in-out",zIndex:this.settings.z_index},n=!1,a=this.settings;switch(t('[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])').each(function(){return s=Math.max(s,parseInt(t(this).css(a.placement.from))+parseInt(t(this).outerHeight())+parseInt(a.spacing))}),1==this.settings.newest_on_top&&(s=this.settings.offset.y),i[this.settings.placement.from]=s+"px",this.settings.placement.align){case"left":case"right":i[this.settings.placement.align]=this.settings.offset.x+"px";break;case"center":i.left=0,i.right=0}this.$ele.css(i).addClass(this.settings.animate.enter),t.each(Array("webkit","moz","o","ms",""),function(t,s){e.$ele[0].style[s+"AnimationIterationCount"]=1}),t(this.settings.element).append(this.$ele),1==this.settings.newest_on_top&&(s=parseInt(s)+parseInt(this.settings.spacing)+this.$ele.outerHeight(),this.reposition(s)),t.isFunction(e.settings.onShow)&&e.settings.onShow.call(this.$ele),this.$ele.one(this.animations.start,function(){n=!0}).one(this.animations.end,function(){t.isFunction(e.settings.onShown)&&e.settings.onShown.call(this)}),setTimeout(function(){n||t.isFunction(e.settings.onShown)&&e.settings.onShown.call(this)},600)},bind:function(){var e=this;if(this.$ele.find('[data-notify="dismiss"]').on("click",function(){e.close()}),this.$ele.mouseover(function(){t(this).data("data-hover","true")}).mouseout(function(){t(this).data("data-hover","false")}),this.$ele.data("data-hover","false"),this.settings.delay>0){e.$ele.data("notify-delay",e.settings.delay);var s=setInterval(function(){var t=parseInt(e.$ele.data("notify-delay"))-e.settings.timer;if("false"===e.$ele.data("data-hover")&&"pause"==e.settings.mouse_over||"pause"!=e.settings.mouse_over){var i=(e.settings.delay-t)/e.settings.delay*100;e.$ele.data("notify-delay",t),e.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",i).css("width",i+"%")}t<=-e.settings.timer&&(clearInterval(s),e.close())},e.settings.timer)}},close:function(){var e=this,s=parseInt(this.$ele.css(this.settings.placement.from)),i=!1;this.$ele.data("closing","true").addClass(this.settings.animate.exit),e.reposition(s),t.isFunction(e.settings.onClose)&&e.settings.onClose.call(this.$ele),this.$ele.one(this.animations.start,function(){i=!0}).one(this.animations.end,function(){t(this).remove(),t.isFunction(e.settings.onClosed)&&e.settings.onClosed.call(this)}),setTimeout(function(){i||(e.$ele.remove(),e.settings.onClosed&&e.settings.onClosed(e.$ele))},600)},reposition:function(e){var s=this,i='[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])',n=this.$ele.nextAll(i);1==this.settings.newest_on_top&&(n=this.$ele.prevAll(i)),n.each(function(){t(this).css(s.settings.placement.from,e),e=parseInt(e)+parseInt(s.settings.spacing)+t(this).outerHeight()})}}),t.notify=function(t,s){var i=new e(this,t,s);return i.notify},t.notifyDefaults=function(e){return s=t.extend(!0,{},s,e)},t.notifyClose=function(e){"undefined"==typeof e||"all"==e?t("[data-notify]").find('[data-notify="dismiss"]').trigger("click"):t('[data-notify-position="'+e+'"]').find('[data-notify="dismiss"]').trigger("click")}});
--------------------------------------------------------------------------------
/sso-connector/include/js/plugins/dataTables.bootstrap.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | DataTables Bootstrap 3 integration
3 | ©2011-2015 SpryMedia Ltd - datatables.net/license
4 | */
5 | (function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)d=require("datatables.net")(a,d).$;return b(d,a,a.document)}:b(jQuery,window,document)})(function(b,a,d,m){var f=b.fn.dataTable;b.extend(!0,f.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
6 | renderer:"bootstrap"});b.extend(f.ext.classes,{sWrapper:"dataTables_wrapper container-fluid dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"});f.ext.renderer.pageButton.bootstrap=function(a,h,r,s,j,n){var o=new f.Api(a),t=a.oClasses,k=a.oLanguage.oPaginate,u=a.oLanguage.oAria.paginate||{},e,g,p=0,q=function(d,f){var l,h,i,c,m=function(a){a.preventDefault();!b(a.currentTarget).hasClass("disabled")&&
7 | o.page()!=a.data.action&&o.page(a.data.action).draw("page")};l=0;for(h=f.length;l",{"class":t.sPageButton+" "+g,id:0===r&&
8 | "string"===typeof c?a.sTableId+"_"+c:null}).append(b("",{href:"#","aria-controls":a.sTableId,"aria-label":u[c],"data-dt-idx":p,tabindex:a.iTabIndex,"class":"page-link"}).html(e)).appendTo(d),a.oApi._fnBindAction(i,{action:c},m),p++)}},i;try{i=b(h).find(d.activeElement).data("dt-idx")}catch(v){}q(b(h).empty().html('').children("ul"),s);i!==m&&b(h).find("[data-dt-idx="+i+"]").focus()};return f});
9 |
--------------------------------------------------------------------------------
/sso-connector/include/js/plugins/jquery.vmap.sampledata.js:
--------------------------------------------------------------------------------
1 | var sample_data = {"af":"16.63","al":"11.58","dz":"158.97","ao":"85.81","ag":"1.1","ar":"351.02","am":"8.83","au":"1219.72","at":"366.26","az":"52.17","bs":"7.54","bh":"21.73","bd":"105.4","bb":"3.96","by":"52.89","be":"461.33","bz":"1.43","bj":"6.49","bt":"1.4","bo":"19.18","ba":"16.2","bw":"12.5","br":"2023.53","bn":"11.96","bg":"44.84","bf":"8.67","bi":"1.47","kh":"11.36","cm":"21.88","ca":"1563.66","cv":"1.57","cf":"2.11","td":"7.59","cl":"199.18","cn":"5745.13","co":"283.11","km":"0.56","cd":"12.6","cg":"11.88","cr":"35.02","ci":"22.38","hr":"59.92","cy":"22.75","cz":"195.23","dk":"304.56","dj":"1.14","dm":"0.38","do":"50.87","ec":"61.49","eg":"216.83","sv":"21.8","gq":"14.55","er":"2.25","ee":"19.22","et":"30.94","fj":"3.15","fi":"231.98","fr":"2555.44","ga":"12.56","gm":"1.04","ge":"11.23","de":"3305.9","gh":"18.06","gr":"305.01","gd":"0.65","gt":"40.77","gn":"4.34","gw":"0.83","gy":"2.2","ht":"6.5","hn":"15.34","hk":"226.49","hu":"132.28","is":"12.77","in":"1430.02","id":"695.06","ir":"337.9","iq":"84.14","ie":"204.14","il":"201.25","it":"2036.69","jm":"13.74","jp":"5390.9","jo":"27.13","kz":"129.76","ke":"32.42","ki":"0.15","kr":"986.26","undefined":"5.73","kw":"117.32","kg":"4.44","la":"6.34","lv":"23.39","lb":"39.15","ls":"1.8","lr":"0.98","ly":"77.91","lt":"35.73","lu":"52.43","mk":"9.58","mg":"8.33","mw":"5.04","my":"218.95","mv":"1.43","ml":"9.08","mt":"7.8","mr":"3.49","mu":"9.43","mx":"1004.04","md":"5.36","mn":"5.81","me":"3.88","ma":"91.7","mz":"10.21","mm":"35.65","na":"11.45","np":"15.11","nl":"770.31","nz":"138","ni":"6.38","ne":"5.6","ng":"206.66","no":"413.51","om":"53.78","pk":"174.79","pa":"27.2","pg":"8.81","py":"17.17","pe":"153.55","ph":"189.06","pl":"438.88","pt":"223.7","qa":"126.52","ro":"158.39","ru":"1476.91","rw":"5.69","ws":"0.55","st":"0.19","sa":"434.44","sn":"12.66","rs":"38.92","sc":"0.92","sl":"1.9","sg":"217.38","sk":"86.26","si":"46.44","sb":"0.67","za":"354.41","es":"1374.78","lk":"48.24","kn":"0.56","lc":"1","vc":"0.58","sd":"65.93","sr":"3.3","sz":"3.17","se":"444.59","ch":"522.44","sy":"59.63","tw":"426.98","tj":"5.58","tz":"22.43","th":"312.61","tl":"0.62","tg":"3.07","to":"0.3","tt":"21.2","tn":"43.86","tr":"729.05","tm":0,"ug":"17.12","ua":"136.56","ae":"239.65","gb":"2258.57","us":"14624.18","uy":"40.71","uz":"37.72","vu":"0.72","ve":"285.21","vn":"101.99","ye":"30.02","zm":"15.69","zw":"5.57"};
--------------------------------------------------------------------------------
/sso-connector/include/js/plugins/pace.min.js:
--------------------------------------------------------------------------------
1 | /*! pace 1.0.2 */
2 | (function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X=[].slice,Y={}.hasOwnProperty,Z=function(a,b){function c(){this.constructor=a}for(var d in b)Y.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},$=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};for(u={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},C=function(){var a;return null!=(a="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?a:+new Date},E=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,t=window.cancelAnimationFrame||window.mozCancelAnimationFrame,null==E&&(E=function(a){return setTimeout(a,50)},t=function(a){return clearTimeout(a)}),G=function(a){var b,c;return b=C(),(c=function(){var d;return d=C()-b,d>=33?(b=C(),a(d,function(){return E(c)})):setTimeout(c,33-d)})()},F=function(){var a,b,c;return c=arguments[0],b=arguments[1],a=3<=arguments.length?X.call(arguments,2):[],"function"==typeof c[b]?c[b].apply(c,a):c[b]},v=function(){var a,b,c,d,e,f,g;for(b=arguments[0],d=2<=arguments.length?X.call(arguments,1):[],f=0,g=d.length;g>f;f++)if(c=d[f])for(a in c)Y.call(c,a)&&(e=c[a],null!=b[a]&&"object"==typeof b[a]&&null!=e&&"object"==typeof e?v(b[a],e):b[a]=e);return b},q=function(a){var b,c,d,e,f;for(c=b=0,e=0,f=a.length;f>e;e++)d=a[e],c+=Math.abs(d),b++;return c/b},x=function(a,b){var c,d,e;if(null==a&&(a="options"),null==b&&(b=!0),e=document.querySelector("[data-pace-"+a+"]")){if(c=e.getAttribute("data-pace-"+a),!b)return c;try{return JSON.parse(c)}catch(f){return d=f,"undefined"!=typeof console&&null!==console?console.error("Error parsing inline pace options",d):void 0}}},g=function(){function a(){}return a.prototype.on=function(a,b,c,d){var e;return null==d&&(d=!1),null==this.bindings&&(this.bindings={}),null==(e=this.bindings)[a]&&(e[a]=[]),this.bindings[a].push({handler:b,ctx:c,once:d})},a.prototype.once=function(a,b,c){return this.on(a,b,c,!0)},a.prototype.off=function(a,b){var c,d,e;if(null!=(null!=(d=this.bindings)?d[a]:void 0)){if(null==b)return delete this.bindings[a];for(c=0,e=[];cQ;Q++)K=U[Q],D[K]===!0&&(D[K]=u[K]);i=function(a){function b(){return V=b.__super__.constructor.apply(this,arguments)}return Z(b,a),b}(Error),b=function(){function a(){this.progress=0}return a.prototype.getElement=function(){var a;if(null==this.el){if(a=document.querySelector(D.target),!a)throw new i;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/pace-done/g,""),document.body.className+=" pace-running",this.el.innerHTML='\n
',null!=a.firstChild?a.insertBefore(this.el,a.firstChild):a.appendChild(this.el)}return this.el},a.prototype.finish=function(){var a;return a=this.getElement(),a.className=a.className.replace("pace-active",""),a.className+=" pace-inactive",document.body.className=document.body.className.replace("pace-running",""),document.body.className+=" pace-done"},a.prototype.update=function(a){return this.progress=a,this.render()},a.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(a){i=a}return this.el=void 0},a.prototype.render=function(){var a,b,c,d,e,f,g;if(null==document.querySelector(D.target))return!1;for(a=this.getElement(),d="translate3d("+this.progress+"%, 0, 0)",g=["webkitTransform","msTransform","transform"],e=0,f=g.length;f>e;e++)b=g[e],a.children[0].style[b]=d;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(a.children[0].setAttribute("data-progress-text",""+(0|this.progress)+"%"),this.progress>=100?c="99":(c=this.progress<10?"0":"",c+=0|this.progress),a.children[0].setAttribute("data-progress",""+c)),this.lastRenderedProgress=this.progress},a.prototype.done=function(){return this.progress>=100},a}(),h=function(){function a(){this.bindings={}}return a.prototype.trigger=function(a,b){var c,d,e,f,g;if(null!=this.bindings[a]){for(f=this.bindings[a],g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(c.call(this,b));return g}},a.prototype.on=function(a,b){var c;return null==(c=this.bindings)[a]&&(c[a]=[]),this.bindings[a].push(b)},a}(),P=window.XMLHttpRequest,O=window.XDomainRequest,N=window.WebSocket,w=function(a,b){var c,d,e;e=[];for(d in b.prototype)try{null==a[d]&&"function"!=typeof b[d]?"function"==typeof Object.defineProperty?e.push(Object.defineProperty(a,d,{get:function(){return b.prototype[d]},configurable:!0,enumerable:!0})):e.push(a[d]=b.prototype[d]):e.push(void 0)}catch(f){c=f}return e},A=[],j.ignore=function(){var a,b,c;return b=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],A.unshift("ignore"),c=b.apply(null,a),A.shift(),c},j.track=function(){var a,b,c;return b=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],A.unshift("track"),c=b.apply(null,a),A.shift(),c},J=function(a){var b;if(null==a&&(a="GET"),"track"===A[0])return"force";if(!A.length&&D.ajax){if("socket"===a&&D.ajax.trackWebSockets)return!0;if(b=a.toUpperCase(),$.call(D.ajax.trackMethods,b)>=0)return!0}return!1},k=function(a){function b(){var a,c=this;b.__super__.constructor.apply(this,arguments),a=function(a){var b;return b=a.open,a.open=function(d,e,f){return J(d)&&c.trigger("request",{type:d,url:e,request:a}),b.apply(a,arguments)}},window.XMLHttpRequest=function(b){var c;return c=new P(b),a(c),c};try{w(window.XMLHttpRequest,P)}catch(d){}if(null!=O){window.XDomainRequest=function(){var b;return b=new O,a(b),b};try{w(window.XDomainRequest,O)}catch(d){}}if(null!=N&&D.ajax.trackWebSockets){window.WebSocket=function(a,b){var d;return d=null!=b?new N(a,b):new N(a),J("socket")&&c.trigger("request",{type:"socket",url:a,protocols:b,request:d}),d};try{w(window.WebSocket,N)}catch(d){}}}return Z(b,a),b}(h),R=null,y=function(){return null==R&&(R=new k),R},I=function(a){var b,c,d,e;for(e=D.ajax.ignoreURLs,c=0,d=e.length;d>c;c++)if(b=e[c],"string"==typeof b){if(-1!==a.indexOf(b))return!0}else if(b.test(a))return!0;return!1},y().on("request",function(b){var c,d,e,f,g;return f=b.type,e=b.request,g=b.url,I(g)?void 0:j.running||D.restartOnRequestAfter===!1&&"force"!==J(f)?void 0:(d=arguments,c=D.restartOnRequestAfter||0,"boolean"==typeof c&&(c=0),setTimeout(function(){var b,c,g,h,i,k;if(b="socket"===f?e.readyState<2:0<(h=e.readyState)&&4>h){for(j.restart(),i=j.sources,k=[],c=0,g=i.length;g>c;c++){if(K=i[c],K instanceof a){K.watch.apply(K,d);break}k.push(void 0)}return k}},c))}),a=function(){function a(){var a=this;this.elements=[],y().on("request",function(){return a.watch.apply(a,arguments)})}return a.prototype.watch=function(a){var b,c,d,e;return d=a.type,b=a.request,e=a.url,I(e)?void 0:(c="socket"===d?new n(b):new o(b),this.elements.push(c))},a}(),o=function(){function a(a){var b,c,d,e,f,g,h=this;if(this.progress=0,null!=window.ProgressEvent)for(c=null,a.addEventListener("progress",function(a){return a.lengthComputable?h.progress=100*a.loaded/a.total:h.progress=h.progress+(100-h.progress)/2},!1),g=["load","abort","timeout","error"],d=0,e=g.length;e>d;d++)b=g[d],a.addEventListener(b,function(){return h.progress=100},!1);else f=a.onreadystatechange,a.onreadystatechange=function(){var b;return 0===(b=a.readyState)||4===b?h.progress=100:3===a.readyState&&(h.progress=50),"function"==typeof f?f.apply(null,arguments):void 0}}return a}(),n=function(){function a(a){var b,c,d,e,f=this;for(this.progress=0,e=["error","open"],c=0,d=e.length;d>c;c++)b=e[c],a.addEventListener(b,function(){return f.progress=100},!1)}return a}(),d=function(){function a(a){var b,c,d,f;for(null==a&&(a={}),this.elements=[],null==a.selectors&&(a.selectors=[]),f=a.selectors,c=0,d=f.length;d>c;c++)b=f[c],this.elements.push(new e(b))}return a}(),e=function(){function a(a){this.selector=a,this.progress=0,this.check()}return a.prototype.check=function(){var a=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return a.check()},D.elements.checkInterval)},a.prototype.done=function(){return this.progress=100},a}(),c=function(){function a(){var a,b,c=this;this.progress=null!=(b=this.states[document.readyState])?b:100,a=document.onreadystatechange,document.onreadystatechange=function(){return null!=c.states[document.readyState]&&(c.progress=c.states[document.readyState]),"function"==typeof a?a.apply(null,arguments):void 0}}return a.prototype.states={loading:0,interactive:50,complete:100},a}(),f=function(){function a(){var a,b,c,d,e,f=this;this.progress=0,a=0,e=[],d=0,c=C(),b=setInterval(function(){var g;return g=C()-c-50,c=C(),e.push(g),e.length>D.eventLag.sampleCount&&e.shift(),a=q(e),++d>=D.eventLag.minSamples&&a=100&&(this.done=!0),b===this.last?this.sinceLastUpdate+=a:(this.sinceLastUpdate&&(this.rate=(b-this.last)/this.sinceLastUpdate),this.catchup=(b-this.progress)/D.catchupTime,this.sinceLastUpdate=0,this.last=b),b>this.progress&&(this.progress+=this.catchup*a),c=1-Math.pow(this.progress/100,D.easeFactor),this.progress+=c*this.rate*a,this.progress=Math.min(this.lastProgress+D.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},a}(),L=null,H=null,r=null,M=null,p=null,s=null,j.running=!1,z=function(){return D.restartOnPushState?j.restart():void 0},null!=window.history.pushState&&(T=window.history.pushState,window.history.pushState=function(){return z(),T.apply(window.history,arguments)}),null!=window.history.replaceState&&(W=window.history.replaceState,window.history.replaceState=function(){return z(),W.apply(window.history,arguments)}),l={ajax:a,elements:d,document:c,eventLag:f},(B=function(){var a,c,d,e,f,g,h,i;for(j.sources=L=[],g=["ajax","elements","document","eventLag"],c=0,e=g.length;e>c;c++)a=g[c],D[a]!==!1&&L.push(new l[a](D[a]));for(i=null!=(h=D.extraSources)?h:[],d=0,f=i.length;f>d;d++)K=i[d],L.push(new K(D));return j.bar=r=new b,H=[],M=new m})(),j.stop=function(){return j.trigger("stop"),j.running=!1,r.destroy(),s=!0,null!=p&&("function"==typeof t&&t(p),p=null),B()},j.restart=function(){return j.trigger("restart"),j.stop(),j.start()},j.go=function(){var a;return j.running=!0,r.render(),a=C(),s=!1,p=G(function(b,c){var d,e,f,g,h,i,k,l,n,o,p,q,t,u,v,w;for(l=100-r.progress,e=p=0,f=!0,i=q=0,u=L.length;u>q;i=++q)for(K=L[i],o=null!=H[i]?H[i]:H[i]=[],h=null!=(w=K.elements)?w:[K],k=t=0,v=h.length;v>t;k=++t)g=h[k],n=null!=o[k]?o[k]:o[k]=new m(g),f&=n.done,n.done||(e++,p+=n.tick(b));return d=p/e,r.update(M.tick(b,d)),r.done()||f||s?(r.update(100),j.trigger("done"),setTimeout(function(){return r.finish(),j.running=!1,j.trigger("hide")},Math.max(D.ghostTime,Math.max(D.minTime-(C()-a),0)))):c()})},j.start=function(a){v(D,a),j.running=!0;try{r.render()}catch(b){i=b}return document.querySelector(".pace")?(j.trigger("start"),j.go()):setTimeout(j.start,50)},"function"==typeof define&&define.amd?define(["pace"],function(){return j}):"object"==typeof exports?module.exports=j:D.startOnPageLoad&&j.start()}).call(this);
--------------------------------------------------------------------------------
/sso-connector/include/js/plugins/sweetalert.min.js:
--------------------------------------------------------------------------------
1 | !function(e,t,n){"use strict";!function o(e,t,n){function a(s,l){if(!t[s]){if(!e[s]){var i="function"==typeof require&&require;if(!l&&i)return i(s,!0);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=t[s]={exports:{}};e[s][0].call(c.exports,function(t){var n=e[s][1][t];return a(n?n:t)},c,c.exports,o,e,t,n)}return t[s].exports}for(var r="function"==typeof require&&require,s=0;s=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},i=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},u=function(e){e.style.opacity="",e.style.display="block"},c=function(e){if(e&&!e.length)return u(e);for(var t=0;t0?setTimeout(o,t):e.style.display="none"});o()},h=function(n){if("function"==typeof MouseEvent){var o=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(o)}else if(t.createEvent){var a=t.createEvent("MouseEvents");a.initEvent("click",!1,!1),n.dispatchEvent(a)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},b=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)};a.hasClass=r,a.addClass=s,a.removeClass=l,a.escapeHtml=i,a._show=u,a.show=c,a._hide=d,a.hide=f,a.isDescendant=p,a.getTopMargin=m,a.fadeIn=v,a.fadeOut=y,a.fireClick=h,a.stopEventPropagation=b},{}],5:[function(t,o,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t("./handle-dom"),s=t("./handle-swal-dom"),l=function(t,o,a){var l=t||e.event,i=l.keyCode||l.which,u=a.querySelector("button.confirm"),c=a.querySelector("button.cancel"),d=a.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(i)){for(var f=l.target||l.srcElement,p=-1,m=0;m"),i.innerHTML=e.html?e.text:s.escapeHtml(e.text||"").split("\n").join(" "),e.text&&s.show(i),e.customClass)s.addClass(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var d=t.getAttribute("data-custom-class");s.removeClass(t,d),t.setAttribute("data-custom-class","")}if(s.hide(t.querySelectorAll(".sa-icon")),e.type&&!a.isIE8()){var f=function(){for(var o=!1,a=0;ao;o++)n=parseInt(e.substr(2*o,2),16),n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16),a+=("00"+n).substr(n.length);return a};o.extend=a,o.hexToRgb=r,o.isIE8=s,o.logStr=l,o.colorLuminance=i},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document);
--------------------------------------------------------------------------------
/sso-connector/login_page.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_page.aspx.cs" Inherits="WebApplication1.login_page" %>
2 | <%@ Import Namespace="System.Security.Cryptography"%>
3 |
4 |
5 |
6 |
7 |
59 |
60 |
61 |
62 |
65 |
102 |
103 |
104 |
--------------------------------------------------------------------------------
/sso-connector/login_page.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 |
8 | namespace WebApplication1
9 | {
10 | public partial class login_page : System.Web.UI.Page
11 | {
12 | protected void Page_Load(object sender, EventArgs e)
13 | {
14 |
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/sso-connector/login_page.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1 {
11 |
12 |
13 | public partial class login_page {
14 |
15 | ///
16 | /// form1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
23 |
24 | ///
25 | /// errormsg control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.WebControls.Label errormsg;
32 |
33 | ///
34 | /// txtUserId control.
35 | ///
36 | ///
37 | /// Auto-generated field.
38 | /// To modify move field declaration from designer file to code-behind file.
39 | ///
40 | protected global::System.Web.UI.WebControls.TextBox txtUserId;
41 |
42 | ///
43 | /// txtPassword control.
44 | ///
45 | ///
46 | /// Auto-generated field.
47 | /// To modify move field declaration from designer file to code-behind file.
48 | ///
49 | protected global::System.Web.UI.WebControls.TextBox txtPassword;
50 |
51 | ///
52 | /// Button1 control.
53 | ///
54 | ///
55 | /// Auto-generated field.
56 | /// To modify move field declaration from designer file to code-behind file.
57 | ///
58 | protected global::System.Web.UI.WebControls.Button Button1;
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/sso-connector/loginsetup.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="loginsetup.aspx.cs" Inherits="WebApplication1.loginsetup" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
51 |
52 |
53 |
54 |
55 |
64 |
65 |
66 |
67 |
80 |
81 |
82 |
83 |
84 |
Login Setup
85 |
86 |
87 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | Endpoint URL
102 | (Provide your Endpoint URL in Login Setup where you will read your SAML response.)
103 |
104 |
105 |
106 |
107 | Encryption Key
108 |
109 | (Add 24-character Encryption Key which will be used to encrypt response.)
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/sso-connector/loginsetup.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 | using System.IO;
8 | using System.Xml;
9 | using System.Security.Cryptography.X509Certificates;
10 | using System.Security.Cryptography.Xml;
11 | using System.IO.Compression;
12 | using System.Text;
13 | using System.Security.Cryptography;
14 | using System.Configuration;
15 | using System.Net.Configuration;
16 | using System.Web.Configuration;
17 | using System.Web.Security;
18 |
19 |
20 | namespace WebApplication1
21 | {
22 | public partial class loginsetup : System.Web.UI.Page
23 | {
24 | protected void Page_Load(object sender, EventArgs e)
25 | {
26 | // Response.Write(Session["UserId"].ToString());
27 | if (Request.IsAuthenticated)
28 | {
29 | if (urlid.Text == "" || urlid.Text == null)
30 | {
31 | urlid.Text = ConfigurationManager.AppSettings["user_url"];
32 | ecryptionkey.Text = ConfigurationManager.AppSettings["encrypt_key"];
33 |
34 | }
35 | }
36 | else
37 | {
38 | //If the session value for userid is not set, redirect the user to the loginpage
39 | //see the ReturnUrl querystring value, it will be the page, that the ASP.NEt
40 | //infrastructure will redirect to after successful validation of the user
41 | //See the
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1 {
11 |
12 |
13 | public partial class loginsetup {
14 |
15 | ///
16 | /// form1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
23 |
24 | ///
25 | /// labelencrypt control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.WebControls.Label labelencrypt;
32 |
33 | ///
34 | /// weburl control.
35 | ///
36 | ///
37 | /// Auto-generated field.
38 | /// To modify move field declaration from designer file to code-behind file.
39 | ///
40 | protected global::System.Web.UI.WebControls.Label weburl;
41 |
42 | ///
43 | /// urlid control.
44 | ///
45 | ///
46 | /// Auto-generated field.
47 | /// To modify move field declaration from designer file to code-behind file.
48 | ///
49 | protected global::System.Web.UI.WebControls.TextBox urlid;
50 |
51 | ///
52 | /// keylabel control.
53 | ///
54 | ///
55 | /// Auto-generated field.
56 | /// To modify move field declaration from designer file to code-behind file.
57 | ///
58 | protected global::System.Web.UI.WebControls.Label keylabel;
59 |
60 | ///
61 | /// ecryptionkey control.
62 | ///
63 | ///
64 | /// Auto-generated field.
65 | /// To modify move field declaration from designer file to code-behind file.
66 | ///
67 | protected global::System.Web.UI.WebControls.TextBox ecryptionkey;
68 |
69 | ///
70 | /// Save control.
71 | ///
72 | ///
73 | /// Auto-generated field.
74 | /// To modify move field declaration from designer file to code-behind file.
75 | ///
76 | protected global::System.Web.UI.WebControls.Button Save;
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/sso-connector/logout.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="logout.aspx.cs" Inherits="WebApplication1.logout" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/sso-connector/logout.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Data;
4 | using System.Linq;
5 | using System.Web;
6 | using System.Web.Configuration;
7 | using System.Web.UI;
8 | using System.Web.UI.WebControls;
9 | using System.Web.Security;
10 | using System.Web.UI.HtmlControls;
11 | using System.Web.UI.WebControls.WebParts;
12 | using System.Xml.Linq;
13 | using System.Configuration;
14 | using System.Net.Configuration;
15 |
16 |
17 | namespace WebApplication1
18 | {
19 | public partial class logout : System.Web.UI.Page
20 | {
21 | protected void Page_Load(object sender, EventArgs e)
22 | {
23 |
24 | Session.Remove("UserId");
25 | Session.RemoveAll();
26 | //This would signout the user and remove the authentication cookie, so the user is taken back to the login page directly
27 | FormsAuthentication.SignOut();
28 | Response.Redirect("login_page.aspx");
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/sso-connector/logout.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1 {
11 |
12 |
13 | public partial class logout {
14 |
15 | ///
16 | /// form1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/DesignTimeResolveAssemblyReferences.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/obj/Debug/DesignTimeResolveAssemblyReferences.cache
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/WebApplication1.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\Shubham\documents\visual studio 2013\Projects\WebApplication1\WebApplication1\bin\WebApplication1.dll.config
2 | C:\Users\Shubham\documents\visual studio 2013\Projects\WebApplication1\WebApplication1\bin\WebApplication1.dll
3 | C:\Users\Shubham\documents\visual studio 2013\Projects\WebApplication1\WebApplication1\bin\WebApplication1.pdb
4 | C:\Users\Shubham\documents\visual studio 2013\Projects\WebApplication1\WebApplication1\obj\Debug\WebApplication1.dll
5 | C:\Users\Shubham\documents\visual studio 2013\Projects\WebApplication1\WebApplication1\obj\Debug\WebApplication1.pdb
6 |
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/WebApplication1.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/obj/Debug/WebApplication1.dll
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/WebApplication1.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/obj/Debug/WebApplication1.pdb
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/saml.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 4dee2aa112c345bd698d99aa0a17112f6d30af10
2 |
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/saml.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\Shubham\Documents\Visual Studio 2013\Projects\WebApplication1\WebApplication1\bin\WebApplication1.dll.config
2 | C:\Users\Shubham\Documents\Visual Studio 2013\Projects\WebApplication1\WebApplication1\bin\WebApplication1.dll
3 | C:\Users\Shubham\Documents\Visual Studio 2013\Projects\WebApplication1\WebApplication1\bin\WebApplication1.pdb
4 | C:\Users\Shubham\Documents\Visual Studio 2013\Projects\WebApplication1\WebApplication1\obj\Debug\saml.csprojResolveAssemblyReference.cache
5 | C:\Users\Shubham\Documents\Visual Studio 2013\Projects\WebApplication1\WebApplication1\obj\Debug\WebApplication1.dll
6 | C:\Users\Shubham\Documents\Visual Studio 2013\Projects\WebApplication1\WebApplication1\obj\Debug\WebApplication1.pdb
7 | C:\website\miniOrange-asp-dotnet-connector-samlsp-sso\saml_asp.net_connector\bin\WebApplication1.dll.config
8 | C:\website\miniOrange-asp-dotnet-connector-samlsp-sso\saml_asp.net_connector\bin\WebApplication1.dll
9 | C:\website\miniOrange-asp-dotnet-connector-samlsp-sso\saml_asp.net_connector\bin\WebApplication1.pdb
10 | C:\website\miniOrange-asp-dotnet-connector-samlsp-sso\saml_asp.net_connector\obj\Debug\WebApplication1.dll
11 | C:\website\miniOrange-asp-dotnet-connector-samlsp-sso\saml_asp.net_connector\obj\Debug\WebApplication1.pdb
12 | C:\inetpub\wwwroot\saml_asp.net_connector\bin\WebApplication1.dll
13 | C:\inetpub\wwwroot\saml_asp.net_connector\bin\WebApplication1.pdb
14 | C:\inetpub\wwwroot\saml_asp.net_connector\obj\Debug\WebApplication1.dll
15 | C:\inetpub\wwwroot\saml_asp.net_connector\obj\Debug\WebApplication1.pdb
16 | C:\ASP.NET-SSO-Connector\bin\WebApplication1.dll.config
17 | C:\ASP.NET-SSO-Connector\bin\WebApplication1.dll
18 | C:\ASP.NET-SSO-Connector\bin\WebApplication1.pdb
19 | C:\ASP.NET-SSO-Connector\obj\Debug\saml.csproj.CoreCompileInputs.cache
20 | C:\ASP.NET-SSO-Connector\obj\Debug\WebApplication1.dll
21 | C:\ASP.NET-SSO-Connector\obj\Debug\WebApplication1.pdb
22 | C:\inetpub\wwwroot\Saml_sso\bin\WebApplication1.dll.config
23 | C:\inetpub\wwwroot\Saml_sso\bin\WebApplication1.dll
24 | C:\inetpub\wwwroot\Saml_sso\bin\WebApplication1.pdb
25 | C:\inetpub\wwwroot\Saml_sso\obj\Debug\saml.csproj.CoreCompileInputs.cache
26 | C:\inetpub\wwwroot\Saml_sso\obj\Debug\WebApplication1.dll
27 | C:\inetpub\wwwroot\Saml_sso\obj\Debug\WebApplication1.pdb
28 | C:\inetpub\wwwroot\sso_connector\bin\WebApplication1.dll.config
29 | C:\inetpub\wwwroot\sso_connector\bin\WebApplication1.dll
30 | C:\inetpub\wwwroot\sso_connector\bin\WebApplication1.pdb
31 | C:\inetpub\wwwroot\sso_connector\obj\Debug\saml.csproj.CoreCompileInputs.cache
32 | C:\inetpub\wwwroot\sso_connector\obj\Debug\WebApplication1.dll
33 | C:\inetpub\wwwroot\sso_connector\obj\Debug\WebApplication1.pdb
34 | C:\inetpub\wwwroot\sso_connector\obj\Debug\saml.csprojAssemblyReference.cache
35 | C:\inetpub\wwwroot\sso-connector\bin\WebApplication1.dll.config
36 | C:\inetpub\wwwroot\sso-connector\bin\WebApplication1.dll
37 | C:\inetpub\wwwroot\sso-connector\bin\WebApplication1.pdb
38 | C:\inetpub\wwwroot\sso-connector\obj\Debug\saml.csprojAssemblyReference.cache
39 | C:\inetpub\wwwroot\sso-connector\obj\Debug\saml.csproj.CoreCompileInputs.cache
40 | C:\inetpub\wwwroot\sso-connector\obj\Debug\WebApplication1.dll
41 | C:\inetpub\wwwroot\sso-connector\obj\Debug\WebApplication1.pdb
42 |
--------------------------------------------------------------------------------
/sso-connector/obj/Debug/saml.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/obj/Debug/saml.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/sso-connector/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/sso-connector/packages/bootstrap.3.3.7/bootstrap.3.3.7.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/packages/bootstrap.3.3.7/bootstrap.3.3.7.nupkg
--------------------------------------------------------------------------------
/sso-connector/packages/bootstrap.3.3.7/content/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/packages/bootstrap.3.3.7/content/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/sso-connector/packages/bootstrap.3.3.7/content/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/packages/bootstrap.3.3.7/content/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/sso-connector/packages/bootstrap.3.3.7/content/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/packages/bootstrap.3.3.7/content/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/sso-connector/packages/bootstrap.3.3.7/content/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/packages/bootstrap.3.3.7/content/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/sso-connector/packages/jQuery.1.9.1/Tools/common.ps1:
--------------------------------------------------------------------------------
1 | function Get-Checksum($file) {
2 | $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
3 |
4 | $fileInfo = Get-Item $file
5 | trap { ;
6 | continue } $stream = $fileInfo.OpenRead()
7 | if ($? -eq $false) {
8 | # Couldn't open file for reading
9 | return $null
10 | }
11 |
12 | $bytes = $cryptoProvider.ComputeHash($stream)
13 | $checksum = ''
14 | foreach ($byte in $bytes) {
15 | $checksum += $byte.ToString('x2')
16 | }
17 |
18 | $stream.Close() | Out-Null
19 |
20 | return $checksum
21 | }
22 |
23 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
24 | try {
25 | $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
26 | }
27 | catch {
28 | # _references.js file not found
29 | return
30 | }
31 |
32 | if ($referencesFileProjectItem -eq $null) {
33 | # _references.js file not found
34 | return
35 | }
36 |
37 | $referencesFilePath = $referencesFileProjectItem.FileNames(1)
38 | $referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js"
39 |
40 | if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 0) {
41 | # File has no existing matching reference line
42 | # Add the full reference line to the beginning of the file
43 | "/// " | Add-Content $referencesTempFilePath -Encoding UTF8
44 | Get-Content $referencesFilePath | Add-Content $referencesTempFilePath
45 | }
46 | else {
47 | # Loop through file and replace old file name with new file name
48 | Get-Content $referencesFilePath | ForEach-Object { $_ -replace $fileNamePattern, $newFileName } > $referencesTempFilePath
49 | }
50 |
51 | # Copy over the new _references.js file
52 | Copy-Item $referencesTempFilePath $referencesFilePath -Force
53 | Remove-Item $referencesTempFilePath -Force
54 | }
55 |
56 | function Remove-Reference($scriptsFolderProjectItem, $fileNamePattern) {
57 | try {
58 | $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
59 | }
60 | catch {
61 | # _references.js file not found
62 | return
63 | }
64 |
65 | if ($referencesFileProjectItem -eq $null) {
66 | return
67 | }
68 |
69 | $referencesFilePath = $referencesFileProjectItem.FileNames(1)
70 | $referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js"
71 |
72 | if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 1) {
73 | # Delete the line referencing the file
74 | Get-Content $referencesFilePath | ForEach-Object { if (-not ($_ -match $fileNamePattern)) { $_ } } > $referencesTempFilePath
75 |
76 | # Copy over the new _references.js file
77 | Copy-Item $referencesTempFilePath $referencesFilePath -Force
78 | Remove-Item $referencesTempFilePath -Force
79 | }
80 | }
81 |
82 | function Delete-ProjectItem($item) {
83 | $itemDeleted = $false
84 | for ($1=1; $i -le 5; $i++) {
85 | try {
86 | $item.Delete()
87 | $itemDeleted = $true
88 | break
89 | }
90 | catch {
91 | # Try again in 200ms
92 | [System.Threading.Thread]::Sleep(200)
93 | }
94 | }
95 | if ($itemDeleted -eq $false) {
96 | throw "Unable to delete project item after five attempts."
97 | }
98 | }
99 |
100 | # Extract the version number from the jquery file in the package's content\scripts folder
101 | $packageScriptsFolder = Join-Path $installPath Content\Scripts
102 | $jqueryFileName = Join-Path $packageScriptsFolder "jquery-*.js" | Get-ChildItem -Exclude "*.min.js","*-vsdoc.js" | Split-Path -Leaf
103 | $jqueryFileNameRegEx = "jquery-((?:\d+\.)?(?:\d+\.)?(?:\d+\.)?(?:\d+)).js"
104 | $jqueryFileName -match $jqueryFileNameRegEx
105 | $ver = $matches[1]
106 |
107 | $intelliSenseFileName = "jquery-$ver.intellisense.js"
108 |
109 | # Get the project item for the scripts folder
110 | try {
111 | $scriptsFolderProjectItem = $project.ProjectItems.Item("Scripts")
112 | $projectScriptsFolderPath = $scriptsFolderProjectItem.FileNames(1)
113 | }
114 | catch {
115 | # No Scripts folder
116 | Write-Host "No scripts folder found"
117 | }
--------------------------------------------------------------------------------
/sso-connector/packages/jQuery.1.9.1/Tools/install.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | . (Join-Path $toolsPath common.ps1)
4 |
5 | # VS 11 and above supports the new intellisense JS files
6 | $vsVersion = [System.Version]::Parse($dte.Version)
7 | $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
8 |
9 | if (-not $supportsJsIntelliSenseFile) {
10 | $displayVersion = $vsVersion.Major
11 | Write-Host "IntelliSense JS files are not supported by your version of Visual Studio: $displayVersion"
12 | exit
13 | }
14 |
15 | if ($scriptsFolderProjectItem -eq $null) {
16 | # No Scripts folder
17 | Write-Host "No Scripts folder found"
18 | exit
19 | }
20 |
21 | # Delete the vsdoc file from the project
22 | try {
23 | $vsDocProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("jquery-$ver-vsdoc.js")
24 | Delete-ProjectItem $vsDocProjectItem
25 | }
26 | catch {
27 | Write-Host "Error deleting vsdoc file: " + $_.Exception -ForegroundColor Red
28 | exit
29 | }
30 |
31 | # Copy the intellisense file to the project from the tools folder
32 | $intelliSenseFileSourcePath = Join-Path $toolsPath $intelliSenseFileName
33 | try {
34 | $scriptsFolderProjectItem.ProjectItems.AddFromFileCopy($intelliSenseFileSourcePath)
35 | }
36 | catch {
37 | # This will throw if the file already exists, so we need to catch here
38 | }
39 |
40 | # Update the _references.js file
41 | AddOrUpdate-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx $jqueryFileName
--------------------------------------------------------------------------------
/sso-connector/packages/jQuery.1.9.1/Tools/uninstall.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | . (Join-Path $toolsPath common.ps1)
4 |
5 | # Determine the file paths
6 | $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
7 | $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
8 |
9 | if (Test-Path $projectIntelliSenseFilePath) {
10 | if ((Get-Checksum $projectIntelliSenseFilePath) -eq (Get-Checksum $origIntelliSenseFilePath)) {
11 | # The intellisense file in the project matches the file in the tools folder, delete it
12 |
13 | if ($scriptsFolderProjectItem -eq $null) {
14 | # No Scripts folder
15 | exit
16 | }
17 |
18 | try {
19 | # Get the project item for the intellisense file
20 | $intelliSenseFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item($intelliSenseFileName)
21 | }
22 | catch {
23 | # The item wasn't found
24 | exit
25 | }
26 |
27 | # Delete the project item
28 | Delete-ProjectItem $intelliSenseFileProjectItem
29 | }
30 | else {
31 | $projectScriptsFolderLeaf = Split-Path $projectScriptsFolderPath -Leaf
32 | Write-Host "Skipping '$projectScriptsFolderLeaf\$intelliSenseFileName' because it was modified." -ForegroundColor Magenta
33 | }
34 | }
35 | else {
36 | # The intellisense file was not found in project
37 | Write-Host "The intellisense file was not found in project at path $projectIntelliSenseFilePath"
38 | }
39 |
40 | # Update the _references.js file
41 | Remove-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx
--------------------------------------------------------------------------------
/sso-connector/packages/jQuery.1.9.1/jQuery.1.9.1.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/miniOrangeDev/miniOrange-asp-dotnet-connector-samlsp-sso/7dcc73c5f7894585a6feb107148daca2faa8790d/sso-connector/packages/jQuery.1.9.1/jQuery.1.9.1.nupkg
--------------------------------------------------------------------------------
/sso-connector/request.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="request.aspx.cs" Inherits="WebApplication1.request" %>
2 |
--------------------------------------------------------------------------------
/sso-connector/request.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 | using System.Xml;
9 | using System.Security.Cryptography;
10 | using System.Security.Cryptography.X509Certificates;
11 | using System.Security.Cryptography.Xml;
12 | using System.IO.Compression;
13 | using System.Text;
14 | using System.Configuration;
15 | using System.Net.Configuration;
16 | using System.Web.Configuration;
17 | using Saml;
18 |
19 | namespace WebApplication1
20 | {
21 | public partial class request : System.Web.UI.Page
22 | {
23 | public string Decrypt(string cipherText)
24 | {
25 | string EncryptionKey = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
26 | cipherText = cipherText.Replace(" ", "+");
27 | byte[] cipherBytes = Convert.FromBase64String(cipherText);
28 | using (Aes encryptor = Aes.Create())
29 | {
30 | Rfc2898DeriveBytes pdb = new Rfc2898DeriveBytes(EncryptionKey, new byte[] {
31 | 0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76
32 | });
33 | encryptor.Key = pdb.GetBytes(32);
34 | encryptor.IV = pdb.GetBytes(16);
35 | using (MemoryStream ms = new MemoryStream())
36 | {
37 | using (CryptoStream cs = new CryptoStream(ms, encryptor.CreateDecryptor(), CryptoStreamMode.Write))
38 | {
39 | cs.Write(cipherBytes, 0, cipherBytes.Length);
40 | cs.Close();
41 | }
42 | cipherText = Encoding.Unicode.GetString(ms.ToArray());
43 | }
44 | }
45 | return cipherText;
46 | }
47 | protected void Page_Load(object sender, EventArgs e)
48 | {
49 | DateTime dt1970 = new DateTime(1970, 1, 1);
50 | DateTime current = DateTime.UtcNow; //DateTime.Now;//DateTime.UtcNow for unix timestamp
51 | TimeSpan span = current - dt1970;
52 | long timestampinlong = (long)span.TotalMilliseconds;
53 | //String expiry_tmestamp = Decrypt(ConfigurationManager.AppSettings["issue"]);
54 | //if (Convert.ToInt64(expiry_tmestamp) > timestampinlong)
55 | //{
56 | var samlEndpoint = ConfigurationManager.AppSettings["idp_ssourl"].TrimStart().TrimEnd();
57 | // Response.Write("IDP_sso" + samlEndpoint);
58 | var request = new AuthRequest(
59 | ConfigurationManager.AppSettings["sp_entityid"].TrimStart().TrimEnd(), //put your app's "unique ID" here
60 | ConfigurationManager.AppSettings["sp_acsurl"].TrimStart().TrimEnd() //assertion Consumer Url - the URL where provider will redirect authenticated users after authenticating them
61 | );
62 |
63 | var relay = "";
64 | if (Request.QueryString["relayState"] != null)
65 | {
66 | relay = Request.QueryString["relaystate"].ToString();
67 |
68 | }
69 | string url= request.GetRedirectUrl(samlEndpoint, relay);
70 | Response.Redirect(url);
71 |
72 | //then redirect your user to the above "url" var
73 | //for example, like this:
74 | //}
75 | //else
76 | //{
77 | // Response.Write("Expired");
78 | // }
79 | }
80 |
81 | }
82 |
83 | }
--------------------------------------------------------------------------------
/sso-connector/request.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1 {
11 |
12 |
13 | public partial class request {
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/sso-connector/saml.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
9 |
10 |
11 | urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
12 |
13 |
14 | urn:oasis:names:tc:SAML:2.0:nameid-format:transient
15 |
16 |
17 |
18 |
19 | miniOrange
20 | miniOrange
21 | http://miniorange.com
22 |
23 |
24 | miniOrange
25 | info@miniorange.com
26 |
27 |
28 | miniOrange
29 | info@miniorange.com
30 |
31 |
--------------------------------------------------------------------------------
/sso-connector/setting.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/sso-connector/setup.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="setup.aspx.cs" Inherits="WebApplication1.setup" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
75 |
76 |
77 |
78 |
91 |
92 |
93 |
94 |
95 |
Plugin Settings
96 |
97 |
98 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 | Identity Provider Settings
111 |
112 |
117 |
118 | Singal Sigon URL
119 |
120 |
121 |
122 | SAML Login Binding type
123 |
144 |
145 |
146 |
147 |
148 | SAML x509 Certificate
149 |
150 | Not available in TRIAL version
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 | Signed Response
159 |  
160 | Not available in TRIAL version
161 |
162 |
163 |
164 |
165 |
166 |
167 | Signed Assertion
168 |  
169 | Not available in TRIAL version
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
Service Provider Settings
181 |
182 |
183 |
184 |
185 | SP Entity ID:
186 |
187 |
188 |
189 |
190 |
191 | ACS URL:
192 |
193 |
194 |
195 |
196 |
197 |
Attribute Mapping
198 |
199 |
200 |
206 |
207 |
208 |
209 |
210 | Email
211 |
212 |
213 |
214 |
215 |
216 | Firstname
217 |
218 |
219 |
220 |
221 |
222 | Lastname
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
--------------------------------------------------------------------------------
/sso-connector/setup.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 | using System.Configuration;
8 | using System.Net.Configuration;
9 | using System.Web.Configuration;
10 | using System.Web.Security;
11 | using Saml;
12 | namespace WebApplication1
13 | {
14 | public partial class setup : System.Web.UI.Page
15 | {
16 | protected void Page_Load(object sender, EventArgs e)
17 | {
18 | //Response.Write(Session["UserId"].ToString());
19 |
20 | if (Request.IsAuthenticated)
21 | {
22 |
23 | if (sp_id.InnerText == null || sp_id.InnerText == "")
24 | {
25 | sp_id.InnerText = BaseUrl().Trim(); //ConfigurationManager.AppSettings["sp_entityid"];
26 | acs_id.InnerText = BaseUrl() + "ACS.aspx".Trim();
27 | //SPEntityLabel.Text= BaseUrl().Trim();
28 | Configuration config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~");
29 | config.AppSettings.Settings["sp_entityid"].Value = sp_id.InnerText;
30 | config.AppSettings.Settings["sp_acsurl"].Value = acs_id.InnerText;
31 | config.Save();
32 |
33 | }
34 | }
35 | else
36 | {
37 | //If the session value for userid is not set, redirect the user to the loginpage
38 | //see the ReturnUrl querystring value, it will be the page, that the ASP.NEt
39 | //infrastructure will redirect to after successful validation of the user
40 | //See the 0)
194 | {
195 | Authority += "/";
196 | }
197 |
198 | if (ApplicationPath.Length > 0)
199 | {
200 | ApplicationPath += "/";
201 | }
202 |
203 | // return
204 | return string.Format("{0}{1}", Authority, ApplicationPath);
205 | }
206 | }
207 | }
--------------------------------------------------------------------------------
/sso-connector/setup.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1 {
11 |
12 |
13 | public partial class setup {
14 |
15 | ///
16 | /// form1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
23 |
24 | ///
25 | /// Message control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.WebControls.Label Message;
32 |
33 | ///
34 | /// idpentity control.
35 | ///
36 | ///
37 | /// Auto-generated field.
38 | /// To modify move field declaration from designer file to code-behind file.
39 | ///
40 | protected global::System.Web.UI.HtmlControls.HtmlTextArea idpentity;
41 |
42 | ///
43 | /// sso_url control.
44 | ///
45 | ///
46 | /// Auto-generated field.
47 | /// To modify move field declaration from designer file to code-behind file.
48 | ///
49 | protected global::System.Web.UI.HtmlControls.HtmlTextArea sso_url;
50 |
51 | ///
52 | /// idpcertificate control.
53 | ///
54 | ///
55 | /// Auto-generated field.
56 | /// To modify move field declaration from designer file to code-behind file.
57 | ///
58 | protected global::System.Web.UI.HtmlControls.HtmlTextArea idpcertificate;
59 |
60 | ///
61 | /// Button2 control.
62 | ///
63 | ///
64 | /// Auto-generated field.
65 | /// To modify move field declaration from designer file to code-behind file.
66 | ///
67 | protected global::System.Web.UI.WebControls.Button Button2;
68 |
69 | ///
70 | /// Button3 control.
71 | ///
72 | ///
73 | /// Auto-generated field.
74 | /// To modify move field declaration from designer file to code-behind file.
75 | ///
76 | protected global::System.Web.UI.WebControls.Button Button3;
77 |
78 | ///
79 | /// sp_id control.
80 | ///
81 | ///
82 | /// Auto-generated field.
83 | /// To modify move field declaration from designer file to code-behind file.
84 | ///
85 | protected global::System.Web.UI.HtmlControls.HtmlTextArea sp_id;
86 |
87 | ///
88 | /// acs_id control.
89 | ///
90 | ///
91 | /// Auto-generated field.
92 | /// To modify move field declaration from designer file to code-behind file.
93 | ///
94 | protected global::System.Web.UI.HtmlControls.HtmlTextArea acs_id;
95 |
96 | ///
97 | /// Label1 control.
98 | ///
99 | ///
100 | /// Auto-generated field.
101 | /// To modify move field declaration from designer file to code-behind file.
102 | ///
103 | protected global::System.Web.UI.WebControls.Label Label1;
104 |
105 | ///
106 | /// Name_ID control.
107 | ///
108 | ///
109 | /// Auto-generated field.
110 | /// To modify move field declaration from designer file to code-behind file.
111 | ///
112 | protected global::System.Web.UI.HtmlControls.HtmlTextArea Name_ID;
113 |
114 | ///
115 | /// email control.
116 | ///
117 | ///
118 | /// Auto-generated field.
119 | /// To modify move field declaration from designer file to code-behind file.
120 | ///
121 | protected global::System.Web.UI.HtmlControls.HtmlTextArea email;
122 |
123 | ///
124 | /// firstname control.
125 | ///
126 | ///
127 | /// Auto-generated field.
128 | /// To modify move field declaration from designer file to code-behind file.
129 | ///
130 | protected global::System.Web.UI.HtmlControls.HtmlTextArea firstname;
131 |
132 | ///
133 | /// lastname control.
134 | ///
135 | ///
136 | /// Auto-generated field.
137 | /// To modify move field declaration from designer file to code-behind file.
138 | ///
139 | protected global::System.Web.UI.HtmlControls.HtmlTextArea lastname;
140 |
141 | ///
142 | /// sub control.
143 | ///
144 | ///
145 | /// Auto-generated field.
146 | /// To modify move field declaration from designer file to code-behind file.
147 | ///
148 | protected global::System.Web.UI.WebControls.Button sub;
149 | }
150 | }
151 |
--------------------------------------------------------------------------------
/sso-connector/side_navigation_bar.aspx:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/sso-connector/side_navigation_bar1.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="side_navigation_bar1.aspx.cs" Inherits="WebApplication1.side_navigation_bar1" %>
2 |
3 |
4 |
18 |
19 |
233 |
234 |
235 |
--------------------------------------------------------------------------------
/sso-connector/side_navigation_bar1.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 |
8 | namespace WebApplication1
9 | {
10 | public partial class side_navigation_bar1 : System.Web.UI.Page
11 | {
12 | protected void Page_Load(object sender, EventArgs e)
13 | {
14 |
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/sso-connector/side_navigation_bar1.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1 {
11 |
12 |
13 | public partial class side_navigation_bar1 {
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/sso-connector/signup_page.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_page.aspx.cs" Inherits="WebApplication1.login_page" %>
2 | <%@ Import Namespace="System.Security.Cryptography"%>
3 | <%@ Import Namespace="System.IO"%>
4 |
5 |
6 |
7 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 | Register - miniOrange Admin
88 |
89 |
90 |
91 |
92 |
95 |
96 |
97 |
98 |
99 |
100 |
Register
101 |
102 |
103 |
104 |
105 |
111 |
118 |
124 |
125 |
126 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
--------------------------------------------------------------------------------