forked from eclipse-ditto/ditto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eclipse-ditto#1591 added docker-compose.yml for starting a mock oauth…
…2 server in order to test SSO in Ditto UI
- Loading branch information
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<title>Mock OAuth2 Server Example Sign-in</title> | ||
|
||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" | ||
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<div class="row mt-5 justify-content-md-center"> | ||
<div class="col-md-5"> | ||
<form method="post"> | ||
<div></div> | ||
<h4>Mock OAuth2 Server Example</h4> | ||
<hr class="divisor"> | ||
<div class="form-group"> | ||
<input type="text" class="form-control" name="username" autofocus="on" | ||
placeholder="Enter any user/subject"> | ||
</div> | ||
<div class="form-group"> | ||
<textarea class="form-control" name="claims" rows="15" placeholder="Optional claims JSON value, example: | ||
{ | ||
"acr": "reference" | ||
}" | ||
></textarea> | ||
</div> | ||
<button type="submit" class="btn btn-primary topBtn"><i class="fa fa-sign-in"></i>Sign-in</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: '3.7' | ||
networks: | ||
test: | ||
name: ${DOCKER_NETWORK:-test} | ||
|
||
services: | ||
oauth: | ||
image: ghcr.io/navikt/mock-oauth2-server:2.1.6 | ||
networks: | ||
- test | ||
ports: | ||
- "9900:9900" | ||
expose: | ||
- "9900" | ||
volumes: | ||
- ./app/login.html:/app/login.html | ||
environment: | ||
PORT: 9900 | ||
LOG_LEVEL: DEBUG | ||
JSON_CONFIG: | | ||
{ | ||
"interactiveLogin": true, | ||
"httpServer": "NettyWrapper", | ||
"loginPagePath": "/app/login.html", | ||
"staticAssetsPath": "/app/static", | ||
"tokenCallbacks": [ | ||
{ | ||
"issuerId": "fake", | ||
"tokenExpiry": 300, | ||
} | ||
] | ||
} |