mirror of
				https://github.com/nsnail/IGeekFan.AspNetCore.Knife4jUI.git
				synced 2025-11-04 12:20:49 +08:00 
			
		
		
		
	@@ -0,0 +1,25 @@
 | 
			
		||||
@model OAuth2Integration.AuthServer.Controllers.ConsentViewModel
 | 
			
		||||
 | 
			
		||||
<style>
 | 
			
		||||
</style>
 | 
			
		||||
 | 
			
		||||
<h1>Consent</h1>
 | 
			
		||||
<p>
 | 
			
		||||
    @Model.ClientName is requesting your permission to ...
 | 
			
		||||
</p>
 | 
			
		||||
<form asp-controller="Consent" asp-action="Consent">
 | 
			
		||||
    <input type="hidden" asp-for="ReturnUrl" />
 | 
			
		||||
    <fieldset>
 | 
			
		||||
        <ul>
 | 
			
		||||
            @foreach (var scope in Model.ScopesRequested)
 | 
			
		||||
            {
 | 
			
		||||
                <li>
 | 
			
		||||
                    <label>
 | 
			
		||||
                        <input name="ScopesConsented" type="checkbox" value="@scope.Name" checked />@scope.DisplayName
 | 
			
		||||
                    </label> 
 | 
			
		||||
                </li> 
 | 
			
		||||
            }
 | 
			
		||||
        </ul>
 | 
			
		||||
    </fieldset>
 | 
			
		||||
    <button type="submit">Grant Access</button>
 | 
			
		||||
</form>
 | 
			
		||||
@@ -0,0 +1,23 @@
 | 
			
		||||
@model OAuth2Integration.AuthServer.Controllers.LoginViewModel
 | 
			
		||||
 | 
			
		||||
<style>
 | 
			
		||||
    input {
 | 
			
		||||
        display: block;
 | 
			
		||||
    }
 | 
			
		||||
</style>
 | 
			
		||||
 | 
			
		||||
<h1>Login</h1>
 | 
			
		||||
<form asp-controller="Account" asp-action="Login">
 | 
			
		||||
    <input type="hidden" asp-for="ReturnUrl" />
 | 
			
		||||
    <fieldset>
 | 
			
		||||
        <label>
 | 
			
		||||
            Username:
 | 
			
		||||
            <input type="text" asp-for="Username" />
 | 
			
		||||
        </label>
 | 
			
		||||
        <label>
 | 
			
		||||
            Password:
 | 
			
		||||
            <input type="text" asp-for="Password" />
 | 
			
		||||
        </label>
 | 
			
		||||
    </fieldset>
 | 
			
		||||
    <button type="submit">Login</button>
 | 
			
		||||
</form>
 | 
			
		||||
@@ -0,0 +1 @@
 | 
			
		||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
 | 
			
		||||
		Reference in New Issue
	
	Block a user