Package com.irurueta.authserver.authorization.domain.ott
package com.irurueta.authserver.authorization.domain.ott
One-time tokens: e-mail and SMS codes and magic links as a sign-in method. The model of a stored code, the policy
(lifetimes, length, attempts) and the ports for storing, generating, hashing and delivering them.
-
ClassDescriptionPort that removes the expired magic-link tokens.A numeric one-time code that was issued to a user.Port that generates the numeric codes users type.Port that hashes one-time codes so that only the hash is stored.Port that stores the numeric one-time codes.Channel through which a one-time token reaches the user.Port that delivers a one-time token to a destination through a channel.Thrown when a one-time token could not be delivered.Shape of a one-time token.The rules of one-time tokens: how long each kind lives, how long a code is and how many wrong submissions are tolerated.What a one-time token is used for.