Add Basic HTTP Authentication to Index Route: Full example #235
christianhpoe
started this conversation in
Show and tell
Replies: 1 comment
-
|
If anyone is interested, there's more complete example of basic http authentication for sqladmin: https://gist.github.com/Dmitri-Sintsov/809cc887605d81088382982e224c6bea |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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