Skip to content

Commit

Permalink
Use latest Bootstrap and jQuery
Browse files Browse the repository at this point in the history
Update to latest Bootstrap and jQuery versions.
Sort provider names.
Improve HTML.
  • Loading branch information
martincostello committed Jun 1, 2019
1 parent c1b2696 commit 49e6734
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 21,281 deletions.
6 changes: 3 additions & 3 deletions samples/Mvc.Client/Views/Authentication/SignIn.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<div class="jumbotron">
<h1>Authentication</h1>
<p class="lead text-left">Sign in using one of these external providers:</p>
@foreach (var scheme in Model)

@foreach (var scheme in Model.OrderBy(p => p.DisplayName))
{
<form action="/signin" method="post">
<input type="hidden" name="Provider" value="@scheme.Name" />
<input type="hidden" name="ReturnUrl" value="@ViewBag.ReturnUrl" />

<button class="btn btn-lg btn-success" type="submit">Connect using @scheme.DisplayName</button>
<button class="btn btn-lg btn-success m-1" type="submit">Connect using @scheme.DisplayName</button>
</form>
}
</div>
17 changes: 9 additions & 8 deletions samples/Mvc.Client/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
@model string

<div class="jumbotron">
@if (User?.Identity?.IsAuthenticated ?? false) {
<div class="jumbotron">
@if (User?.Identity?.IsAuthenticated ?? false)
{
<h1>Welcome, @User.Identity.Name</h1>

<p>
@foreach (var claim in Context.User.Claims) {
<div>@claim.Type: <b>@claim.Value</b></div>
@foreach (var claim in Context.User.Claims)
{
<div><code>@claim.Type</code>: <strong>@claim.Value</strong></div>
}
</p>

<a class="btn btn-lg btn-danger" href="/signout?returnUrl=%2F">Sign out</a>
}

else {
else
{
<h1>Welcome, anonymous</h1>
<a class="btn btn-lg btn-success" href="/signin?returnUrl=%2F">Sign in</a>
}
Expand Down
18 changes: 10 additions & 8 deletions samples/Mvc.Client/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,26 @@
<meta name="description" content="" />
<meta name="author" content="" />

<title>Mvc.Client (OSOS sample)</title>
<title>Mvc.Client (OAuth 2.0 sample)</title>

<link href="~/stylesheets/bootstrap.min.css" rel="stylesheet" />
<link href="~/stylesheets/jumbotron-narrow.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.min.js" integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/umd/popper.min.js" integrity="sha256-fTuUgtT7O2rqoImwjrhDgbXTKUwyxxujIMRIK7TbuNU=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>

<body>
<div class="container">
<main class="container">
<div class="header">
<h3 class="text-muted">Your application (Mvc.Client)</h3>
</div>

@RenderBody()

<div class="footer">
<p>&copy; Your company 2014</p>
</div>
<footer>
<p>&copy; Your company @DateTime.UtcNow.Year</p>
</footer>

</div>
</main>
</body>
</html>
Binary file not shown.
229 changes: 0 additions & 229 deletions samples/Mvc.Client/wwwroot/fonts/glyphicons-halflings-regular.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 49e6734

Please sign in to comment.