Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

What can be the purpose of OAuth on your website or project?

Solved! Go to Solution.

Hi all,

 

I wasas wondering, what would be the purpose of creating a OAuth application and authentication system for your website or project. Of course to log in with it, but then what? What would be examples of good purposes to use GitHub OAuth, for example when doing a website application project?

 

Kind regards,

 

Lars

1 Reply
Solution
Community Manager
Message 2 of 2

Re: What can be the purpose of OAuth on your website or project?

As it states on the OAuth website:

 

OAuth is a simple way to publish and interact with protected data.

 

One way to use GitHub OAuth in a non-GitHub website or application is as an identity mechanism. You give your application's users the ability to use GitHub to authenticate who they are. This saves you from having to deal with passwords and all the mess that goes along with them. It also gives you an avatar for them as well, so you don't have to store and police potentially abusive avatar images. If you've seen a "Sign in with GitHub" button on a website such as https://travis-ci.org or https://exercism.io, then that's what they're using GitHub OAuth for. Additionally, we have information on how to do this in our developer documentation.

 

But how to use OAuth depends on what your website or application does.  Does your website or application need to see its user's GitHub data? Then GitHub OAuth might be the right solution. Does your website or application need to calculate spaceship transfer orbits between Venus and Mars? Then GitHub OAuth is less likely to be the right solution.

 

I hope that helps!