#hey guys I am trying to implement
1 messages · Page 1 of 1 (latest)
Hi @rugged dust , since you are planning to implement Permify in your Golang application, I suggest using the Go SDK to eliminate the workload of creating and maintaining your own client.
The general workflow involves initializing the Go SDK in a middleware that you will create for authorization purposes. Then, you need to create a schema and define it in Permify via the writeSchema API. Typically, our users prefer to store this schema in a central GitHub repository to streamline the management of schema changes. For more details, please see the following page: https://docs.permify.co/permify-overview/faqs#how-to-manage-schema-changes. Additionally, we provide a GitOps flow in our cloud version to handle and streamline these schema changes on your behalf.
For storing and writing data, you can send the data at the database transaction level. Although its antipattern, it secures the consistency between your application data and authorization data. You can find more information on this page: https://docs.permify.co/api-reference/data/write-data#suggested-workflow
Then, you can perform any authorization request, such as access checks. Simply add Permission.Check() to your code, middleware, service mesh, or API gateway to control access wherever you want.
thank you soo much buddy. This has been extremely helpful!!! Thanks for your help. I have some inputs which I think will help other users also. I'll try and compile them and share them with others too!