wemogy / spaceblocks-sample-helloworld

Space Blocks Permissions Sample for several languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Space Blocks Hello World Sample

Setup

The permissions structure is described in the blog Quickly add permission checks to your ASP.NET apps .

Alternatively, the setup.sh script creates these structures via the API.

There is also a seeding.sh script that puts some demo data into Permissions.

Both scripts ask for the needed credentials / information. To avoid having to enter them again and again, create a secrets.json that looks like this:

{
    "permissionsUrl": "",
    "apiKey": "",
    "projectId": "",
    "environmentId": "",
    "clientId": "",
    "clientSecret": ""
}

Then run the scripts with the --secrets-from-file flag.

About

Space Blocks Permissions Sample for several languages


Languages

Language:Shell 47.3%Language:C# 26.6%Language:JavaScript 14.6%Language:Python 11.5%