Skip to content

Please fix the graph scopes #119

@DanielSV92

Description

@DanielSV92

If you try to use the component for OBO flow (which is possible), the helper.ts function is causing an error

export const getScopes = (graphScopes?: string[]) => { const scopes = graphScopes || []; if (!scopes.find((el: string) => el.toLowerCase() === "user.read")) { scopes.push("user.read"); } return scopes; };

here you are automatically adding the 'user.read' scope if not found, but it causes a conflict when trying to use .default due to not allowing specific scopes with default scope, something like this:

.default scope can't be combined with resource-specific scopes.

I strongly suggest to either remove that condition or tell the function to get something like

export const getScopes = (graphScopes?: string[]) => { const scopes = graphScopes || ['user.read']; return scopes; };

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions