class

Cri::Auth::Broker

Inherits Reference < Object

Host-only authentication broker. Extensions receive CredentialRef values at most; the secret remains inside the host and its provider adapter.

Constructors

new(store : CredentialStore = CredentialStore.default)
Source

Instance methods

existing(provider_id : String, flow_id : String) : CredentialRef | Nil
Source
import_api_token(provider_id : String, flow_id : String, token : String) : CredentialRef
Source
import_env(provider_id : String, flow_id : String, env_name : String) : CredentialRef | Nil
Source
import_opaque(provider_id : String, flow_id : String, value : String) : CredentialRef
Source
logout(provider_id : String, flow_id : String)
Source
provider(id : String) : Provider
Source
providers
Source
register(provider : Provider)
Source
remove(ref : CredentialRef)
Source
secret(ref : CredentialRef) : String

This is intentionally a host-side operation. Do not pass Broker or Credential objects through extension/WASM input.

Source
store
Source