Skip to content

Authentication #413

Answered by mattrobenolt
shinebayar-g asked this question in Q&A
Dec 7, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hey there, I'm not sure any official patterns have been adopted or promoted, but I'd strongly recommend adopting patterns that work/worked with a normal REST API or something of that sort. In my case, I've used this with both HTTP basic auth and some other derivatives like JWT-ish. Cookies with sessions would also be trivial.

I'd recommend implementing this as an HTTP middleware. If it's something a bit more complex, maybe as an actual interceptor. In my case, everything as an HTTP middleware has been plenty sufficient and the same middleware is shared and used with Connect endpoints and non Connect endpoints.

I'm happy to share some pseudocode if you want some direction.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shinebayar-g
Comment options

@akshayjshah
Comment options

Answer selected by shinebayar-g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants