angadn / auth Goto Github PK
View Code? Open in Web Editor NEWA package to provide user-authentication and authorization
License: GNU Affero General Public License v3.0
A package to provide user-authentication and authorization
License: GNU Affero General Public License v3.0
The idea is to move the purely MySQL backed Repository
and GroupRepository
to AWS-Cognito implementations. The Policy lookups will currently stay as-is, and there is currently no plan to support IAM via this library. However, one may use IAM Roles directly for RBAC policy-verification and this library as a helpful gRPC Middleware.
We need an API that optionally allows another User to be verified as well
When using AWS Cognito, it is the RBAC interface
that verifies a User#Secret()
for us. Therefore, our main application's User
entity needn't always hold a Secret
or IsVerified
as those are being populated from AWS. Moreover, if auth
library itself doesn't use those fields anywhere else.
Proposal
An application can embed a new struct like so:
import (
...
"auth"
...
)
...
type AppUser struct {
auth.RBACUser
}
This would implement the interface methods for AppUser
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.