• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sgerrand / ex_bamboo_hr / 35250610870
100%

Build:
DEFAULT BRANCH: main
Ran 17 Sep 2026 05:06PM UTC
Jobs 1
Files 17
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Sep 2026 05:05PM UTC coverage: 100.0%. Remained the same
35250610870

push

github

web-flow
feat!: support OAuth 2.0 bearer tokens (#112)

BambooHR now recommends OAuth over API keys, and scoped endpoints are
only reachable with a token. Client.new/1 takes auth: {:bearer, token}
alongside the existing API key, which is now shorthand for
auth: {:api_key, key}.

The two methods use different hosts. API keys go to the gateway host
with the company domain in the path, as before. Bearer tokens go to
https://{company_domain}.bamboohr.com/api, the only server in BambooHR's
OpenAPI spec and the one its own SDKs use, where the company domain is
the host rather than a path segment. The client picks the right shape
from the auth method, so a base_url written for one will not work for
the other. Whether bearer tokens also work on the gateway host is
unverified, so the existing API key behaviour is left exactly as it was.

BambooHR.OAuth.refresh_token/1 exchanges a refresh token for a new pair.
It holds no state: storing tokens and deciding when to refresh stay with
the caller, which keeps this client free of background processes and of
any opinion about where secrets live. It takes a keyword list rather
than four positional strings, which are easy to transpose.

BREAKING CHANGE: the Client struct's :api_key field is replaced by
:auth, holding {:api_key, key} or {:bearer, token}. Passing api_key: to
new/1 is unchanged. Code reading client.api_key must read client.auth.

26 of 26 new or added lines in 2 files covered. (100.0%)

238 of 238 relevant lines covered (100.0%)

40.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35250610870.1 17 Sep 2026 05:05PM UTC 17
100.0
GitHub Action Run
Source Files on build 35250610870
  • Tree
  • List 17
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35250610870
  • a93fbd4b on github
  • Prev Build on main (#35247752757)
  • Next Build on main (#35432967332)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc