DEV Community

Cover image for Build a discoverable change password form
Axel Navarro for Cloud(x);

Posted on

8 3

Build a discoverable change password form

We can use a well-known URL in our websites to make our change password forms discoverable by tools, like 1Password, LastPass, Bitwarden, etc.

For https://example.com, this magic URL would be https://example.com/.well-known/change-password.

Let's see how this works. đź’Ş

A well-known URL

What is a well-known URI? It's basically a group of predefined "links" inside a /.well-known/ directory of a website.

These links can be either a HTTP redirect, like the change-password URI, or a document with a specific format, like the "well known" OpenID Connect configuration in JSON format located at /.well-known/openid-configuration. We can find an example here https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration.

Just a redirect

The specification for Well-Known Change Password URL is still in draft, but we can find examples in popular websites like GitHub, Slack, or Wikipedia.

đź’ˇ If you can't find the reset password link in a website, you can use this Well-Known URL.

Conclusion

We can programmatically advertise where a user can change their password, improving the security and usability of a website that requires authentication.

Now you can create a semantic HTML form for changing passwords and the password manager tool will do the rest.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more