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
How do we test the oauth2_google function without a valid key? #16
Comments
The only thing I can come up with is setting up a server somewhere that constantly refreshes a token at google and makes this token available in an (authenticated) API. We could then fetch this token in the tests (including auth details for the API in travis via secrets). But I'm not sure whether this is really a good idea, sounds a bit insecure (token has to travel across the internet) and a lot of overhead for setting up this server. :D |
too much effort -> tests are only run locally on developers' machine |
test again how we can implement tests. |
see #38 |
We need a valid oauth2_google jwt to test the function properly. How do we include this token in the tests since it is only valid for an hour?
The text was updated successfully, but these errors were encountered: