48 lines
1.9 KiB
PHP
48 lines
1.9 KiB
PHP
<x-app-layout>
|
|
|
|
<div
|
|
class="mx-auto flex flex-col gap-2 mt-4 shadow-sm px-6 sm:px-14 py-10 bg-background-secondary rounded-md xl:max-w-[60%] w-full">
|
|
<h1 class="text-2xl">
|
|
Authorization Request
|
|
</h1>
|
|
<!-- Introduction -->
|
|
<p class="mt-2"><strong>{{ $client->name }}</strong> is requesting permission to access your account.</p>
|
|
|
|
<!-- Scope List -->
|
|
@if (count($scopes) > 0)
|
|
<div class="scopes">
|
|
<p><strong>This application will be able to:</strong></p>
|
|
|
|
<ul class="list-disc list-inside">
|
|
@foreach ($scopes as $scope)
|
|
<li>{{ $scope->description }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="flex flex-row gap-2 mt-4">
|
|
|
|
<!-- Cancel Button -->
|
|
<form method="post" action="{{ route('passport.authorizations.deny') }}">
|
|
@csrf
|
|
@method('DELETE')
|
|
|
|
<input type="hidden" name="state" value="{{ $request->state }}">
|
|
<input type="hidden" name="client_id" value="{{ $client->getKey() }}">
|
|
<input type="hidden" name="auth_token" value="{{ $authToken }}">
|
|
<x-button.danger class="btn btn-danger">Cancel</x-button.danger>
|
|
</form>
|
|
|
|
<!-- Authorize Button -->
|
|
<form method="post" action="{{ route('passport.authorizations.approve') }}">
|
|
@csrf
|
|
|
|
<input type="hidden" name="state" value="{{ $request->state }}">
|
|
<input type="hidden" name="client_id" value="{{ $client->getKey() }}">
|
|
<input type="hidden" name="auth_token" value="{{ $authToken }}">
|
|
<x-button.primary type="submit" class="btn btn-success btn-approve">Authorize</x-button.primary>
|
|
</form>
|
|
</div>
|
|
|
|
</x-app-layout> |