mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-01 15:30:48 +02:00
feat: add OAuth APIs with scoped permissions (#1542)
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
co-authored by
Alessandro Segala
parent
0b2706a488
commit
09d196f7c5
@@ -82,6 +82,26 @@ export const oidcClients = {
|
||||
}
|
||||
};
|
||||
|
||||
export const apis = {
|
||||
orders: {
|
||||
id: 'f6a8b3c1-2d4e-4a6b-8c9d-0e1f2a3b4c5d',
|
||||
name: 'Orders API',
|
||||
resource: 'https://api.orders.test',
|
||||
permissions: {
|
||||
readOrders: {
|
||||
id: '1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d',
|
||||
key: 'read:orders',
|
||||
name: 'Read orders'
|
||||
},
|
||||
writeOrders: {
|
||||
id: '2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e',
|
||||
key: 'write:orders',
|
||||
name: 'Write orders'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const userGroups = {
|
||||
developers: {
|
||||
id: 'c7ae7c01-28a3-4f3c-9572-1ee734ea8368',
|
||||
|
||||
Reference in New Issue
Block a user