authgear / authgear/authgear-server
Allow adding a "reason" for re-auth flow
- Dominant language
- Go
- Stars
- 2k
- Forks
- 125
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 32
Description
**Problem**
Right now, when a certain action trigger a re-auth flow, users will be redirected immediately to the *Enter password* screen. Which is confusing for users.
For example, when you download the Admin API keys in Authgear Portal:

You will be redirected to this page immediately:

It is confusing, as users do not know why they have to type the password, it feel even like a phishing page if you're supicious.
**Appetite**
1 or 2 weeks
**Solution**
One idea is whenever a re-auth flow might be trigger, we shall have a "reason" string as a parameter, and show that reason at a prominent area in the Enter Password screen.
**Rabbit holes**
Details about the solution worth calling out to avoid problems
**No-goes**
Functionality or use cases we intentionally aren’t covering to fit the appetite
Contributor guide
Research direction
Start by tracing the re-authentication flow from the action trigger to the Enter Password screen, then identify the parameter and UI paths involved. Done means callers can provide a reason and users see it prominently before entering their password, with the affected flow covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- authentication, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100