iOS: Add more comprehensive basic auth support

Description

Right now we have a hacky way to support basic auth for API calls, by using user@password:url for the API_HOST_URL in the config. However, this doesn't work with content loaded by web views.

We should add a new config setting:
Something like
BASIC_AUTH_CREDENTIALS:

  • HOST: foo.org
    USERNAME: exampleuser
    PASSWORD: examplepassword

  • HOST: bar.org
    USERNAME: otherexampleuser
    PASSWORD: otherexamplepassword

So you can have a list of credentials.This makes it much easier for us to test on stage or on sandboxes with basic auth enabled.

Steps to Reproduce

None

Reason for Variance

None

Release Notes

None

Assignee

akivaR

Reporter

akivaR

Labels

None

Customer

None

URL

None

Groups with Read-Only Access

None

Actual Points

None

Reach

None

Impact

None

Open edX Discourse Thread

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Contributor Name

None

Blended Project Status Page

None

Story Points

1

Sprint

None

Fix versions

Priority

CAT-2
Configure