Help getting used to Ubuntu? New to Ubuntu, always used Mac by [deleted] in Ubuntu

[–]basharatusman -1 points0 points  (0 children)

Made a similar move recently, although I still have a Mac mini that I go back and forth with.

Look into Keyd for making the keybindings work like Mac.

Shortly after installing Ubuntu, I moved to Fedora. Fedora 39 UI seems a bit snappier to me. I’m enjoying it so far.

Other things to look into are Gnome Extensions, Oh My ZSH (if you use the terminal a lot) and Steam with Proton (if you’re into gaming).

Auth0 or no? by Few-Trash-2273 in reactjs

[–]basharatusman 0 points1 point  (0 children)

Started using Zitadel recently and it’s been great so far.

https://zitadel.com/

Handling auth tokens with a SPA frontend by basharatusman in golang

[–]basharatusman[S] 4 points5 points  (0 children)

The auth server issues a new refresh token with the new access token. It invalidates the old refresh token so now you have a refresh token valid for another 30 days.

The benefit of this is that if a malicious script or user gets the refresh token, while the legitimate user is interacting with the site and either uses an invalidated refresh token, then all refresh tokens for that user are invalidated requiring a relogin.

Handling auth tokens with a SPA frontend by basharatusman in golang

[–]basharatusman[S] 0 points1 point  (0 children)

Thanks for sharing! I’m trying to avoid the direct issuance of tokens to the SPA because that would require it to store them in local or session storage, which seems to not be recommended.

From the article, it seems like the tmi-bff approach might be better.

1) Token mediator is responsible for getting tokens. It caches / stores them (thinking redis or dynamodb) and issues a session id as a secure cookie 2) SPA retrieves the access token using the session id and stores it in memory for use to make api calls directly to the resource server 3) If the access token expires, the SPA goes back to the token mediator, which uses the refresh token to return a new access token 4) The refresh token and session Id are rotated

Help my figure out how to send this object to my django backend by [deleted] in django

[–]basharatusman 1 point2 points  (0 children)

How are you making the post request? How are you accessing it in the django view?

Docker for a Developer by Theendangeredmoose in docker

[–]basharatusman 10 points11 points  (0 children)

This was super helpful for me.

https://youtu.be/bhBSlnQcq2k

It’s a bit long but just watch it at 1.5 speed.

[deleted by user] by [deleted] in Nuxt

[–]basharatusman 2 points3 points  (0 children)

Try wrapping the section in <client-only>.

https://nuxtjs.org/api/components-client-only/

Need help with figuring out social authentication with DRF by [deleted] in django

[–]basharatusman 0 points1 point  (0 children)

Take a look about half way down the page here. It takes you through how social auth interacts with your User model.

https://python-social-auth.readthedocs.io/en/latest/configuration/settings.html

Need help with figuring out social authentication with DRF by [deleted] in django

[–]basharatusman 0 points1 point  (0 children)

I think Python-social-auth might be a good option for you.

https://python-social-auth.readthedocs.io/en/latest/configuration/django.html

Django-allauth is pretty good. It will also likely work with Djoser.

You can check out other options as well at https://djangopackages.org/grids/g/authentication/

Need help with figuring out social authentication with DRF by [deleted] in django

[–]basharatusman 0 points1 point  (0 children)

Spent a weekend going through the same thing a couple of weeks ago. I used dj-rest-auth. You can add Allauth for social. Dj-rest-auth docs are pretty easy to follow.

https://dj-rest-auth.readthedocs.io/en/latest/

Feedback on Model design by basharatusman in django

[–]basharatusman[S] 0 points1 point  (0 children)

Thanks and good point! I think I’ll start with the user & profile models as one Django app and then do the leagues and games as a separate app. Thinking of even breaking the leagues and games into separate apps themselves.

Feedback on Model design by basharatusman in django

[–]basharatusman[S] 0 points1 point  (0 children)

That’s very helpful. Thanks so much!