Skip to main content
An authentication strategy is a template for a target system: which fields the hosted form should collect (username/password, bearer token, custom headers, TOTP, and so on), and how Rubie should authenticate with them at run time. Every credential session is created against exactly one strategy.

You don’t manage strategies yourself

Rubie provisions strategy ids (strat_...) for your account — typically one per system you integrate with. Pass the relevant id as strategy_id when creating a credential session. You don’t need to fetch a strategy catalog or render your own credential form; the hosted collection page uses the strategy to decide what to show.
Hold a small lookup in your app if you support multiple source systems:

Strategy types

Two-factor method

Strategies may also declare a 2FA method: You don’t configure this from the API — it’s part of the strategy Rubie sets up for the integration.