Aller au contenu

Getting Started

Ce contenu n’est pas encore disponible dans votre langue.

  1. Start stubIdP

    Terminal window
    npx @cerberauth/stubidp --redirect-uri http://localhost:8080/callback

    The server starts at http://localhost:8484.

    --client-id and --client-secret are optional. When omitted, a human-readable ID (e.g. brave-falcon-3a9f12) and a secure random secret are generated and printed in the startup table.

  2. Verify it is running

    Terminal window
    curl http://localhost:8484/.well-known/openid-configuration

    You should receive a JSON document with standard OIDC discovery fields.

  3. Configure your application

    Point your OAuth 2.0 / OIDC client library at stubIdP:

    SettingValue
    Issuer / Discovery URLhttp://localhost:8484
    Client IDvalue printed in startup log
    Client Secretvalue printed in startup log
    Authorization endpointhttp://localhost:8484/auth
    Token endpointhttp://localhost:8484/token
    JWKS URIhttp://localhost:8484/jwks
  4. Log in

    When your app redirects to the authorization endpoint, stubIdP shows a login form. Enter any username and password — all credentials are accepted.

  5. Approve scopes

    After login, stubIdP shows a consent screen listing the requested scopes. Click Allow to complete the flow and receive tokens.