Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

add dataset & scopes to token #20

Merged
merged 1 commit into from Jan 9, 2017
Merged

Conversation

ranbreuer
Copy link
Contributor

No description provided.

@msftclas
Copy link

msftclas commented Jan 5, 2017

Hi @ranbreuer, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Ran Breuer). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@@ -87,3 +87,45 @@ The following decoded JSON web token
"nbf": 1360043456
}
```

## Adding Permission Scopes to Embed Tokens
When using Embed tokens, one might want to restrict usage of the resources he gives access to. For this reason, you can generate a token with scoped permissions.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is public documentation - do we need to review it with technical writers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do, will do this as part of merge to master


if (datasetId) {
token.addClaim('did', datasetId);
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if you have both rid and did?

@@ -34,6 +44,14 @@ export class PowerBIToken {
}
}

if (scopes) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it valid not passing any scopes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverting to defaults

@ranbreuer ranbreuer merged commit 1b2eec9 into DevBranch Jan 9, 2017
@ranbreuer ranbreuer deleted the b-rbreuer/add_scopes branch January 9, 2017 10:11
ranbreuer added a commit that referenced this pull request Jan 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants