question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Login Form

See original GitHub issue

Currently there are a few ways to implement custom login for a user through auth0. What I need is have a completely custom look and feel instead of the styling of auth0. I really don’t like the idea of overriding the CSS implemented by auth0 and hence I want to have my own form.

I tried using the method:

webAuth.redirect.loginWithCredentials({
  connection: 'Username-Password-Authentication',
  username: 'testuser',
  password: 'testpass',
  scope: 'openid'
});

but this gives deprecation warning and tells me to use webAuth.authorize({}). But the problem with the later is it opens up the hosted page where again I need to use the auth0 lock which is predesigned by the auth0.

The other idea of token does not suits well for me as I need to code response type to a standard backend callback url in order to implement the session data.

It would be really great if the feature persists in the future releases as well or there is a way to implement the same with webAuth.authorize method.

Currently using: auth.js --> 8.2.0 browser --> Google Chrome Version 56.0.2924.87 (64-bit)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
SteveByerlycommented, May 9, 2017

This isn’t really a good answer. Auth0 directs users to use the custom login pages all over the documentation, but doesn’t address the fact that several things break when you try to implement using the recommended login functions.

I’m still hoping that the auth0-js docs will address the different auth flows and how/why they differ in more detail.

1reaction
hzalazcommented, May 9, 2017

@bragma in a simplified way yes. As long you use the OAuth flow to authenticate (by calling /authorize) renewAuth will work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customizing the Login Form - WordPress Codex
Make a Custom Login Page · Redirect the user to the Administration Dashboard Screen after login. · Set the ID name for the...
Read more >
How to Create a Custom WordPress Login Page (Ultimate ...
WPForms is the best WordPress form builder plugin on the market. It allows you to easily create custom login and registration forms for...
Read more >
How to Create WordPress Custom Login Page (5 Easy Methods)
Method 1: Customize the Native WordPress Login Page with Plugin · Method 2: Design a Custom Login Page With Elementor + Ultimate Addons...
Read more >
How to Make a WordPress Custom Login Page (The EASY Way)
Step 1: Install the WPForms Plugin · Step 2: Create a Custom WordPress Login Form · Step 3: Add a Forgot Password Link...
Read more >
Creating a Custom Login Form - Spring
This guide builds off of Hello Spring MVC Security Java Config to explain how to configure and use a custom login form with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found