Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Working on behalf of users in workspace apps #608
Comments
|
|
|
thanks for the feedback @jd0920 I've got an implementation in #609 that uses |
|
Though it's a little bit of a longer name, maybe |
|
I vote for |
|
I think at this point, i'm also leaning towards i know this is a short timeline, but i'd like to get this feature (and many more sitting on |
Description
Slack's workspace apps now support invoking methods on behalf of a specified user.
The
WebClientclass needs to implement support for this new style of calling methods. The following is a proposal for changes to the API for that purpose.ActorEnabledinterface which defines an optional propertyactor?: string.ActorEnabled.WebClient#apiCall(), detect the presence of anoptions.actorproperty, and when present use the value in request headerX-Slack-User.Open questions:
actor? One constraint is that we don't want to use a name that might otherwise be used, or used in the future, as a method argument name. It also should communicate that the app is acting on behalf of this user.actoris mostly okay, but it isn't perfect because truly the app is the actor, and its acting as the user. So perhapsactingAs?Requirements (place an
xin each of the[ ])