<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Has anyone built a login widget? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865259#M12260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's awesome Girish!&amp;nbsp; Would you be able to provide some additional instructions on how to implement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jan 2016 12:45:33 GMT</pubDate>
    <dc:creator>BillSpiking__GISP</dc:creator>
    <dc:date>2016-01-14T12:45:33Z</dc:date>
    <item>
      <title>Has anyone built a login widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865256#M12257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an app that is open to the public, but there is some additional data that requires a login.&amp;nbsp; Trying to find a good pattern on how to set up the security is difficult.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does OAuth using Active Directory work with the WAB?&amp;nbsp; Any other ideas of the best way to add a login?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 00:26:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865256#M12257</guid>
      <dc:creator>ChrisBradberry</dc:creator>
      <dc:date>2016-01-14T00:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone built a login widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865257#M12258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Normally you allow the Identity manager to handle the login for secure services. Are you wanting something different than that? If you want to bypass the login then you use a proxy to provide the credentials.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 02:57:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865257#M12258</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-01-14T02:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone built a login widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865258#M12259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a Sign-In widget in WAB app which loads at the startup covering the app viewport. This widget ask for AGOL credentials and authenticate with the AGOL account that is set in the WAB configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="signin.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/168286_signin.png" style="width: 620px; height: 305px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; _signIn: function(userName, password) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!userName || !password) return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var serverInfo = new ServerInfo();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverInfo.server = this.appConfig.portalUrl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverInfo.tokenServiceUrl = this.appConfig.portalUrl + "/sharing/rest/generateToken";

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var userInfo = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username: userName,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password: password
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var def = window.esri.id.generateToken(serverInfo, userInfo);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def.then( lang.hitch(this, this._signInComplete)&lt;SPAN style="line-height: 1.5;"&gt;, lang.hitch(this, this._signInFailed));&lt;/SPAN&gt;
&lt;SPAN style="line-height: 1.5;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;The benefits of using this design is that the user, roles and groups can be easily managed on AGOL or AGS. And Sign-In UI can be styled as desired. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;OAuth authentication can also be used but. We observed that OAuth authentication using IdentityManager does not provide much flexibility with the UI. Though IdentityManagerBase can be used to modify the style of the UI but it redirects to AGOL oauth, therefore the overlay effect is lost.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;-Girish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:45:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865258#M12259</guid>
      <dc:creator>GirishYadav</dc:creator>
      <dc:date>2021-12-12T10:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone built a login widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865259#M12260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's awesome Girish!&amp;nbsp; Would you be able to provide some additional instructions on how to implement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 12:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865259#M12260</guid>
      <dc:creator>BillSpiking__GISP</dc:creator>
      <dc:date>2016-01-14T12:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone built a login widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865260#M12261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;This is really nice one Girish, Can you please provide the more information over the implementation over the application with the Widget.js and widget.html for the UI. As this will be more cool if it is implemented over the application load, &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 19:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865260#M12261</guid>
      <dc:creator>RavitejaViswanadha1</dc:creator>
      <dc:date>2016-01-26T19:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone built a login widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865261#M12262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was not really clear in what I wanted to do with the login.&amp;nbsp; What I really want is to log in to the app itself.&amp;nbsp; I have taken care of the secure layers with AGOL, but wanted to limit the users to the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I changed the settings in IIS from anonymous Authorization&amp;nbsp; to Windows&amp;nbsp; Authorization. This way anyone in our network can get into the app without logging in, and they can get to it from home with their normal windows login.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 21:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865261#M12262</guid>
      <dc:creator>ChrisBradberry</dc:creator>
      <dc:date>2016-01-27T21:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone built a login widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865262#M12263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If for example you want to get a WMS Map service using Portal and it's authenticated, portal internal proxy will not be able to open it, you have to tell Portal, My Organization &amp;gt; Edit Settings &amp;gt; Trusted Servers &amp;lt;server_hostname_without_protocol_with_port_number&amp;gt; click Save. Return to Map and when reading the WMS OGC he will prompt you for username and password accordingly. It's only an example, if it's not exactly what you need at least can give you some ways aswell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:10:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865262#M12263</guid>
      <dc:creator>FranciscoCosta1</dc:creator>
      <dc:date>2017-12-12T13:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone built a login widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865263#M12264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created Authentication in VS .net MVC framework. The login ware should be in the server side code, not client side.&lt;/P&gt;&lt;P&gt;Login account is stored in database. The account and password mapped with the record then pass the authorization.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The login info saved in session.&amp;nbsp;After passed then the page redirected to the GIS main page.&lt;/P&gt;&lt;P&gt;The video&amp;nbsp; &lt;A href="https://youtu.be/1IFS33sPDhE"&gt;mvc login video&lt;/A&gt;&amp;nbsp;guide you how to build the login.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 08:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-built-a-login-widget/m-p/865263#M12264</guid>
      <dc:creator>baohuachu3</dc:creator>
      <dc:date>2018-01-04T08:39:18Z</dc:date>
    </item>
  </channel>
</rss>

