Skip to content

A new auth service stub to ensure we can test all actions associated with login/authentication

License

Notifications You must be signed in to change notification settings

ONSdigital/dis-authentication-stub

Repository files navigation

dis-authentication-stub

A new auth service stub to ensure we can test all actions associated with login/authentication

Getting started

Dependencies

  • No further dependencies other than those defined in go.mod

Configuration

Environment variable Default Description
BIND_ADDR :29500 The host and port to bind to
GRACEFUL_SHUTDOWN_TIMEOUT 5s The graceful shutdown timeout in seconds (time.Duration format)
HEALTHCHECK_INTERVAL 30s Time between self-healthchecks (time.Duration format)
HEALTHCHECK_CRITICAL_TIMEOUT 90s Time to wait until an unhealthy dependent propagates its state to make this app unhealthy (time.Duration format)
OTEL_EXPORTER_OTLP_ENDPOINT localhost:4317 Endpoint for OpenTelemetry service
OTEL_SERVICE_NAME dis-authentication-stub Label of service for OpenTelemetry service
OTEL_BATCH_TIMEOUT 5s Timeout for OpenTelemetry
OTEL_ENABLED false Feature flag to enable OpenTelemetry

Contributing

See CONTRIBUTING for details.

License

Copyright © 2024, Office for National Statistics (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details.

About

A new auth service stub to ensure we can test all actions associated with login/authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published