Skip to content

Commit 1bb86b7

Browse files
authored
Merge pull request #2 from nginx-openid-connect/v1.01
feat: NGINX OIDC v1 for Auth0 Integration
2 parents 62b5e04 + 983c292 commit 1bb86b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2932
-253
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.crt
2+
*.key
3+
*.jwt
4+
*.json
5+
oidc_credentials.conf
6+
.DS_Store
7+
docker/build-context/data

Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.PHONY: start watch down clean clean-cache unit-test functional-test test
2+
3+
start:
4+
docker-compose up -d
5+
6+
ps:
7+
docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Ports}}\t{{.Names}}"
8+
9+
watch:
10+
watch 'docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Ports}}\t{{.Names}}"'
11+
12+
down:
13+
docker-compose down
14+
15+
stop:
16+
docker-compose down
17+
18+
clean:
19+
docker kill $$(docker ps -q) 2> /dev/null || true
20+
docker system prune -a
21+
docker volume rm $(docker volume ls -qf dangling=true)

README.md

Lines changed: 20 additions & 229 deletions
Large diffs are not rendered by default.

docker-compose.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: '3.4'
2+
3+
services:
4+
5+
nginx_plus_ubuntu18.04:
6+
container_name: nginx-oidc-v1-auth0
7+
build:
8+
context: ./
9+
dockerfile: ./docker/docker-files/nginxplus-ubuntu18.04/Dockerfile
10+
image: nginx_oidc_v1_auth0_ubuntu18.04
11+
ports:
12+
- 8010:8010
13+
- 8011:8011
14+
volumes:
15+
- type: bind
16+
source: ./
17+
target: /etc/nginx/conf.d/
18+
- type: bind
19+
source: ./docker/build-context/nginx/test/
20+
target: /etc/nginx/test/
21+
- type: bind
22+
source: ./docker/build-context/content
23+
target: /usr/share/nginx/html/
24+
25+
networks:
26+
mynetwork:
27+
name: mynetwork
28+
attachable: true

docker/build-context/content/50x.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Error</title>
5+
<style>
6+
body {
7+
width: 35em;
8+
margin: 0 auto;
9+
font-family: Tahoma, Verdana, Arial, sans-serif;
10+
}
11+
</style>
12+
</head>
13+
<body>
14+
<h1>An error occurred.</h1>
15+
<p>Sorry, the page you are looking for is currently unavailable.<br/>
16+
Please try again later.</p>
17+
<p>If you are the system administrator of this resource then you should check
18+
the error log for details.</p>
19+
<p><em>Faithfully yours, nginx.</em></p>
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)