-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
121 additions
and
6 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
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
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,38 @@ | ||
{ | ||
"interactiveLogin": true, | ||
"httpServer": "NettyWrapper", | ||
"loginPagePath": "/app/login/login.example.html", | ||
"staticAssetsPath": "/app/static", | ||
"tokenCallbacks": [ | ||
{ | ||
"issuerId": "issuer1", | ||
"tokenExpiry": 120, | ||
"requestMappings": [ | ||
{ | ||
"requestParam": "scope", | ||
"match": "openid profile email", | ||
"claims": { | ||
"preferred_username": "user1", | ||
"email": "[email protected]", | ||
"sub": "subBySomeParam", | ||
"aud": [ | ||
"audBySomeParam" | ||
] | ||
} | ||
}, | ||
{ | ||
"requestParam": "client_id", | ||
"match": "fake-development-client-id", | ||
"claims": { | ||
"sub": "$clientId", | ||
"aud": "00000000-0000-0000-0123-456789abcdef", | ||
"code": "00000000-0000-0000-0123-456789abcdef", | ||
"scope": ["openid", "offline_access"], | ||
"token_type": "bearer", | ||
"client_id": "00000000-0000-0000-0123-456789abcdef" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
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,47 @@ | ||
<!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"> | ||
<h4><img src="/static/nav-logo-red.svg" /> Mock OAuth2 Server Example</h4> | ||
<hr class="divisor"> | ||
<h5>Quick</h5> | ||
<form method="post"> | ||
<input type="hidden" name="username" value='user1' /> | ||
<input type="hidden" name="claims" value='{"preferred_username":"user1"}' /> | ||
<button type="submit" class="btn btn-primary topBtn"><i class="fa fa-sign-in"></i>Sign-in as <pre>user1</pre></button> | ||
</form> | ||
<hr class="divisor"> | ||
<h5>Custom</h5> | ||
<form method="post"> | ||
<div></div> | ||
|
||
<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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
.container { | ||
max-width: 800px; | ||
} |
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