@extends('layouts.app') @section('title', 'API Clients — ' . config('app.name')) @section('content')
@include('partials.nav')

API Clients

Kelola API Token dan OAuth2 Client Credentials

→ API Documentation
@include('partials.flash') @if ($newToken)

New API Token: {{ $newToken['name'] }}

{{ $newToken['token'] }}

Salin sekarang. Token tidak ditampilkan lagi.

@endif @if ($newClient)

New OAuth2 Client: {{ $newClient['name'] }}

Client ID: {{ $newClient['client_id'] }}

Client Secret: {{ $newClient['client_secret'] }}

Salin sekarang. Secret tidak ditampilkan lagi.

@endif

Create API Token

@csrf
@foreach ($scopes as $key => $label) @endforeach

Create OAuth2 Client

@csrf

Grant type: client_credentials. Scope diminta saat request token.

API Tokens ({{ count($apiTokens) }})

@forelse ($apiTokens as $token) @empty @endforelse
Name Prefix Scopes Last Used Action
{{ $token->name }} {{ $token->token_prefix }}... {{ implode(', ', $token->scopes ?? []) }} {{ $token->last_used_at?->format('Y-m-d H:i') ?? '—' }}
@csrf @method('DELETE')
No API tokens.

OAuth2 Clients ({{ $oauthClients->where('revoked', false)->count() }})

@forelse ($oauthClients as $client) @empty @endforelse
Name Client ID Status Action
{{ $client->name }} {{ $client->id }} {{ $client->revoked ? 'Revoked' : 'Active' }} @unless ($client->revoked)
@csrf @method('DELETE')
@endunless
No OAuth clients.
@endsection