Skip to content

Commit a1a9814

Browse files
authored
Merge pull request #139 from akeneo/fitn-patch-1
Fix client and secret generation with CLI in getting started of the admin
2 parents 7f532cc + fa26029 commit a1a9814

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/getting-started-admin.handlebars

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,23 @@
8383
<h3>With a command line</h3>
8484
<p>Alternatively, you can create the client id and secret with a single command line directly on the PIM server.</p>
8585
<h4>With the 2.0 version</h4>
86-
<pre class="hljs"><code>php bin/console pim:oauth-server:create-client \
86+
<pre class="hljs"><code>php bin/console pim:oauth-server:create-client my-customer-account \
8787
--grant_type=<span class="hljs-string">"password"</span> \
8888
--grant_type=<span class="hljs-string">"refresh_token"</span> \
8989
--env=prod</code>
9090
</pre>
9191
<h4>With the 1.7 version</h4>
9292
<pre class="hljs"><code>php app/console pim:oauth-server:create-client \
93+
--label=<span class="hljs-string">"my-customer-account"</span>
9394
--grant_type=<span class="hljs-string">"password"</span> \
9495
--grant_type=<span class="hljs-string">"refresh_token"</span> \
9596
--env=prod</code>
9697
</pre>
9798
<p>You will get something like:</p>
9899
<pre class="hljs"><code>A new client has been added:
99100
client_id: 4gm4rnoizp8gskgkk080ssoo80040g44ksowwgw844k44sc00s
100-
secret: 5dyvo1z6y34so4ogkgksw88ookoows00cgoc488kcs8wk4c40s</code>
101+
secret: 5dyvo1z6y34so4ogkgksw88ookoows00cgoc488kcs8wk4c40s
102+
label: my-customer-account</code>
101103
</pre>
102104
<p>Give by any mean of your choice these credentials to Peter. And that's it! Thanks to it, he will be able to finally access the API. Take a look to the <a href="getting-started.html">Developer Getting started</a> to know how.</p>
103105
<div class="alert alert-info">To revoke the access, you just have to revoke it from the <code>API connections</code> screen (in 2.0) or run a single command line (in 1.7). To have more details, take a look at the <a href="/documentation/security.html">Security</a> section of the documention.</div>

0 commit comments

Comments
 (0)