You are here

auth0-login.html.twig in Auth0 Single Sign On 8

Same filename and directory in other branches
  1. 8.2 templates/auth0-login.html.twig
<div id="auth0-login-form" style=" min-height: 440px;"></div>

<script id="auth0" src="{{ widgetCdn }}"></script>
<script type="text/javascript">

    var lock_options = {{ lockExtraSettings|raw }};
    lock_options.container = lock_options.container || 'auth0-login-form';
    lock_options.allowSignUp = lock_options.allowSignUp || {{showSignup ? "true" : "false"}};
    lock_options.auth = lock_options.auth || {};
    lock_options.auth.container = lock_options.auth.container || 'auth0-login-form';
    lock_options.auth.redirectUrl = lock_options.auth.redirectUrl || '{{callbackURL}}';
    lock_options.auth.responseType = lock_options.auth.responseType || 'code';
    lock_options.auth.params = lock_options.auth.params || {};
    lock_options.auth.params.scope = lock_options.auth.params.scope || 'openid email';
    lock_options.auth.params.state = '{{state}}';

    var lock = new Auth0Lock('{{clientID}}','{{domain}}', lock_options);

    lock.show();

</script>

<style type="text/css">
{{ loginCSS|raw }}
</style>

File

templates/auth0-login.html.twig
View source
  1. <div id="auth0-login-form" style=" min-height: 440px;"></div>
  2. <script id="auth0" src="{{ widgetCdn }}"></script>
  3. <script type="text/javascript">
  4. var lock_options = {{ lockExtraSettings|raw }};
  5. lock_options.container = lock_options.container || 'auth0-login-form';
  6. lock_options.allowSignUp = lock_options.allowSignUp || {{showSignup ? "true" : "false"}};
  7. lock_options.auth = lock_options.auth || {};
  8. lock_options.auth.container = lock_options.auth.container || 'auth0-login-form';
  9. lock_options.auth.redirectUrl = lock_options.auth.redirectUrl || '{{callbackURL}}';
  10. lock_options.auth.responseType = lock_options.auth.responseType || 'code';
  11. lock_options.auth.params = lock_options.auth.params || {};
  12. lock_options.auth.params.scope = lock_options.auth.params.scope || 'openid email';
  13. lock_options.auth.params.state = '{{state}}';
  14. var lock = new Auth0Lock('{{clientID}}','{{domain}}', lock_options);
  15. lock.show();
  16. </script>
  17. <style type="text/css">
  18. {{ loginCSS|raw }}
  19. </style>