Difference between client_id and client_secret OAuth2 &OAuth flows types

CodeNinja

I doing research about OAuth2. A lot of things are clear for me but I have 2 questions.

Question 1, client_id, and client_secret

With OAuth an client can be identified with the client_id and client_secret. But I cann't find the difference between these 2. I only found that the client_id is public and the client_secret is private.

I think it works like this but I'm not sure about it. *When there is an app called "GreatApp" which would to get data from the OAuth2 API. It registers by the API and it gets 2 id's one client_id which is the same for every individual installation of the GreatApp. And they get the client_secret which is unique for each individual installation of the GreatApp.

This means you can recognize the application which connects to the API with the client_id and you can recognize an individual phone or tablet by the client_secret.

Is this correct or am I wrong?

Second question: Different types of flows

There are more than one kind of flow used by OAuth2. I read a lot about this and watched some videos on YouTube. They explain 2 or 3 kinds but they don't say clearly the name of each flow. I Googled a lot but I can't find a clear explanation about what type of flows there are and which I should use in what situation. I found this documentation but this is Oracle-specific I think.**

Is there someone who can explain to me the flows and when I should use which flow?

MvdD

Client ids and secrets are used for confidential clients, meaning those that can keep a secret such as web applications that live on web servers. They are typically not used to register individual instances like mobile apps.

Which grant flow to use when I've described in this answer. HTH

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Difference between client_id and client_secret OAuth2 &OAuth flows types

From Dev

OAuth2 Server setup 'client_id' ad ''client_secret' for 'password' grant type

From Dev

OAuth2 Password Grant Type with Client_Id & Client_Secret

From Dev

Oauth2 & Laravel - `Client_id` & `Client_secret` - where to place, store, call?

From Dev

OAuth2 client_secret column not allowed to be null

From Dev

oauth2 client_secret from my gmail account?

From Dev

How can I hard-code client_id and client_secret of Google OAuth's in my java application?

From Dev

Useless client_secret in OAuth v2

From Dev

OAuth2: What is the difference between the JWT Authorization Grant and Client Credentials Grant with JWT client authentication?

From Dev

Django OAuth2 Error: invalid_client and client_id=None when client_id has been provided

From Dev

jhipster oauth2 client secret

From Dev

Tools for OAuth2 without client secret

From Dev

Security of OAuth2 Client Id and Client Secret

From Dev

OAuth 2 for native application - what is difference between public and confidential client types?

From Dev

Use Google OAuth 2.0 refresh token without client_secret

From Dev

Use Google OAuth 2.0 refresh token without client_secret

From Dev

difference between OAuth2 and Omniauth

From Dev

difference between OAuth2 and Omniauth

From Dev

Understanding Client in OAuth2

From Dev

what are the difference between "consumer" and "client" in oAuth?

From Dev

Understanding client_id and client_secret

From Dev

Client secret + refreshing the access token in spring oauth2

From Dev

How to generate Client Secret in OAuth2 Authentication using Spring

From Dev

can not find client Secret on google OAUTH2

From Dev

OAuth2 - how to authorize without client secret?

From Dev

Prefix OAuth properties ? i.e. as:client_id

From Dev

Why I shouldn't keep client_secret in mobile app in OAuth 2.0 (authorization code grant flow)

From Dev

Why I shouldn't keep client_secret in mobile app in OAuth 2.0 (authorization code grant flow)

From Dev

How to protect or hide oAuth CLIENT_SECRET using Javascript in a chrome extension?

Related Related

  1. 1

    Difference between client_id and client_secret OAuth2 &OAuth flows types

  2. 2

    OAuth2 Server setup 'client_id' ad ''client_secret' for 'password' grant type

  3. 3

    OAuth2 Password Grant Type with Client_Id & Client_Secret

  4. 4

    Oauth2 & Laravel - `Client_id` & `Client_secret` - where to place, store, call?

  5. 5

    OAuth2 client_secret column not allowed to be null

  6. 6

    oauth2 client_secret from my gmail account?

  7. 7

    How can I hard-code client_id and client_secret of Google OAuth's in my java application?

  8. 8

    Useless client_secret in OAuth v2

  9. 9

    OAuth2: What is the difference between the JWT Authorization Grant and Client Credentials Grant with JWT client authentication?

  10. 10

    Django OAuth2 Error: invalid_client and client_id=None when client_id has been provided

  11. 11

    jhipster oauth2 client secret

  12. 12

    Tools for OAuth2 without client secret

  13. 13

    Security of OAuth2 Client Id and Client Secret

  14. 14

    OAuth 2 for native application - what is difference between public and confidential client types?

  15. 15

    Use Google OAuth 2.0 refresh token without client_secret

  16. 16

    Use Google OAuth 2.0 refresh token without client_secret

  17. 17

    difference between OAuth2 and Omniauth

  18. 18

    difference between OAuth2 and Omniauth

  19. 19

    Understanding Client in OAuth2

  20. 20

    what are the difference between "consumer" and "client" in oAuth?

  21. 21

    Understanding client_id and client_secret

  22. 22

    Client secret + refreshing the access token in spring oauth2

  23. 23

    How to generate Client Secret in OAuth2 Authentication using Spring

  24. 24

    can not find client Secret on google OAUTH2

  25. 25

    OAuth2 - how to authorize without client secret?

  26. 26

    Prefix OAuth properties ? i.e. as:client_id

  27. 27

    Why I shouldn't keep client_secret in mobile app in OAuth 2.0 (authorization code grant flow)

  28. 28

    Why I shouldn't keep client_secret in mobile app in OAuth 2.0 (authorization code grant flow)

  29. 29

    How to protect or hide oAuth CLIENT_SECRET using Javascript in a chrome extension?

HotTag

Archive