authorize.blade.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>{{ config('app.name') }} - Authorization</title>
  8. <!-- Styles -->
  9. <link href="/css/app.css" rel="stylesheet">
  10. <style>
  11. .passport-authorize .container {
  12. margin-top: 30px;
  13. }
  14. .passport-authorize .scopes {
  15. margin-top: 20px;
  16. }
  17. .passport-authorize .buttons {
  18. margin-top: 25px;
  19. text-align: center;
  20. }
  21. .passport-authorize .btn {
  22. width: 125px;
  23. }
  24. .passport-authorize .btn-approve {
  25. margin-right: 15px;
  26. }
  27. .passport-authorize form {
  28. display: inline;
  29. }
  30. </style>
  31. </head>
  32. <body class="passport-authorize">
  33. <div class="container">
  34. <div class="row">
  35. <div class="col-md-6 col-md-offset-3">
  36. <div class="panel panel-default">
  37. <div class="panel-heading">
  38. Authorization Request
  39. </div>
  40. <div class="panel-body">
  41. <!-- Introduction -->
  42. <p><strong>{{ $client->name }}</strong> is requesting permission to access your account.</p>
  43. <!-- Scope List -->
  44. @if (count($scopes) > 0)
  45. <div class="scopes">
  46. <p><strong>This application will be able to:</strong></p>
  47. <ul>
  48. @foreach ($scopes as $scope)
  49. <li>{{ $scope->description }}</li>
  50. @endforeach
  51. </ul>
  52. </div>
  53. @endif
  54. <div class="buttons">
  55. <!-- Authorize Button -->
  56. <form method="post" action="/oauth/authorize">
  57. {{ csrf_field() }}
  58. <input type="hidden" name="state" value="{{ $request->state }}">
  59. <input type="hidden" name="client_id" value="{{ $client->id }}">
  60. <button type="submit" class="btn btn-success btn-approve">Authorize</button>
  61. </form>
  62. <!-- Cancel Button -->
  63. <form method="post" action="/oauth/authorize">
  64. {{ csrf_field() }}
  65. {{ method_field('DELETE') }}
  66. <input type="hidden" name="state" value="{{ $request->state }}">
  67. <input type="hidden" name="client_id" value="{{ $client->id }}">
  68. <button class="btn btn-danger">Cancel</button>
  69. </form>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </body>
  77. </html>