Closed anonymouse64 closed 5 years ago
One alternative is to pass configuration.toml file as the parameter in the dockercompose file as the edgexporxy accept comfigration file as one of start up parameters. I agree eventually a more flexible way is to have a field to hold all the resources the bearer token can be used for. This may need extra time for investigation.
I think there's two potential improvements here:
edgexproxy
we have #55 to that covers this issue. currently we are using global OAuth applying all the microservices resources so no longer need to put multiple resources names anywhere in the configuration.
Currently if you wish to use
edgexproxy
to create an OAuth token for a given service, the configuration.toml file has to be modified each time when for example the user to create the token for is configurable from the command line. This means that the flow for creating tokens for all the services would consist of:I think the easiest way to handle this is to allow specifying the resource from the command line instead of in the configuration.toml file.