Auth

3 years ago by simple to c/programmer_humor

most_likely_bollocks 21 points 3 years ago

It’s really not that hard. Authentication is about proving the identity of the subject e.g. logging in using information only known / in possession by the subject (password, mfa etc). Authorization is about establishing what permissions that identity has in a given context. E.g. is this identity allowed to create/read/update/delete these resources. Authorization is typically done through roles (RBAC) or more granulary through attributes (ABAC).

path: 0 541626, hotness: undefined, score: 21, children: 2
csm10495 13 points 3 years ago

Now how does this compare to AuthN and AuthZ...

Holy crap after writing that AuthN must be authentication and AuthZ must be authorization.

I'm a genius.

path: 0 541626 541801, hotness: undefined, score: 13, children: 1
most_likely_bollocks 3 points 3 years ago

Indeed you are ;)

path: 0 541626 541801 542556, hotness: undefined, score: 3, children: 0
carl_the_grackle 18 points 3 years ago

Just call it a11n or a12n and nobody will know if they can't count or if you can't count

path: 0 534906, hotness: undefined, score: 18, children: 0
kensand 13 points 3 years ago

And even with 'AuthN' vs 'AuthZ' it always takes me a minute to spell them out and work out which is which

path: 0 534088, hotness: undefined, score: 13, children: 12
blackstrat 5 points 3 years ago

What's this authN / authZ business?

path: 0 534088 534183, hotness: undefined, score: 5, children: 11
RandomDevOpsDude 14 points 3 years ago

AutheNtication vs. AuthoriZation, I believe

path: 0 534088 534183 534184, hotness: undefined, score: 14, children: 9
blackstrat 6 points 3 years ago

How's that supposed to help?

path: 0 534088 534183 534184 534320, hotness: undefined, score: 6, children: 6
dreadgoat 21 points 3 years ago

AuthN is: I claim to be dreadgoat, but how can I prove it? (login, password, mfa)
AuthZ is: Now that you know I am dreadgoat, do I have permission to post this comment? (access control, roles, attributes)

path: 0 534088 534183 534184 534320 534948, hotness: undefined, score: 21, children: 3
SpezCanLigmaBalls 3 points 3 years ago

It doesn’t

path: 0 534088 534183 534184 534320 534860, hotness: undefined, score: 3, children: 0
RandomDevOpsDude 1 point 3 years ago
path: 0 534088 534183 534184 534320 535074, hotness: undefined, score: 1, children: 0
SpaceNoodle 2 points 3 years ago

AutheNtication

path: 0 534088 534183 534184 535473, hotness: undefined, score: 2, children: 1
RandomDevOpsDude 2 points 3 years ago

Ahh, that would make more sense, thank you - corrected

path: 0 534088 534183 534184 535473 535988, hotness: undefined, score: 2, children: 0
kensand 6 points 3 years ago

That's the thing, nobody really knows!

path: 0 534088 534183 534911, hotness: undefined, score: 6, children: 0
bsdGuy0 6 points 3 years ago

Who doesn't like compounding two words with different meaning by definition, but for some inexpiable reason have the same meaning in the programming world, by shortening them?

Now the poor, average programmer has to deal with strange words. One such example is "permission," which is normally used within a casual context, rather then within a more serious context, like a program handling secure data. The poor programmer can now no longer take his job seriously, and is now forever in an existential crisis, due to the lack of formality. ;)

path: 0 539518, hotness: undefined, score: 6, children: 0
yoast 5 points 3 years ago

I made a class one time called Auther that did both. Got some chuckles in the code review so I was pretty happy with that

path: 0 538397, hotness: undefined, score: 5, children: 0
nibblebit 3 points 3 years ago

Access Control

path: 0 534372, hotness: undefined, score: 3, children: 0
programmer_humor
programmer_humor

@programming.dev

login for more options
33675
2568
7703

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.

go to feed...