liveBook · Manning

Confirmation link

As explained in The Well-Grounded Python Developer: How the pros use Python and Flask

A confirmation link is a URL that carries account-verification information and can be opened by a user to confirm registration.

A confirmation link closes the loop on registration by sending a verification URL to the email address supplied by a new user. This is especially useful when the email address serves as the account’s unique identifier. section 9.2

A practical confirmation flow combines several application responsibilities:

  • Store a confirmed Boolean field on the user, initially set to False. section 9.2.1
  • Build an external confirmation URL and include it in an HTML email. section 9.2.1

MyBlog registration

After a user registers with MyBlog, the application creates a confirmation token, generates a URL for the confirmation endpoint, and sends an email through SendInBlue. Opening the URL confirms the account only when the token is valid, unexpired, and associated with that user. section 9.2 section 9.2.1

How The Well-Grounded Python Developer: How the pros use Python and Flask covers it

How deep it goes
Traces token creation, email delivery, endpoint handling, expiration checks, identity matching, and persistence.
Examples
Uses MyBlog registration, SendInBlue email delivery, an external confirmation URL, and a time-limited token.
What it assumes
Assumes user registration, an email address on the user model, database persistence, and a configured application secret.
What you can do after
Build an email-confirmation workflow with reusable delivery, signed tokens, expiry checks, and persisted account activation.
How it connects
Connects user registration, email delivery, signed tokens, account activation, and database state.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Well-Grounded Python Developer: How the pros use Python and Flask. The section links point to the parts of the book it draws on.