!DnzGDOEluSXwfOUoKI:matrix.org

Contributing (Authelia)

1443 Members
Discuss Contributing to the Authelia Open Source project24 Servers

Load older messages


SenderMessageTime
21 Mar 2024
@james:authelia.comJamesThere's probably a good way to do what I did with a context but I couldn't get it quite right due to juggling too many states09:11:43
@crowley723:matrix.orgBrynnWould it be a bad idea to store expiry datetime in the database alongside the session information? Then the client polls the server every x time. When you get within x time of the expiry a notification pops up.09:15:09
@crowley723:matrix.orgBrynnWould that help with limiting states? 09:15:34
@crowley723:matrix.orgBrynn(Still very new to statelessness)09:15:50
@james:authelia.comJamesWell my particular issue is frontend state, you have to store information on what information is required for elevation, and which dialog is showing, etc. 09:16:34
@crowley723:matrix.orgBrynnWdym. Like what the page looks like when the user asks to auth so after they auth the page looks the same?09:17:39
@james:authelia.comJamesIt gets a bit more complex when you give admins a few options for how to enforce it. But yea09:17:40
@james:authelia.comJamesWe store the expiration in the session data09:17:47
@james:authelia.comJamesWell there's the original "open dialog" callback which you keep track of, I think from memory there are 2 or 3 total dialogs, there's one for just the code, there's one for the code or 2FA, and one for 2FA. You do a request to see if a user has elevation information in the session and it's not expired, if it's not expired the callback is called, otherwise the appropriate dialog opens, and if needed the appropriate second dialog opens, then the callback is called provided there are no errors.09:20:14
@james:authelia.comJamesActually pretty sure we dont' store a callback, just the "opening" state of the final dialog. 09:20:59
@crowley723:matrix.orgBrynnAh OK. I haven't really done much with nested modals. Should be fun! Anyway I'll mock up what I have in mind tomorrow. 09:21:41
@james:authelia.comJamesMaybe that's what I needed to use a context now that I think about it09:21:53
@james:authelia.comJamesThey're all separate, it's just a flow them haha, felt that was the simplest means to get it right09:22:24
@james:authelia.comJames * Maybe that's what I needed to use a context now that I think about it (a callback)09:22:46
@james:authelia.comJames * Maybe that's what I needed to use a context now that I think about it (a callback, pass it to the context to call after it's done with "auth" or discarded on error)09:23:03
@crowley723:matrix.orgBrynnimage.png
Download image.png
23:23:23
@crowley723:matrix.orgBrynnjust sharing what I have so far. 23:23:24
@crowley723:matrix.orgBrynntalked to a friend and he suggested icons next to the navbar items and that the navbar should collapse like on the users settings page23:23:56
23 Mar 2024
@james:authelia.comJamesNice reference design, GitLab when you generate a client shows the client id, and has a client secret which you can't see but you can copy or uncover and it warns you about only getting to see it once.06:53:10
@james:authelia.comJamesI'll show some images06:53:17
@james:authelia.comJamesimage.png
Download image.png
06:55:19
@james:authelia.comJamesimage.png
Download image.png
06:55:45
@james:authelia.comJamesView after returning to the app06:55:52
@crowley723:matrix.orgBrynnthe actual item display is taking a little longer than I was expecting, Im trying to do it all in react for some practice and Im having to learn at the same time.07:01:46
@james:authelia.comJamesAre you looking at the examples on the MUI website?07:03:11
@crowley723:matrix.orgBrynnyeah, I'm thinking the actual item display will be an accordion, same with users07:03:54
@crowley723:matrix.orgBrynn * yeah, I'm thinking the actual item display will be an accordion, same with users list07:04:27
@james:authelia.comJamesFor reference we can take our time, I had planned on doing that anyway, and pushing to get another feature release out before this is merged (so we can hopefully have more to add to it).07:07:28
@crowley723:matrix.orgBrynn
In reply to @james:authelia.com
sent an image.
cloudflare does the same thing when you create an api key.
07:18:13
@james:authelia.comJamesIt's a common pattern07:18:28

Show newer messages


Back to Room ListRoom Version: 6