Add Basic HTTP Authentication to Index Route: Full example #235
christianhpoe
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
thanks for this great package! Since I saw a few authentication questions and was struggling to implement it myself I thought i'd share my solution. Maybe you have feedback or find it helpful.
The trick is to overwrite the indexroute with a CustomAdmin Class and return a Response with a WWW-authenticate Header.
Beta Was this translation helpful? Give feedback.
All reactions