Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArcGISIdentityManager.validateAppAccess does not consider custom portal URL #990

Open
ReneU opened this issue May 16, 2022 · 0 comments
Open

Comments

@ReneU
Copy link

ReneU commented May 16, 2022

It looks like an instance of ArcGISIdentityManager that uses a custom portal url will still make a request to www.arcgis.com/sharing/rest/oauth2/validateAppAccess when calling instance.validateAppAccess(myClientId).

Shouldn't this instead try to validate the user's app access against the configured portal? I can see that my manager's portal property is set to my custom portal url after creating it via deserialize({ portal: 'myCustomUrl', ... })

From looking at the code it might be enough to pass the third parameter (portal: string) to validateAppAccess:

public validateAppAccess(clientId: string): Promise<IAppAccess> {
return this.getToken(this.portal).then((token) => {
return validateAppAccess(token, clientId);
});
}

I'm happy to work on a fix for this if someone can confirm that this is a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant