Skip to content
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

default file for dotenv config #130

Open
haishengwu-okta opened this issue Aug 18, 2020 · 3 comments
Open

default file for dotenv config #130

haishengwu-okta opened this issue Aug 18, 2020 · 3 comments

Comments

@haishengwu-okta
Copy link
Contributor

haishengwu-okta commented Aug 18, 2020

These values must exist as environment variables. They can be exported in the shell, or saved in a file named testenv, at the root of this repository.

but I need to name it .env in root of okta-hosted-login root.

➜  okta-hosted-login git:(master) ✗ node --version
v12.13.0
➜  okta-hosted-login git:(master) ✗ npm --version
6.12.0
@aarongranick-okta
Copy link
Contributor

I think the change may need to be made in the okta-oidc-tck library: https://oktainc.atlassian.net/browse/OKTA-247107

@haishengwu-okta
Copy link
Contributor Author

is oidc-tck just an testing tool? is the sample code actually looking for testenv file or default .env?

@nabeards
Copy link

nabeards commented Nov 1, 2021

Also just had this issue. The problem is that okta-env.js is inside the env folder, so using

path.join(__dirname, '..', 'testenv'))

is actually looking in the okta-hosted-login folder, not the root folder of the project. Moving the testenv file inside the okta-hosted-login folder fixes the issue.

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

No branches or pull requests

3 participants