mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 23:14:21 +01:00
Add API Keys Application identifier
This lets the authorize api key screen redirect to the defined url and provide it with the user id, permissions granted and the key. This also allows apps to match existing api keys generated for it specifically using the application identifier, and if matched, presented with a confirmation page before redirection.
This commit is contained in:
@@ -15,6 +15,7 @@ namespace BTCPayServer.Data
|
||||
[MaxLength(50)] public string StoreId { get; set; }
|
||||
|
||||
[MaxLength(50)] public string UserId { get; set; }
|
||||
public string ApplicationIdentifier { get; set; }
|
||||
|
||||
public APIKeyType Type { get; set; } = APIKeyType.Legacy;
|
||||
|
||||
@@ -43,6 +44,8 @@ namespace BTCPayServer.Data
|
||||
public class APIKeyBlob
|
||||
{
|
||||
public string[] Permissions { get; set; }
|
||||
public string ApplicationIdentifier { get; set; }
|
||||
public string ApplicationAuthority { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user