since v2.0.4 use frodo.cloud.getEsvCount instead
Create a new frodo instance
Initial state configuration to use with the new instance
frodo instance
Factory helper to create a frodo instance ready to use an already-issued,
externally-obtained OAuth2 access token (e.g. one an MCP server verified
as an OAuth2 resource server). Like createInstanceWithBrowserLogin,
this alone doesn't make the instance immediately usable — call
.login.applyAccessToken(token) on the returned instance before using
it. Never persists to the local token cache, regardless of the
environment's default: this credential belongs to whoever presented the
token, not to the operator running this process.
host base URL, e.g. 'https://openam-my-tenant.forgeblocks.com/am'
Optionalrealm: string(optional) override default realm
OptionaldeploymentType: stringdeployment type ('cloud', 'forgeops', or 'classic') — required, since there is no existing session to auto-detect it from
OptionalallowInsecureConnection: boolean(optional) allow insecure connection
Optionaldebug: boolean(optional) enable debug output
Optionalcurlirize: boolean(optional) enable output of all library REST calls as curl commands
frodo instance, not yet ready to use
Factory helper to create a frodo instance ready for logging in with an admin user account
host base URL, e.g. 'https://openam-my-tenant.forgeblocks.com/am'
admin account username
admin account password
Optionalrealm: string(optional) override default realm
OptionaldeploymentType: string(optional) override deployment type ('cloud', 'forgeops', or 'classic')
OptionalallowInsecureConnection: boolean(optional) allow insecure connection
Optionaldebug: boolean(optional) enable debug output
Optionalcurlirize: boolean(optional) enable output of all library REST calls as curl commands
frodo instance
Factory helper to create a frodo instance ready for logging in with Amster credentials
host base URL, e.g. 'https://am.example.com:8443/am'
the pem encoded private key used to authenticate with Amster
OptionalauthenticationService: string(optional) the authentication service used to authenticate with Amster (default: 'amsterService')
Optionalrealm: string(optional) override default realm
OptionaldeploymentType: string(optional) override deployment type ('cloud', 'forgeops', or 'classic')
OptionalallowInsecureConnection: boolean(optional) allow insecure connection
Optionaldebug: boolean(optional) enable debug output
Optionalcurlirize: boolean(optional) enable output of all library REST calls as curl commands
frodo instance
Factory helper to create a frodo instance ready for a real interactive
browser login. Unlike the other three factories, this one alone doesn't
make the instance immediately usable — a real interactive round trip is
required first (there is no unattended way to redo it, unlike every
other auth mode's silent background re-login). Call
.login.getTokensInteractive(...) on the returned instance before using
it, supplying a promptHandler to present the login step.
host base URL, e.g. 'https://openam-my-tenant.forgeblocks.com/am'
OptionalloginClientId: string(optional) OAuth2 client id — mandatory for forgeops/classic (no built-in default); cloud has one
OptionalloginScope: string(optional) override the default scope requested for the target deployment type
OptionalloginRedirectUri: string(optional) full, absolute redirect URI to use, for a client registered with an exact-match redirect URI (shared with the non-interactive synthetic flow's own redirect URI setting)
Optionalrealm: string(optional) override default realm
OptionaldeploymentType: string(optional) deployment type ('cloud', 'forgeops', or 'classic') — required for browser login, since there is no existing session to auto-detect it from
OptionalallowInsecureConnection: boolean(optional) allow insecure connection
Optionaldebug: boolean(optional) enable debug output
Optionalcurlirize: boolean(optional) enable output of all library REST calls as curl commands
frodo instance, not yet logged in
Factory helper to create a frodo instance ready for logging in with a service account
host base URL, e.g. 'https://openam-my-tenant.forgeblocks.com/am'
service account uuid
service account JWK as stringified JSON
Optionalrealm: string(optional) override default realm
OptionaldeploymentType: string(optional) override deployment type ('cloud', 'forgeops', or 'classic')
OptionalallowInsecureConnection: boolean(optional) allow insecure connection
Optionaldebug: boolean(optional) enable debug output
Optionalcurlirize: boolean(optional) enable output of all library REST calls as curl commands
frodo instance
Frodo Library