Cooperation between different websites can be a valuable tool (think Facebook login buttons everywhere). However, this presents a problem: How can Facebook verify who you are to a third party website without possibly revealing your sensitive credentials? They can’t just send over your username and password where a hacker may intercept it.
OAuth is a standard for authentication that doesn’t require the third party site (The “Service Provider” or SP for short) to know your password or anything about you. Instead, they have arranged a trust between themselves and the site that controls your credentials (The “Identity Provider” or IDP for short). For example, a website you use your Facebook login on never needs your Facebook username/password. They have simply arranged with Facebook where they can ask “Who is this?” and Facebook responds “This is ______, go ahead and log them in”. This works the same way when you log into websites that bring you through the UNG Single Sign-On service.
The chart above is a simple layout of the OAuth 2.0 flow but it goes something like this:
1) The user tries to access a protected resource on the SP
2) The SP redirects to the IDP
3) The IDP authenticates the user
3) The IDP generates a short-life grant token and redirects back to the SP
4) The SP submits the grant token back to the IDP
5) The IDP replies with a long-life access token 6) Now the SP can request protected information from the IDP using the access token and it will fulfill the request
Part 1 – IDP Setup
In order for the Service Provider script on your own website to be able to log in correctly, it needs to establish a trust with my Identity Provider.
Register and log in to and it will provide you with the information that you need to configure your script. You’ll need to input the address of your script for the redirect URL (Something like http://yoursite.com/A4/index.php)
You can also fill in some information here that is your “Private information” that only authenticated websites should be able to read.
Part 2 – SP Setup
Create a folder called “A4” on your server and make a new index.php file inside it. Copy this script and paste it into the new file. Complete each of the three areas of the script that are marked “TODO”. If you do it correctly, then you should be able to browse to that page and click the log in button. You’ll be directed to my website where you will be able to log in using the same account you registered before. Next, your script will perform the OAuth flow detailed above and you’ll be logged in on your own website.
The interesting thing here is that now you’ll see the “secret information” you put into my website on your own website. It is being retrieved directly from the remote server using the access token to verify who you are.
The fun part about this is that now any student in the class can also browse to your website and log in and see their own secret information. But your website never needs to ask them for their username or password. It simply asks mine, and believes they are who I saw they are. Cool eh?
We always make sure that our academic writers follow all your instructions precisely. You can choose your academic level and we will assign a writer who has a respective degree.
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document.
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. Otherwise a 100% refund is guaranteed.
We use several writing tools checks to ensure that all documents you receive are free from plagiarism. We also promise maximum confidentiality in all of our services.
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Whether you have an urgent deadline or those that have time. You can take some time and relax after trusting us with your paper. We make sure that we conduct the academic writing services diligently.
Among the wide variety of academic work, essay writing is one of the simplest a student can ever come across. Usually, it is a task which students encounter and learn how to write whilst in high school. However, the case is quite different when it comes to university and college.
Are you looking for an online writing firm that can offer you reliable custom term paper writing help? Is your wish and desire to get someone who can guide you throughout the process of writing term papers? If yes, then you have come to the right place.
Coursework is essential for every student in order to graduate from college. However, most of it is deadline-centric, and that becomes a challenge to most learners. With the amount of work, learners are receiving every day, finding time to work on every task is not easy.
Online homework help services are an answer to every challenge that students go through. Despite the difference in the needs and levels of learning, all students can benefit from these services. Acemyhomework is one of the best online homework help service companies you can find on the internet.