To be able to do requests via API in `SECURE` mode, it is required to login as a valid user provding valid credentials (only name and password for now). This can be bypassed by starting the controller in `INSECURE` mode, but is not recommend for use cases other than development and testing.
For now there is no default user available, but there is an option to create one wihtout login required. To create an admin user with all permissions, do the following in gosdnc:
`userCreate --u admin --p admin --r admin`
## Example Roles
The json file contains example roles with their permissions, to use with goSDN. The permissions in the admin role might be outdated this depends on changes of the API that might have been done since creating or last updating the file. Feel free to add missing permissions to admin if that's the case.
For now the roles must be added via an gRPC call, after starting the controller in `INSECURE` mode, otherwise API calls won't work in secure mode because of missing possibilities to authorize calls. This is the case until we find out how to add tokens in form the of metadata within a go context when using programs like `Postman`.
An example `JSON` collection for programs like `Postman` using the above role example (possibly outdated, see previous paragraph) can be found here. Note that some parameters still need to be adjusted for this to work: