Skip to content

feat: NGINX OIDC v1 for Auth0 Integration #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.crt
*.key
*.jwt
*.json
oidc_credentials.conf
.DS_Store
docker/build-context/data
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.PHONY: start watch down clean clean-cache unit-test functional-test test

start:
docker-compose up -d

ps:
docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Ports}}\t{{.Names}}"

watch:
watch 'docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Ports}}\t{{.Names}}"'

down:
docker-compose down

stop:
docker-compose down

clean:
docker kill $$(docker ps -q) 2> /dev/null || true
docker system prune -a
docker volume rm $(docker volume ls -qf dangling=true)
249 changes: 20 additions & 229 deletions README.md

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.4'

services:

nginx_plus_ubuntu18.04:
container_name: nginx-oidc-v1-auth0
build:
context: ./
dockerfile: ./docker/docker-files/nginxplus-ubuntu18.04/Dockerfile
image: nginx_oidc_v1_auth0_ubuntu18.04
ports:
- 8010:8010
- 8011:8011
volumes:
- type: bind
source: ./
target: /etc/nginx/conf.d/
- type: bind
source: ./docker/build-context/nginx/test/
target: /etc/nginx/test/
- type: bind
source: ./docker/build-context/content
target: /usr/share/nginx/html/

networks:
mynetwork:
name: mynetwork
attachable: true
21 changes: 21 additions & 0 deletions docker/build-context/content/50x.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>If you are the system administrator of this resource then you should check
the error log for details.</p>
<p><em>Faithfully yours, nginx.</em></p>
</body>
</html>
Loading