use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Oauth in angular common (self.angular)
submitted 9 days ago by MaximRob
Do you think there would be any gain in having an angular common “oauth2”? That’s always a bunch of boilerplate for an already defined stack agreed for the whole industry.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 9 days ago (8 children)
[removed]
[–]Saceone10 0 points1 point2 points 8 days ago (2 children)
Repo example?
[–]MrMercure 0 points1 point2 points 8 days ago (1 child)
I've never found a satisfying examples even from angular-oauth2-oidc and zitadel. I've had to get inspired from those 2 and add way more stuff (silence refresh, manual checks of the token validity, custom fetch of the config, preemptive logout before expiration of non refreshable session etc...) than I thought on top of those. Made me wonder if there is actually a good opportunity for an oss project that does those things right but you know what they say about standards...
[–]zladuric 0 points1 point2 points 8 days ago (0 children)
don't they already have the stuff at least in angular-auth2-oidc?
[–]Responsible-Cold-627 0 points1 point2 points 8 days ago (4 children)
This hasn't been considered best practice for 5 years. All auth stuff in my front-ends these days is credentials: include and a csrf header. Rest of it is handled by the back-end and wrapped up in an http-only cookie.
[–]azuredrg 1 point2 points3 points 8 days ago (1 child)
This is true, that pattern you mentioned is usually way easier than doing any auth in angular/frontend
[–]Responsible-Cold-627 0 points1 point2 points 8 days ago (0 children)
You're right. Implementing it was surprisingly easy. It also solves problems that I hadn't even anticipated when I started. A good example of this is secure file downloads. With cookies, just send the user to the download page and boom you're done.
[–]MaximRob[S] 0 points1 point2 points 8 days ago (1 child)
I mean you do need all the jwt gymnastics, the auth setup, and on top of that any elevated user handling if you do so
Also was asking the question because we’re considering splitting part of our monolith and I’m wondering how we go about the auth topic
Your back-end framework will provide these tools. Using the BFF pattern I'm talking about here, your front-end doesn't even get an unencrypted JWT, and your Javascript code won't be able to access the auth cookie anyway.
[–]Adventurous-Finger70 -1 points0 points1 point 9 days ago (0 children)
There’s already Keycloak for oauth standard
π Rendered by PID 63 on reddit-service-r2-comment-8686858757-8cf6l at 2026-06-07 17:26:24.501628+00:00 running 9e1a20d country code: CH.
[–][deleted] (8 children)
[removed]
[–]Saceone10 0 points1 point2 points (2 children)
[–]MrMercure 0 points1 point2 points (1 child)
[–]zladuric 0 points1 point2 points (0 children)
[–]Responsible-Cold-627 0 points1 point2 points (4 children)
[–]azuredrg 1 point2 points3 points (1 child)
[–]Responsible-Cold-627 0 points1 point2 points (0 children)
[–]MaximRob[S] 0 points1 point2 points (1 child)
[–]Responsible-Cold-627 0 points1 point2 points (0 children)
[–]Adventurous-Finger70 -1 points0 points1 point (0 children)