The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Index.cshtml 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @model ViewModelBase
  2. @{
  3. string logoPath = "/images/logo-blue.svg";
  4. // If we are using a CDN, let's replace it
  5. if (Config.UseCdn)
  6. {
  7. if (!string.IsNullOrEmpty(Config.CdnHost))
  8. {
  9. logoPath = Config.CdnHost.TrimEnd('/') + logoPath;
  10. }
  11. }
  12. }
  13. <div class="container">
  14. <div class="row">
  15. <div class="col-md-12 text-center">
  16. <div class="row">
  17. <img src="@logoPath" class="img-responsive center-block" alt="Teknik">
  18. </div>
  19. <br />
  20. <div class="col-md-6 col-md-offset-3">
  21. <h2>Welcome to the Teknik Identity Server</h2>
  22. <p>
  23. You can view our <a href="~/.well-known/openid-configuration">discovery document</a>
  24. where you can find metadata and links to all the endpoints, key material, etc.
  25. </p>
  26. </div>
  27. @if (User.Identity.IsAuthenticated)
  28. {
  29. <div class="col-md-10 col-md-offset-1">
  30. <a class="btn btn-default" href="@Url.Action("Index", "Grants")">View Granted Clients</a>
  31. <a class="btn btn-default" href="@Url.Action("Logout", "Account")">Logout</a>
  32. </div>
  33. }
  34. </div>
  35. </div>
  36. </div>