Skip to content
This repository was archived by the owner on Sep 25, 2020. It is now read-only.

Python: An example custom config reader#47

Open
josephaxisa wants to merge 4 commits into
masterfrom
jax/py-custom-config-reader
Open

Python: An example custom config reader#47
josephaxisa wants to merge 4 commits into
masterfrom
jax/py-custom-config-reader

Conversation

@josephaxisa

Copy link
Copy Markdown
Contributor

No description provided.

@josephaxisa josephaxisa requested a review from rollyjoel March 19, 2020 13:18

@rollyjoel rollyjoel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for jumping on this! but let's hold off till I have the Python SDK trued up, at least with regards to the PApiSettings interface

Comment thread python/custom_config_reader.py Outdated
Comment on lines +25 to +29
def get_client_id(self) -> str:
return "client_id"

def get_client_secret(self) -> str:
return "client_id"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ug, so this was a discrepancy that needs to be fixed. typescript/looker/rtl/apiSettings.ts exposes readConfig as opposed to get_client_id and get_client_secret. That's because we're going to have other means (like the new OAuth stuff). We should implement extracting the client id/secret inside the auth session login.

Let's hold off on merging this till I fix that up. Then this example will implement read_config() and put "client_id" and "client_secret" keys into the "bag"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants