Skip to content

[WIP] enable easier local debugging: add mock auth provider + disable SSL verification #22

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OriHoch
Copy link

@OriHoch OriHoch commented Jan 31, 2018

work in progress - don't merge

reproduction steps

  • have some problems with auth server
  • want to debug them

expected

  • set environment variables:
    • ENABLE_MOCK_OAUTH=1
    • VERIFY_SSL=0
  • run the server
    • server will return an additional mock provider that will behave the same as other providers but not actually authenticate
    • when making requests from Verifyer - add verify=False to requests.get to enable using it with self-issued SSL certificate
  • able to debug quickly eliminating 3rd party oauth provider problems

actual

  • very hard to debug auth server locally

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 69.942% when pulling 1a1dcad on OriHoch:option-to-disable-ssl-verification-and-other-minor-fixes into 840a707 on datahq:master.

@OriHoch
Copy link
Author

OriHoch commented Jan 31, 2018

@akariv I haven't started implementing the mock oauth provider
any other suggestions for debugging locally?

any thoughts about how to implement the mock oauth provider? I think it's just mock methods that echo back the jwt token

@zelima zelima added this to the Backlog milestone Jul 19, 2018
@rufuspollock
Copy link
Member

@akariv did you see this? Do you want to update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants