Skip to content

A library that enhances authentication options when using GORM

License

Notifications You must be signed in to change notification settings

Invicton-Labs/gorm-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GORM Dynamic Authentication

This package implements easy-to-use dynamic authentication for GORM connections. This is useful when using any kind of authentication mechanism where credentials may change between when the GORM handle is initially created and when new connections may open. Examples could include username/password credentials that are rotated frequently, or IAM authentication with AWS RDS.

Database Support

This package supports MySQL, and theoretically supports PostgreSQL as well, although that has not yet been tested. It is built in a modular fashion that supports the implementation of additional databases as well. See the connectors and dialectors submodules.

Examples

We have provided examples for the following use cases:

For more custom implementations (multiple sources, multiple replicas, etc.), see the internal workings of the functions used in the examples.

About

A library that enhances authentication options when using GORM

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages