dwyl / dwyl/learn-elixir

Authentication - Authorisation

Open
#223 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
1.7k
Forks
112
PR merge metrics
No merged PRs in 30d

Description

Does someone has a clear view of what to do, best practice? Or am I throwing a bottle in the ocean...

The ocean is: __Passwords, magic link, OPT, Authenticator, Passkey, OAuth, third-party......__

- for an API, for Liveview, for Phoenix, for channels
- usingJWT/Oauth/Authenticator/OTP./Passkey (for the devices that can use it..... )???

In particular, I understand the Phoenix generates a session token when a user connects. This token is accessible "on mount" (the HTTP call) by the LiveView and put into the socket



[Screenshot 2024-12-20 at 15 45 05](https://hexdocs.pm/phoenix/mix_phx_gen_auth.html)

There is also 2FA using an authenticator.


[Screenshot 2024-12-20 at 15 46 55](https://dashbit.co/blog/introducing-nimble-totp)


And [U2F](https://en.wikipedia.org/wiki/Universal_2nd_Factor)


[Screenshot 2024-12-20 at 15 48 54](https://en.wikipedia.org/wiki/Universal_2nd_Factor)


A comparison between One Time Password and U2F: (same wiki source as above


Screenshot 2024-12-20 at 15 49 38


I saw an "old" post of this:

[Screenshot 2024-12-20 at 15 50 41](https://peterullrich.com/uf2-with-phoenix-live-view)


What about OAthu? Christian Alexander is one of my favorite guy on YT.


[Screenshot 2024-12-20 at 15 52 38](https://www.youtube.com/watch?v=tpIXmmV4ib4)


Passkey with SimpleWebAuthn
[Screenshot 2024-12-20 at 16 40 23](https://simplewebauthn.dev/docs/advanced/passkeys)


or the WIP:
[Screenshot 2024-12-20 at 16 43 16](https://github.com/liveshowy/webauthn_components)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.