Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Commit

Permalink
Add some additional help around configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mostekcm committed Jan 6, 2017
1 parent b760992 commit cef0d7b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion client/components/Help.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react';

export default () => {
export default ({ tenant }) => {
const clientId = '< auth0-deploy-cli-extension client ID >';
const secret = '< auth0-deploy-cli-extension client secret >';
return (
<div>
<h4>Usage</h4>
Expand All @@ -15,6 +17,22 @@ export default () => {
</code>
</pre>

<h5>Configure the CLI</h5>
<pre style={{ padding: '10px' }}>
<p>
First find the client created by this extension, it is named auth0-deploy-cli-extension: <img src="https://cdn.rawgit.com/auth0-extensions/auth0-box-platform-extension/master/media/help-copy-client-id-secret.png" /><br/>
Next copy the client ID and secret: <img src="https://cdn.rawgit.com/auth0-extensions/auth0-box-platform-extension/master/media/help-find-client.png" />
</p>
<code>
Create a config.json file with the following information:<br/>
{'{'}<br/>
&nbsp;&nbsp;"AUTH0_DOMAIN": "{ tenant }"<br/>
&nbsp;&nbsp;"AUTH0_CLIENT_ID": "{ clientId }"<br/>
&nbsp;&nbsp;"AUTH0_CLIENT_SECRET": "{ secret }"<br/>
{'}'}<br/>
</code>
</pre>

<h5>Run the CLI</h5>
<pre style={{ padding: '10px' }}>
<code>
Expand Down
2 changes: 1 addition & 1 deletion client/containers/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default RequireAuthentication(connectContainer(class App extends Componen
<h1 className="pull-left" style={{ paddingTop: '10px' }}>Deploy CLI</h1>
</div>
</div>
<Help config={this.props.config.get('record').toJS()} />
<Help tenant={window.config.AUTH0_DOMAIN} clientId={window.config.AUTH0_CLIENT_ID} />
</div>
</section>
</div>
Expand Down
Binary file added media/help-copy-client-id-secret.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/help-find-client.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cef0d7b

Please sign in to comment.