Page MenuHomePhorge

Set base-uri as User-Agent for OAuth1 and Github authentication
ClosedPublic

Authored by aklapper on Aug 1 2024, 14:30.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

aklapper requested review of this revision.Aug 1 2024, 14:30

Maybe better to discuss a little bit in T15848: newOAuth1Future doesn't set a User-Agent since I'm curious but also confused

Moreover traditionally, the user agent is the name of the software, not the origin. So this could also deserve another comment about why we should replace the specific software name with a fixed origin. Premising that I agree that the current user agent may be re-discussed, to include more information, like, "Phorge", and the version of Phorge.

Also, in case, maybe probably nice to have a getUserAgent(__CLASS__) method in parent class PhutilAuthAdapter()

This revision now requires changes to proceed.Thu, Sep 5, 19:29

Maybe better to discuss a little bit in T15848: newOAuth1Future doesn't set a User-Agent since I'm curious but also confused

Not exactly sure what the confusion is. The patch and task are clear to me and solve the issue.

Moreover traditionally, the user agent is the name of the software, not the origin. So this could also deserve another comment about why we should replace the specific software name with a fixed origin. Premising that I agree that the current user agent may be re-discussed, to include more information, like, "Phorge", and the version of Phorge.

Actually no, user agents for automated tooling often includes some sort of contact email or website or link to a page describing the bot/tool. I think this should be treated like that.

Also, in case, maybe probably nice to have a getUserAgent(__CLASS__) method in parent class PhutilAuthAdapter()

OK thanks (I need some rest)

At this point the only remaining feedback is about a generalization with a "getUserAgent()" in the parent class I think

This revision is now accepted and ready to land.Thu, Sep 5, 21:01