@extends('layouts.admin') @section('title', 'API Key & Keamanan Integrasi') @section('content')
Kelola kunci otorisasi untuk aplikasi mobile Android/iOS dan integrasi eksternal secara aman.
Berhasil!
{{ session('success') }}
Total Kunci API
{{ $totalKeys }}
Kunci Aktif
{{ $activeKeys }}
Proteksi REST API
X-API-KEY Wajib
api.key
| Nama Aplikasi / Klien | Kunci Otorisasi (API Key) | Tipe Klien | Rate Limit | Terakhir Digunakan | Status | Aksi |
|---|---|---|---|---|---|---|
| {{ $item->nama }} @if($item->keterangan) {{ $item->keterangan }} @endif |
{{ $item->key }}
|
@if($item->client_type === 'mobile_app') Mobile App @elseif($item->client_type === 'web_client') Web Client @else Integrasi Sistem @endif | {{ $item->rate_limit_per_minute }} req / menit | @if($item->last_used_at) {{ $item->last_used_at->diffForHumans() }} {{ $item->last_used_at->format('d/m/Y H:i') }} @else Belum pernah @endif | {{ $item->status_aktif ? 'Aktif' : 'Non-Aktif' }} |
|
|
Belum ada API Key Klik tombol "Buat API Key Baru" untuk membuat kunci otorisasi pertama. |
||||||
Sertakan header otorisasi pada setiap request HTTP
1. Header X-API-KEY
Wajib disertakan untuk semua pemanggilan endpoint /api/mobile/*.
2. Token Sesi Pegawai
Setelah login, gunakan Bearer <token> untuk endpoint absen & profil.
3. Single Device Lock
Tiap pegawai otomatis terikat dengan UUID perangkat smartphone terdaftar.