Skip to content

Rename the "Creating a Client" docs to "Connecting" and document OAuth - #597

Merged
leoschwarz merged 3 commits into
refactor/public-oauth-modulefrom
docs/connecting-oauth
Aug 14, 2026
Merged

Rename the "Creating a Client" docs to "Connecting" and document OAuth#597
leoschwarz merged 3 commits into
refactor/public-oauth-modulefrom
docs/connecting-oauth

Conversation

@leoschwarz

@leoschwarz leoschwarz commented Aug 13, 2026

Copy link
Copy Markdown
Member
  • Rename the "Creating a Client" user guide to "Connecting" (user_guides/creating_a_client/user_guides/connecting/) and update the inbound links
  • Document bfabric-cli login followed by Bfabric.connect() as the default way in, including the auth_method: oauth environment it writes
  • Add coverage for connect_pkce, connect_device_code, connect_pat, connect_oauth and WebappClient.create, which is documented with its public from bfabric.oauth import WebappClient
  • Move the web service password to a legacy section in both the connecting and configuration guides
  • Drop the experimental banner from the OAuth troubleshooting notes, and fix a stale Bfabric.from_url_token reference — that method does not exist

🤖 Prepared with assistance from Claude Opus 5 via Claude Code.

@leoschwarz
leoschwarz force-pushed the docs/connecting-oauth branch from 411efba to 70fdf8b Compare August 13, 2026 12:51
@leoschwarz
leoschwarz changed the base branch from main to refactor/public-oauth-module August 13, 2026 12:51
@leoschwarz
leoschwarz force-pushed the docs/connecting-oauth branch from 70fdf8b to 9fdb2df Compare August 13, 2026 12:59
…t OAuth

The guide predated the OAuth work in 1.20.0: it covered only Bfabric.connect()
with a login/password config file and connect_token() for webapps. The path most
people use today — bfabric-cli login once, then plain Bfabric.connect(), which
auto-routes on auth_method: oauth — was documented nowhere in the user guides,
and connect_pkce / connect_device_code / connect_oauth / connect_pat /
WebappClient.create had no user-facing coverage at all.

Web service passwords are on their way out, so they are now a short legacy
section rather than the lead.

Also drops the experimental banner from the OAuth troubleshooting notes and
fixes a stale Bfabric.from_url_token row in the integration notes — that method
does not exist; the entry point is WebappClient.create.

WebappClient is documented with its bfabric._oauth import because it has no
public home yet; exporting it is a follow-up.
@leoschwarz
leoschwarz force-pushed the docs/connecting-oauth branch from 9fdb2df to 2b6d861 Compare August 13, 2026 13:42
@leoschwarz
leoschwarz marked this pull request as ready for review August 13, 2026 14:47
@leoschwarz
leoschwarz requested a review from Caushi August 13, 2026 14:47
@Caushi

Caushi commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

nice!
This simplifies (hopefully) the mental model.

@leoschwarz

Copy link
Copy Markdown
Member Author

I hope so too. I'm sure documentation can be improved further and plan to do so, but I was just checking it yesterday and noticed this is very outdated now.

@leoschwarz
leoschwarz merged commit aeaba15 into main Aug 14, 2026
24 checks passed
@leoschwarz
leoschwarz deleted the docs/connecting-oauth branch August 14, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants