-
Notifications
You must be signed in to change notification settings - Fork 58
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
token strategy/pkg docs #43
Comments
Hey, I just stumbled on this project and was going to begin using for a personal site. Are you still looking for assistance on this issue? I realize this is a result of the changes from version 1.x to 2.x. My understanding is that the bearer type is being deprecated, and the walkthough (https://medium.com/@hajsanad/authentication-in-golang-using-go-guardian-b1cd47da47a0) isn't valid for version 2.x. I glanced at the _example/ directory and didn't see an entry for token. I'm not sure if that is part of the work required here, or something else. Please let me know if I can help with some of the docs, examples here. Thanks, |
@briwagner |
Yes, I'm happy to help where you think it's needed. Let me know what is most helpful at this point, and I will try to suggest some changes. I agree: it may be simply renaming the folder in _examples/, to "token". When I looked initially I was confused there was no entry for token. I expected the folder list for auth/strategies/ to match _examples/. Just my initial expectation. My use case was basic and JWT token, so that's something I'm comfortable with. I don't have experience with the other strategies. But let me know what you have in mind for expanding the README, and if I can help. Just as a comparison, I see how netlify/gotrue walks through more of the details for each method, and has more code examples. Maybe too many? It's almost a bit of info overload, but if you know what you're looking for in there, it can be helpful. |
Hello, I started to use this package yesterday.
My problem is: The ID is dynamic and based on the user from the DB. |
@shachardevops basically, a secure system rotates the jwt signing key every X interval duration, StaticSecret is aimed to return always the same key. regarding the user id, it's supported but examples use hardcoded for simplicity, so you can build user object from DB and pass it to IssueAccessToken please create a different issue for further question |
@briwagner regarding README maybe something similar to cobra what do you think? |
@briwagner created an issue for example #104, feel free to take it. |
Meant to follow up on this: I'm adding a PR for #104 |
Tasks:
The text was updated successfully, but these errors were encountered: