Skip to content

liquidvotingio/auth

Repository files navigation

LiquidVotingAuth

Actions Status

docker run -it --rm \
  -e SECRET_KEY_BASE=$(mix phx.gen.secret) \
  -e DB_USERNAME=postgres \
  -e DB_PASSWORD=postgres \
  -e DB_NAME=liquid_voting_auth_dev \
  -e DB_HOST=host.docker.internal \
  -p 4000:4000 \
  ghcr.io/liquidvotingio/auth:latest

curl -I http://localhost:4000/_external-auth -H "Authorization: Bearer 62309201-d2f0-407f-875b-9f836f94f2ca"
  HTTP/1.1 200 OK
  cache-control: max-age=0, private, must-revalidate
  content-length: 0
  cross-origin-window-policy: deny
  date: Sat, 02 May 2020 17:35:59 GMT
  server: Cowboy
  x-content-type-options: nosniff
  x-download-options: noopen
  x-frame-options: SAMEORIGIN
  x-permitted-cross-domain-policies: none
  x-request-id: FgtGoxBd9FzfZxQAAAAl
  x-xss-protection: 1; mode=block

curl -I http://localhost:4000/_external-auth
HTTP/1.1 401 Unauthorized
cache-control: max-age=0, private, must-revalidate
content-length: 0
cross-origin-window-policy: deny
date: Sat, 02 May 2020 17:35:50 GMT
server: Cowboy
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-request-id: FgtGoPrtxpyZk9gAAAAF
x-xss-protection: 1; mode=block