SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
simple@lemmy.mywire.xyz to Programmer Humor@programming.dev · 2 years ago

Auth

lemmy.mywire.xyz

message-square
24
fedilink
350

Auth

lemmy.mywire.xyz

simple@lemmy.mywire.xyz to Programmer Humor@programming.dev · 2 years ago
message-square
24
fedilink
alert-triangle
You must log in or register to comment.
  • most_likely_bollocks@programming.dev
    link
    fedilink
    arrow-up
    18
    ·
    2 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).

    • csm10495@sh.itjust.works
      link
      fedilink
      arrow-up
      12
      ·
      2 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.

      • most_likely_bollocks@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Indeed you are ;)

  • carl_the_grackle@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    2 years ago

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

  • kensand@lemmy.kensand.net
    link
    fedilink
    arrow-up
    10
    ·
    2 years ago

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

    • blackstrat@lemmy.fwgx.uk
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      What’s this authN / authZ business?

      • RandomDevOpsDude@programming.dev
        link
        fedilink
        English
        arrow-up
        9
        ·
        edit-2
        2 years ago

        AutheNtication vs. AuthoriZation, I believe

        • blackstrat@lemmy.fwgx.uk
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          How’s that supposed to help?

          • dreadgoat@lemmy.fmhy.ml
            link
            fedilink
            arrow-up
            15
            ·
            edit-2
            2 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)

            • blackstrat@lemmy.fwgx.uk
              link
              fedilink
              arrow-up
              3
              ·
              2 years ago

              I know what they are and the differences, I thought the N and Z would somehow be an easy way to work it out/remember. But the trick is just to remember which is which.

              • dreadgoat@lemmy.fmhy.ml
                link
                fedilink
                arrow-up
                1
                ·
                2 years ago

                N comes before Z in the alphabet, and you must always AuthN before you can AuthZ. Easy mnemonic.

            • RandomDevOpsDude@programming.dev
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 years ago

              This is a great explanation, thank you.

              I deal mainly with authorization and I’m not sure I’ve ever had the differences explained this simply (so I incorrectly lump them together)

          • RandomDevOpsDude@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 years ago

            deleted by creator

          • SpezCanLigmaBalls@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 years ago

            It doesn’t

        • SpaceNoodle@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2 years ago

          AutheNtication

          • RandomDevOpsDude@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

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

      • kensand@lemmy.kensand.net
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        That’s the thing, nobody really knows!

  • bsdGuy0@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    2 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. ;)

  • Yoast@notdigg.com
    link
    fedilink
    arrow-up
    5
    ·
    2 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

  • nibblebit@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    Access Control

  • RandomDevOpsDude@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    deleted by creator

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.02K users / day
  • 4.56K users / week
  • 8.23K users / month
  • 17.9K users / 6 months
  • 314 local subscribers
  • 23.3K subscribers
  • 1.41K Posts
  • 52.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org