Salta al contenuto
0
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
Collassa

Forum Federato

Di Piero Bosio
  1. Home
  2. Categorie
  3. Technical Discussion
  4. Breaking up FEP d8c2 (OAuth 2.0 profile for the ActivityPub API)

Breaking up FEP d8c2 (OAuth 2.0 profile for the ActivityPub API)

Pianificato Fissato Bloccato Spostato Technical Discussion
3 Post 3 Autori 0 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • evanundefined Questo utente è esterno a questo forum
    evanundefined Questo utente è esterno a questo forum
    evan
    scritto su ultima modifica di
    #1

    Hey, all. So, almost two years ago I wrote this FEP:

    https://codeberg.org/fediverse/fep/src/branch/main/fep/d8c2/fep-d8c2.md

    It defines a profile for using OAuth 2.0 with the ActivityPub API, with a few components:

    • Using the bog-standard OAuth authorization code flow as described at https://oauth.com/, including PKCE
    • Using the endpoints, oauthAuthorizationEndpoint and oauthTokenEndpoint properties of an actor for discovery of endpoints
    • Using a small set of scopes (defined in the FEP as 'read', 'write' and 'sameorigin', but with a much longer more detailed list here
    • A registrationless client ID mechanism that depends on having an Application ActivityPub object live on the Web.

    Of these 4 points, I think the first two are defined pretty well elsewhere. It is probably a good idea to just let those be defined elsewhere. I think the possibility of an OAuth TF for the SocialCG suggests that those options can be worked out there.

    That leaves the two novel parts of the FEP: the registration-less client IDs, and the scopes. I think I'd like to slim down the current FEP to just the registration-less client IDs, and start another FEP for the scopes.

    julianundefined 1 Risposta Ultima Risposta
    • evanundefined evan

      Hey, all. So, almost two years ago I wrote this FEP:

      https://codeberg.org/fediverse/fep/src/branch/main/fep/d8c2/fep-d8c2.md

      It defines a profile for using OAuth 2.0 with the ActivityPub API, with a few components:

      • Using the bog-standard OAuth authorization code flow as described at https://oauth.com/, including PKCE
      • Using the endpoints, oauthAuthorizationEndpoint and oauthTokenEndpoint properties of an actor for discovery of endpoints
      • Using a small set of scopes (defined in the FEP as 'read', 'write' and 'sameorigin', but with a much longer more detailed list here
      • A registrationless client ID mechanism that depends on having an Application ActivityPub object live on the Web.

      Of these 4 points, I think the first two are defined pretty well elsewhere. It is probably a good idea to just let those be defined elsewhere. I think the possibility of an OAuth TF for the SocialCG suggests that those options can be worked out there.

      That leaves the two novel parts of the FEP: the registration-less client IDs, and the scopes. I think I'd like to slim down the current FEP to just the registration-less client IDs, and start another FEP for the scopes.

      julianundefined Questo utente è esterno a questo forum
      julianundefined Questo utente è esterno a questo forum
      julian
      scritto su ultima modifica di
      #2

      Hey evan@activitypub.space, I am all-in on more, simpler FEPs over monolithic impenetrable FEPs.

      I take it that points 1 and 2 are due to concerns raised by thisismissem@hachyderm.io about how OAuth2 properties are already advertised in a standardized manner (I believe per OIDC or similar?) — no objections there.

      On the topic of scopes, I know benpate@mastodon.social's 3b86 (Activity Intents) had some ideas on defining intents that have some parallels to scopes. I don't agree with hardcoding them all into the FEP itself, but I'm interested in exploring how we structure scopes so that they're more straightforward as not quite as fine-grained — a single scope for every ActivityStreams activity type might be a bit of overkill.

      1 Risposta Ultima Risposta
      • Ben Pate 🤘🏻undefined Questo utente è esterno a questo forum
        Ben Pate 🤘🏻undefined Questo utente è esterno a questo forum
        Ben Pate 🤘🏻
        scritto su ultima modifica di
        #3

        On the Activity Intents FEP, there was a fair bit of discussion about how to do the namespaces.

        Using the W3C website was not my first suggestion, but was recommended by others in the community.

        It’s a little clunky, but it is short and is tied to a domain that probably isn’t going to go away. If there is another better standard to follow, I’m all in.

        @julian @evan @thisismissem

        1 Risposta Ultima Risposta
        Rispondi
        • Topic risposta
        Effettua l'accesso per rispondere
        • Da Vecchi a Nuovi
        • Da Nuovi a Vecchi
        • Più Voti


        • Accedi

        • Accedi o registrati per effettuare la ricerca.
        • Primo post
          Ultimo post