googleapis / googleapis/signet

signet as Faraday middleware?

Open
#7 1 comment 0 reactions 0 assignees View on GitHub
type: feature request
Dominant language
Ruby
Stars
389
Forks
167
PR merge metrics
No merged PRs in 30d

Description

With the switch to Faraday, it might make sense to offer signet as Faraday middleware rather than acting as a front-end to it. E.g.

```
client = Signet::OAuth2::Client.new...
access_token = ... # get access token

conn = Faraday.new do |builder|
builder. user Signet::OAuth2::Client, access_token
end

conn.get(...)
```

(Copied from @sqrrrl's issue on the original Signet project.)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing Signet::OAuth2::Client and the Faraday middleware integration described in the example. Define the middleware interface and verify that a Faraday connection can use the OAuth2 access token for requests; the issue names no files or tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api, authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.