Skip to content

Commit

Permalink
Merge pull request #102 from watson-developer-cloud/add-iam-section-t…
Browse files Browse the repository at this point in the history
…o-readme

docs: add readme section about iam
  • Loading branch information
germanattanasio authored Feb 4, 2019
2 parents 438d657 + 1199491 commit 2dfcbdf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ This method enables a smaller bundle by only including the desired components, f
var recognizeMic = require('watson-speech/speech-to-text/recognize-microphone');
```

## Using with IAM

This SDK _CAN_ be used in the browser with services that use IAM for authentication. This does require a server-side component - an endpoint used to retrieve the token. An example can be found [here](https://github.com/watson-developer-cloud/speech-javascript-sdk/blob/master/examples/server.js#L92).

Once that is set up, the token can be used in your SDK request with the parameter `access_token`. See [this example](https://github.com/watson-developer-cloud/speech-javascript-sdk/blob/master/examples/static/microphone-streaming.html#L36).

## Changes

Expand Down

0 comments on commit 2dfcbdf

Please sign in to comment.