broadfield-dev commited on
Commit
9e412ec
·
verified ·
1 Parent(s): c65ec45

Update server/server.py

Browse files
Files changed (1) hide show
  1. server/server.py +6 -2
server/server.py CHANGED
@@ -78,8 +78,12 @@ def get_public_key():
78
  def get_server_info():
79
  return {
80
  "name": "KeyLock Auth Server",
81
- "version": "1.3",
82
- "documentation": "This server decrypts data hidden in KeyLock images and performs a mock authentication. Use /keylock-pub to get the public key, and POST to /keylock-server with a base64 image string to decrypt and authenticate.",
 
 
 
 
83
  "endpoints": {
84
  "/keylock-pub": "GET - Returns the server's public key.",
85
  "/keylock-info": "GET - Returns this information object.",
 
78
  def get_server_info():
79
  return {
80
  "name": "KeyLock Auth Server",
81
+ "version": "1.4",
82
+ "documentation": "This server decrypts data hidden in KeyLock images and performs a mock authentication based on the decrypted payload.",
83
+ "required_payload_keys": [
84
+ {"key_name": "API_KEY", "description": "Your unique API Key for this service.", "example": "sk-12345-abcde"},
85
+ {"key_name": "USER", "description": "The user ID associated with the key.", "example": "demo-user"}
86
+ ],
87
  "endpoints": {
88
  "/keylock-pub": "GET - Returns the server's public key.",
89
  "/keylock-info": "GET - Returns this information object.",