Policy
Ikpanel handles policy within tokens. You're free to customize or add new tokens by editing database.
# Database structure
Tokens are handles in database with the following tables:
token
token_group
## Token table
This table contains all the tokens. If you wanna add a new policy you've to insert now token here.
id - This must be an uppercase string
name - Define tokens description. This definitions will appear on policy view.
id_group - Foreign key with "token_group" table. It will define a token group.
id_type - Foreign key with "token_view" table. It will define a token type.
Example of migration:
## Token group
Table that define all token group.
id - This must be an uppercase string.
group_name - Used to define a group name.
description - Used to define a group description.
icons - Used to define a group icon
Example of migration:
Every HTTP request is filtered within a middleware that checks if the current user has the proper authorization.
Last updated
Was this helpful?