Skip to content

Commit 2dfcbdf

Browse files
Merge pull request #102 from watson-developer-cloud/add-iam-section-to-readme
docs: add readme section about iam
2 parents 438d657 + 1199491 commit 2dfcbdf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ This method enables a smaller bundle by only including the desired components, f
3535
var recognizeMic = require('watson-speech/speech-to-text/recognize-microphone');
3636
```
3737

38+
## Using with IAM
39+
40+
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).
41+
42+
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).
3843

3944
## Changes
4045

0 commit comments

Comments
 (0)