authgear / authgear-server

Open source alternative to Auth0 / Firebase Auth
https://www.authgear.com
Apache License 2.0
72 stars 29 forks source link

Endpoint Direct Access behaviour #4371

Open fungc-io opened 1 week ago

fungc-io commented 1 week ago

If user enters the endpoint without OIDC flow, we currently show either an error page or redirect the user elsewhere after login, depending on whether custom domain is set.

image.png

This page is not helpful for the end-user as because of the jargon in the message.

Proposal

To add a configuration in Authgear, for direct access:

  1. Show a simple page with the brand logo and a button to a URL (Default)
    1. a link to home page configured by the admin, no link no button
  2. Show the Login page and Redirect to another URL (Selectable when custom domain is set)
    1. a link configured by the admin
    2. Current behaviour with "Post Login Link"
  3. Show the Login page and Redirect to settings page (Selectable when custom domain is set)
    1. Current behaviour without "Post Login Link"

Options 2,3 are greyed out with hints: “custom domain required"

The config page will be placed in "Advanced" > "Endpoint Direct Access", the page should clearly describe the config is controlling the behaviour for end-user accessing the endpoint url directly.

linear[bot] commented 1 week ago

DEV-1442 Endpoint Direct Access behaviour