Many web services require authentication. The mechanism for authentication varies widely, and this course won’t go into all of them. But one of the most common approaches to protecting a web service from unauthorized access is to use basic authentication—protecting a web service’s content through configuration of the HTTP server.
- [Instructor] Many web services require authentication.…The mechanism for authentication varies widely,…and this course won't go into all of them,…but one of the most common approaches…to protecting a web service from unauthorized access…is to use HTTP basic authentication.…Protecting a web service's content…by securing the directory in which it's stored.…You can figure this through the HTTP server.…My focus will be on showing you…how to take some user credentials,…a username and password, and packaging up…that information, so you can pass it through…an HTTP URL connection, and essentially…authenticate the user to access the web service…from the android app.…
I'll be working with a second copy of my web service.…My original service was in this directory,…under youcanlearnit.net/services.…And I can access everything in this…directory without any authentication.…But there's another sub-directory under here…called Secured, and when I try to access that…through a web browser, I see a challenge dialogue.…I have to type in a username and password.…
IInstructor David Gassner starts with an overview discussion about available networking strategies, and then dives into how to declare networking permissions, make network requests, handle responses, parse data returned from a web service, and pass user credentials to services that support HTTP basic authentication. He also provides an overview of popular higher-level networking libraries, including OkHttp and Picasso, and offers recommendations for improving performance in network-connected apps. David also covers using static feeds, using dynamic PHP pages hosted on a public server web service, and integrating apps with network data storage.
- Integrating mobile apps
- Communicating with Android
- Preventing app freezes with background threads
- Preparing an app for network communication
- Declaring permissions
- Checking network connectivity
- Retrieving data over the web
- Using traditional APIs
- Using third-party libraries