question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Forced to use environment variables :'(

See original GitHub issue

I think I’m forced to use environment variables to configure the OAuthenticator, for example: OAUTH2_AUTHORIZE_URL can only be provided as an environment variable. This is because it is used to set the tornado.auth.OAuth2Mixin’s _OAUTH_AUTHORIZE_URL value that we need to set.

https://github.com/jupyterhub/oauthenticator/blob/5b0b395326292d526a4c924c34c6d9d1d06818af/oauthenticator/generic.py#L24-L26

Perhaps we can make it so that overriding a traitlet called authorize_url will set the _OAUTH_AUTHORIZE_URL from the tornado.auth.OAuth2Mixin so we are not forced to use environment variables?

Same goes for the _OAUTH_ACCESS_TOKEN_URL I think…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
manicscommented, Oct 13, 2020

@consideRatio I was inspired by your Z2JH epic 😀

0reactions
consideRatiocommented, Oct 13, 2020

I think so! Thank you @manics for your excellent work to issue triage this repo! ❤️ ❤️ ❤️ 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Environment Variables: What They Are and How To Use Them
User environment variables are those that are local to a user profile in Windows systems. These variables are used to store user-specific ...
Read more >
An Introduction to Environment Variables and How to Use Them
An environment variable is a variable whose value is set outside the program, typically through functionality built into the operating system ...
Read more >
What Are Environment Variables and How Can I Use Them ...
Environment variables are predetermined values that are typically used to provide the ability to configure a value in your code from outside of ......
Read more >
How to force an environment variable to a certain value inside ...
The environment variables are set in PHPUnit_Util_Configuration::handlePHPConfiguration() and indeed, it looks like this: foreach ($configuration['env'] as ...
Read more >
Environment variable - Wikipedia
An environment variable is a dynamic-named value that can affect the way running processes will behave on a computer. They are part of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found