Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
[Issue #175] Fixing infinite request loop on invalid credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Nov 23, 2014
1 parent b42ea8a commit 90b8bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cupertino/provisioning_portal/agent.rb
Expand Up @@ -48,9 +48,9 @@ def get(uri, parameters = [], referer = nil, headers = {})

case page.title
when /Sign in with your Apple ID/
login! and redo
login!
when /Select Team/
select_team! and redo
select_team!
else
return page
end
Expand Down

1 comment on commit 90b8bd1

@rubberviscous
Copy link

Choose a reason for hiding this comment

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

I believe this was causing an issue with our use case at our company where it was causing DoS attack on Apple's developer portal. We had setup a cron job that would download all the provisioning profiles to our build servers every 15 minutes. Apple emailed us one day notifying us that they were getting over a million requests within an hour accessing developer accounts on their portal. We had to disable the script as a result. I'll need to check out the latest version to see if the issue is resolved. Thanks again for your work on this great gem!

Please sign in to comment.