Change the BASIC Security Scheme inputs

I have added a Basic Authorization Security Scheme to my SmartDocs model.

1561-screen-shot-2015-11-26-at-103813.png

This shows likes this:

1562-screen-shot-2015-11-26-at-103838.png

However I would like to use the client-id and client-secret instead of email and password.

Can I change this popup?

Solved Solved
1 1 435
1 ACCEPTED SOLUTION

I fixed it.

Go to: SmartDocs > {your model} > Security Settings.

Click on the "Template Auth Settings" link.

Then in the "Method Template" box you can change how the security schemes behave.

1563-screen-shot-2015-11-26-at-123309.png

This is what I changed:

<div>
  <form>
    <div></div>
    <div>
      <label for="inputEmail">Client ID</label>
      <input  type="text" id="inputEmail" placeholder="Client ID"/>
    </div>
    <div>
      <label for="inputPassword">Client Secret</label>
      <input type="password" id="inputPassword" placeholder="Client Secret"/>
    </div>
  </form>
</div>

And this is the result:

1564-screen-shot-2015-11-26-at-123715.png

View solution in original post

1 REPLY 1

I fixed it.

Go to: SmartDocs > {your model} > Security Settings.

Click on the "Template Auth Settings" link.

Then in the "Method Template" box you can change how the security schemes behave.

1563-screen-shot-2015-11-26-at-123309.png

This is what I changed:

<div>
  <form>
    <div></div>
    <div>
      <label for="inputEmail">Client ID</label>
      <input  type="text" id="inputEmail" placeholder="Client ID"/>
    </div>
    <div>
      <label for="inputPassword">Client Secret</label>
      <input type="password" id="inputPassword" placeholder="Client Secret"/>
    </div>
  </form>
</div>

And this is the result:

1564-screen-shot-2015-11-26-at-123715.png