I’m developing a tool to automate configuration and deployment of an OAuth app authenticating via GitHub (JupyterHub), and I frequently see users mistype OAuth ClientId or secret when configuring auth.
Is there a way to programmatically verify that the OAuth Client ID and Secret are correct, so the users can be warned immediately rather than wait for post-deployment with failures? That way a command line toll we’re writing could validate the configs before deployment.
We can assume the user running this code has authenticated to GitHub (i.e., has a personal access token).
PS: it would be even better if there’s a programmatic way to register/manipulate OAuth apps?