Skip to content
Snippets Groups Projects
Commit 87230f61 authored by LECHA Benjamin's avatar LECHA Benjamin
Browse files

Ajout des rôles de la database

Ajout de bruno.json
parent 999bf616
No related branches found
No related tags found
No related merge requests found
meta {
name: Liste_Réseaux
type: http
seq: 1
}
get {
url: http://localhost:3000/reseau
body: none
auth: none
}
meta {
name: Type_Reseau
type: http
seq: 2
}
get {
url: http://localhost:3000/type_reseau
body: none
auth: none
}
meta {
name: Type_Reseau_Sudo_user
type: http
seq: 3
}
get {
url: http://localhost:3000/type_reseau
body: none
auth: bearer
}
auth:bearer {
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic3Vkb191c2VyIn0.fOLg-hXMLLRbPdifad1ieqwB-QMrk-YwpxpY-maT7qI
}
{
"version": "1",
"name": "ProDev_PostgREST",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}
\ No newline at end of file
......@@ -18,4 +18,12 @@ CREATE TABLE "reseau" (
INSERT INTO "reseau" ("id_reseau", "nom_reseau", "acronyme_reseau", "id_type_reseau") VALUES
(1, 'Réseau Provençal des Informaticiens Développeurs d''Applications', 'ProDev', 1),
(2, 'Métiers de l''Informatique Réunis en Réseau Inter-Etablissement du Nord', 'Min2RIEN', 1),
(3, 'Réseau des acteurs du Développement LOGiciel au sein de l''Enseignement Supérieur et de la Recherche', 'DevLog', 2);
\ No newline at end of file
(3, 'Réseau des acteurs du Développement LOGiciel au sein de l''Enseignement Supérieur et de la Recherche', 'DevLog', 2);
create role auth_user noinherit login password 'test';
grant usage on schema public to auth_user;
grant select on table "reseau" to auth_user;
create role sudo_user noinherit login password 'sudo_test';
grant usage on schema public to sudo_user;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO sudo_user;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment