Content-Length: 228853 | pFad | https://github.com/Azure/BatchExplorer/issues/577

60 Handle forbidden 403 errors · Issue #577 · Azure/BatchExplorer · GitHub
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

Handle forbidden 403 errors #577

Closed
ascobie opened this issue Jul 28, 2017 · 1 comment · Fixed by #623
Closed

Handle forbidden 403 errors #577

ascobie opened this issue Jul 28, 2017 · 1 comment · Fixed by #623
Assignees
Milestone

Comments

@ascobie
Copy link
Member

ascobie commented Jul 28, 2017

I have permissions to read a subscription, but not a particular account within that subscription that results in a 403. The loading state of the UI gets stuck loading. It needs to show the forbidden error.

Note that the account picker DDL in the title shows failure.

loading-stuck

acc-error

@ascobie
Copy link
Member Author

ascobie commented Jul 28, 2017

Update, it's not the batch account read, but the /listKeys operation for the account service.

The client 'ascobie@microsoft.com' with object id '09a78045-22ea-455c-96b0-35f8422a188e' does not have authorization to perform action 'microsoft.batch/batchaccounts/listKeys/action' over scope '/subscriptions/5a7274cb-7e6f-4158-960a-17a31acb807d/resourcegroups/default-azurebatch-eastus2/providers/microsoft.batch/batchaccounts/daryleus2'

public getAccountKeys(accountId: string): Observable {
const subId = ArmResourceUtils.getSubscriptionIdFromResourceId(accountId);
return this.subscriptionService.get(subId)
.flatMap((sub) => this.azure.post(sub, ${accountId}/listKeys))
.map(response => new AccountKeys(response.json()))
.share();
}

Guess we just trap and ignore this error?

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

Successfully merging a pull request may close this issue.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/Azure/BatchExplorer/issues/577

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy