Open burimbd opened 1 year ago
This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale
label.
This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale
label.
This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale
label.
Describe the bug?
The configuration reader for the
.okta.yaml
file does not read in the applications or project's root directoryAPPorProjectRootDir
, but instead get the file from the directory where thegithub.com/okta/okta-sdk-golang/v2@v2.14.0
is installed. In my case it tries to get the config file from "~/go/pkg/mod/github.com/okta/okta-sdk-golang/v2@v2.14.0/.okta.yaml".What is expected to happen?
Based on documentation the configuration file should be retrieved from
A .okta.yaml file in the application or project's root directory
. I would expect that file to be on my projects root directory and not that of okta's package.What is the actual behavior?
Sdk tries to read the config file from the okta package installation location : "~/go/pkg/mod/github.com/okta/okta-sdk-golang/v2@v2.14.0/.okta.yaml"
Reproduction Steps?
test
go mod init
from inside the foldergo get github.com/okta/okta-sdk-golang/v2/okta
from inside the folder.okta.yaml
file inside the folder with the following content:main.go
file with the following content:import ( "context" "fmt"
)
func main() { ctx, client, err := okta.NewClient( context.TODO(), )
}
Error: your Okta API token is missing. You can generate one in the Okta Developer Console. Follow these instructions: https://bit.ly/get-okta-api-token Context:
Client: