﻿@using System.Configuration;
@{
    ViewBag.Title = "Login";
}

<div id="root" style="width: 280px; margin: 40px auto;">
</div>
@Html.AntiForgeryToken()
<script src="https://cdn.auth0.com/js/lock-7.9.min.js"></script>
<script>
    if (!window.location.origin) {
        window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
    }

    var lock = new Auth0Lock('@ConfigurationManager.AppSettings["auth0:ClientId"]', '@ConfigurationManager.AppSettings["auth0:Domain"]');

    var xsrf = document.getElementsByName("__RequestVerificationToken")[0].value;

    lock.show({
        container: 'root'
      , callbackURL: window.location.origin + '/signin-auth0'
      , responseType: 'code'
      , authParams: {
          scope: 'openid name email',
          state: 'xsrf=' + xsrf + '&ru=' + '@ViewBag.ReturnUrl'
      }
    });
</script>


﻿@using System.Configuration;
@{
    ViewBag.Title = "Login";
}

<div id="root" style="width: 280px; margin: 40px auto;">
</div>
@Html.AntiForgeryToken()
<script src="https://cdn.auth0.com/js/lock-7.11.min.js"></script>
<script>
    if (!window.location.origin) {
        window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
    }

    var lock = new Auth0Lock('@ConfigurationManager.AppSettings["auth0:ClientId"]', '@ConfigurationManager.AppSettings["auth0:Domain"]');

    var xsrf = document.getElementsByName("__RequestVerificationToken")[0].value;

    lock.show({
        container: 'root'
      , callbackURL: window.location.origin + '/signin-auth0'
      , responseType: 'code'
      , authParams: {
          scope: 'openid name email',
          state: 'xsrf=' + xsrf + '&ru=' + '@ViewBag.ReturnUrl'
      }
    });
</script>


Update lock to version 7.11
Update lock to version 7.11
