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

Developers App creates new Consumer Key every time maven update is run #27

Closed
bkarakashev opened this issue Sep 1, 2017 · 3 comments
Closed

Comments

@bkarakashev
Copy link

Every time I run mvn update for Developers App even if I haven't changed anything it's creating new Consumer Key in the app. Is it possible to disable that? as there is no need of new Consumer Key every time we run mvn update.
For example, if we add new attribute to the Developer App and run mvn update it will add new Consumer Key. I am not sure is doing this maybe my config is not correct. How can I disable that?

@ssvaidyanathan
Copy link
Collaborator

@bkarakashev - this is a duplicate of #17

As you may know, the plugin is orchestrating the Mgmt API call. In this case, Mgmt API does that. We do not control it. If the Update Developer App request body contains a Product attribute, it updates the dev app and also creates a new credential. This is expected as you may have features where you need different creds for different Product setup.

I can think of two work arounds:

  1. For this scenario, where you just want to update custom attributes for an existing dev app, change the request body to exclude the products attribute (programmatically if possible) so that it does not create a new credential
  2. Instead of running update command, see if you can first run the delete and then run the create so that it always creates a new dev app with the latest body in your configuration

@bkarakashev
Copy link
Author

Will be nice if the plugin can support that. Not generating new Consumer Key every time.

@ssvaidyanathan
Copy link
Collaborator

Sure.. Will mark #17 as enhancement and tag this as a duplicate. Will see if we can include some option that will do this for you. But in the meanwhile you can follow the steps mentioned above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants