Skip to content

[FIX] Use readyToLicense instead of allowedOnly on search - #33

Merged
omc-tollbit merged 1 commit into
mainfrom
ory/use-readyToLicense-for-search
Jul 23, 2026
Merged

[FIX] Use readyToLicense instead of allowedOnly on search#33
omc-tollbit merged 1 commit into
mainfrom
ory/use-readyToLicense-for-search

Conversation

@omc-tollbit

Copy link
Copy Markdown
Collaborator

What does this PR do

  • Search now has a readyToLicense query param for filtering, this better matches the intent of the flag so we're moving to that

@omc-tollbit
omc-tollbit merged commit c815c88 into main Jul 23, 2026
3 checks passed
@omc-tollbit
omc-tollbit deleted the ory/use-readyToLicense-for-search branch July 23, 2026 18:40
delwaterman added a commit that referenced this pull request Jul 27, 2026
* Use namespaced consent:redirect grant type

The auth service migrated /agent/v1/tokens/identity away from the
shape-sniffed "consent" grant to explicit per-strategy values; the bare
"consent" arm no longer exists server-side, so redirect consent
redemption was failing against prod. Ports the redirect subset of
tollbit/tollbit-cli#33.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Refactor dev/release build configuration

Ports the tollbit-cli #32 shape: build mode is a single IsDev const
(mode_dev.go / mode_release.go), and per-field configurable:"dev"|"release"
struct tags now gate every external override. Env vars are applied
explicitly (env.go walking the config via introspection.go) instead of
viper AutomaticEnv, so release builds ignore endpoint overrides at the
source rather than pinning them back afterwards — PinEndpoints,
parseEmbeddedYAML, and Factory.SkipPinEndpoints are gone. The dev config
file merge is compiled in only when IsDev.

globalflags is rewritten as an IsConfigurable-gated flag table; the nine
previously hidden flags and the TOLLBIT_SHOW_DEV_FLAGS mechanism are
removed (dev overrides use TOLLBIT_* env vars).

Co-Authored-By: Claude Fable 5 <[email protected]>

* Add browser_select_icon consent strategy for remote device authorization

Ports tollbit/tollbit-cli#30 (with the final #33 request shapes — the
strategy is born on the namespaced consent:browser_select_icon grant):

- internal/cliruntime: end-user proximity (configured → saved
  runtime.json state → default remote), new `tollbit runtime
  status|set|help` commands, and browser opening (moved from agentauth)
- internal/agentauth: ConsentStrategy interface with per-strategy
  Guidance; browser_consent.go becomes redirect/ and the new
  browserselecticon/ strategy relays a consent URL plus a verification
  icon, returning AuthorizationPendingError instead of blocking
- pending-auth.json in the credential store, completed via the new
  `tollbit auth complete` command; still-pending exits with code 3
- auth login prints runtime proximity + flow label and renders both
  configured flows in its long help; auth status reports pending
  authorization, refresh token, and auto-refresh state
- auth client gains browser-select-icon start/redeem and now surfaces
  problem+json errors as typed values (authorization_pending,
  access_denied, expired_token, invalid_grant)
- WithOBORetry only retries when the active strategy supports it;
  detached strategies return an explicit-login-required error instead
  of silently starting consent mid-command

Co-Authored-By: Claude Fable 5 <[email protected]>

* Add agent_confirms_icons strategy and render auth docs from strategies

Ports tollbit/tollbit-cli#34:

- internal/agentauth/agentconfirmsicons: detached flow where the agent
  relays only the consent URL; the end user reads back three icons and
  the agent submits them in order via `tollbit auth complete <first>
  <second> <third>`. The valid icon vocabulary is printed at login for
  the agent's spelling reference only.
- auth client: agent-confirms-icons start endpoint and
  consent:agent_confirms_icons redeem (exactly three non-empty names)
- auth complete accepts up to three icon args (required for this flow);
  unrecognized_icon errors reprint the vocabulary and keep the pending
  challenge (no attempt is consumed); denial codes still clear it
- guide/SKILL.md are now rendered from the resolved strategies:
  {{ .AuthInstructions }} shows BOTH configured local and remote flows,
  {{ .AuthCompleteInputs }} documents auth complete's inputs, and a
  footer records which strategies were rendered. `guide --install`
  writes the rendered markdown; frontmatter stays literal so the
  version-sync check is unchanged.
- shipped remote consent strategy default flips to agent_confirms_icons
  (tb-cli.config.yaml); exit code 3 documented in the skill

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: Claude Fable 5 <[email protected]>
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.

1 participant