What is ๐๐๐ฎ๐ญ๐ก๐.๐ : This is an ๐๐ฎ๐ญ๐ก๐จ๐ซ๐ข๐ณ๐๐ญ๐ข๐จ๐ง mechanism ๐ง๐จ๐ญ ๐๐ฎ๐ญ๐ก๐๐ง๐ญ๐ข๐๐๐ญ๐ข๐จ๐ง mechanism
๐๐๐ฎ๐ญ๐ก stands for ๐๐ฉ๐๐ง ๐๐ฎ๐ญ๐ก๐จ๐ซ๐ข๐ณ๐๐ญ๐ข๐จ๐ง as this is open standard
๐๐๐ฎ๐ญ๐ก๐.๐ is ๐ฉ๐ซ๐จ๐ญ๐จ๐๐จ๐ฅ or we can call it a ๐ ๐ซ๐๐ฆ๐๐ฐ๐จ๐ซ๐ค as well
๐๐ฎ๐ซ๐ฉ๐จ๐ฌ๐: Oauth2.0 is used to ๐๐ฎ๐ญ๐ก๐จ๐ซ๐ข๐ณ๐ ๐๐ซ๐ ๐ฉ๐๐ซ๐ญ๐ฒ ๐๐ฉ๐ฉ๐ฅ๐ข๐๐๐ญ๐ข๐จ๐ง๐ฌ to access ๐ซ๐๐ฌ๐จ๐ฎ๐ซ๐๐๐ฌ of user on behalf of User
๐๐จ๐ฅ๐๐ฌ in OAuth2.0:
1. ๐๐๐ฌ๐จ๐ฎ๐ซ๐๐ ๐๐ฐ๐ง๐๐ซ: Person who owns the resources
2. ๐๐ฅ๐ข๐๐ง๐ญ: 3rd party application that want to access Resource owner resources. So, it should have the Access token of the Resource owner
3. ๐๐ฎ๐ญ๐ก๐จ๐ซ๐ข๐ณ๐๐ญ๐ข๐จ๐ง ๐๐๐ซ๐ฏ๐๐ซ: Authorization server helps client obtaining access token of Resource owner
4. ๐๐๐ฌ๐จ๐ฎ๐ซ๐๐ ๐๐๐ซ๐ฏ๐๐ซ: Once the client has Access Token it can use the access token to access Resource owners protected resources.
How ๐๐๐ฎ๐ญ๐ก๐.๐ flow ๐ฐ๐จ๐ซ๐ค๐ฌ?
โญ First Client should be ๐ซ๐๐ ๐ข๐ฌ๐ญ๐๐ซ๐๐ against OAuth server to obtain client id and client secret
โญ Now client will make ๐๐ฎ๐ญ๐ก๐จ๐ซ๐ข๐ณ๐๐ญ๐ข๐จ๐ง ๐๐๐ช๐ฎ๐๐ฌ๐ญ to Authorization server with client id and client secret
โญ Now ๐๐๐ฌ๐จ๐ฎ๐ซ๐๐ ๐จ๐ฐ๐ง๐๐ซ need to enter credentials to ๐๐ฎ๐ญ๐ก๐จ๐ซ๐ข๐ณ๐ ๐๐ซ๐ ๐ฉ๐๐ซ๐ญ๐ฒ ๐๐ฉ๐ฉ๐ฅ๐ข๐๐๐ญ๐ข๐จ๐ง๐ฌ to access Resource Owner resources
โญ Once Resource owner grant the permission, Authorization server will issue ๐๐ฎ๐ญ๐ก๐จ๐ซ๐ข๐ณ๐๐ญ๐ข๐จ๐ง ๐๐จ๐๐ based on Grant Type
โญNow, client need to hit Token end point to obtain ๐๐๐๐๐ฌ๐ฌ ๐๐จ๐ค๐๐ง by passing Authorization Code received in previous step
โญWith Access Token client can now access protected ๐๐๐ฌ๐จ๐ฎ๐ซ๐๐๐ฌ of Resource owner
๐๐ซ๐๐ง๐ญ ๐๐ฒ๐ฉ๐๐ฌ:
-Way of getting Access Token from Authorization Server
๐. ๐๐ฎ๐ญ๐ก๐จ๐ซ๐ข๐ณ๐๐ญ๐ข๐จ๐ง ๐๐จ๐๐: Server issues auth code and auth code is used to get access token
๐. ๐๐ฆ๐ฉ๐ฅ๐ข๐๐ข๐ญ: Server issues access token directly
๐. ๐๐๐ฌ๐จ๐ฎ๐ซ๐๐ ๐๐ฐ๐ง๐๐ซ: Authorization server issues Access token directly with resource owner credentials
๐. ๐๐ฅ๐ข๐๐ง๐ญ ๐๐ซ๐๐๐๐ง๐ญ๐ข๐๐ฅ๐ฌ: Client credentials are used to get Access token from Authorization Server
Let us meet in video
Regards
PrinceAutomationDestination
The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research๏ผ
If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.