Sign inSign up

sbx/bc-basic-auth:latest

Multi-platform
Manifest digest

sha256:869e8c5ce297c2675e04a9c60b82758f2a57dbcac2baf1a292a87f440c866fe8

Last pushed

about 7 hours by sbx

Type

Sandbox Kit

Manifest digest

sha256:869e8c5ce297c2675e04a9c60b82758f2a57dbcac2baf1a292a87f440c866fe8

yaml
schemaVersion: "3"
displayName: Business Central authentication
description: Allows access to a Business Central backend and lets the sandbox proxy inject Basic auth credentials for it. The credentials stay on the host.
version: 1.0.0
kind: mixin
capabilities:
    - type: com.docker.sandbox/network-policy@1
      config:
        runtime:
            allow:
                - ${{ kit.args.host }}
    - type: com.docker.sandbox/credential@1
      config:
        apiKey:
            inject:
                - domain: ${{ kit.args.host }}
                  format: Basic %s
                  header: Authorization
        phase: runtime
        service: microsoft-bc
      description: Business Central username and password, stored on the host as base64 of `user:password`; the proxy injects it as Basic auth on requests to the backend.
args:
    host:
        required: true
        description: Hostname of the Business Central backend, e.g. bc.example.com
        pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$