-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
offer new type of auth provider #12
Comments
Livekit supports the distributed concept, but the api key is difficult to apply to the distributed concept. Also, it cannot be added during execution. |
We are open to it, though would like to ensure it could be added in a way that does not introduce additional dependencies to the overall package. Do you have a proposal here? |
how about this structure ? this is redis provider example https://github.com/smtm-private/protocol/blob/48cdf798c23661671b2902b651452c0a788e255b/auth/provider.go#L1 this is changed version of wire_gen.go code. createKeyProvider is placed in main.go before user can choice auth_type in yaml file |
this approach looks good! thanks for the suggestion. It'll allow keys to be rotated without having to restart the server.. which is really neat. I'll probably have an opinion on the exact config parameters, feel free to submit a PR and we can work off of there? |
Btw, I think we could move this entirely to livekit-server. The redis dependency doesn't make a ton of sense for the protocol repo. |
Does that mean I don't need to use the protocol repository for this task? I was wondering if that means I don't need RedisBaseKeyProvider in the protocol repository. |
yea. I think it's cleaner to have the key provider in livekit server. The main purpose of protocol is to define the interfaces for others to use. |
OK, as you said, if the purpose of the protocol repo is to define interfaces, you mean moving FileBasedKeyProvider and RedisBaseKeyProvider to livekit-server ? |
Let's leave the file based provider in the existing repo. I think we depend on it from another package for validation. |
livekit only support file base auth provider so I want to develop new kind of auth provider.
If it is okay for the function to be officially supported, we will work on the function directly through a pull request.
The new authentication provider I'm trying to create is to be able to dynamically add api key & secret dynamically while server is running. I am thinking of using redis or mysql for storage to store the data.
We'll be working on this soon, so I'm curious if there's a chance it'll be officially included.
The text was updated successfully, but these errors were encountered: