Why do apple and google require a seperate client_id per platform (web, android, ios) for implementing oauth? - Stack Overflow
I've been trying to understand the oauth2 protocol lately and I think I have a decent understanding.
Here is a brief overview of how I understand Oauth Sign in in on a headless website:
- User want to log in on website, click google login
- Frontend redirects to portal with client_id
- User gives permission.
- Frontend recieved auth_code (in auth-code flow at least)
- frontend send auth-code to backend
- backend exchanges auth-code for acces-token. This requires client_secret and client_id.
- Backend exchanges acces-token for data
So if the frontend with client_id 'some-string' request permission and its granted. Then the backend with client 'some-string' and its associated client_secret is able get the user data.
Now I learn that other platforms (android, ios) need separate client_id's configured. This doesn't make sense to me. Can anyone explain that to me?
最新文章
- 台北电脑展10大杀手级电脑硬件
- 安卓4.4 vs iOS 7 谁是最佳移动操作系统
- Windows 8—微软反击苹果的终极武器
- Pre-increment and Post-increment in C - Stack Overflow
- pycharm - Why would the python code throw an exception (invalid instance in App.root), if "@property" is remov
- scipy - Generalized Nonsymmetric Eigensolver Python - Stack Overflow
- R CatBoost support for incremental training - Stack Overflow
- visual studio code - Why am I getting “Type annotations can only be used in TypeScript files” with tsx files? - Stack Overflow
- rust - Basic bracket-lib example crashes with “unsafe precondition(s) violated: slice::from_raw_parts” - Stack Overflow
- uiviewcontroller - MacCatalyst Scene Frame needs adjustment - Stack Overflow
- vue.js - single pages doesn't work when i moved them to app component - Stack Overflow
- reactjs - can not use an id that I saved in props as default value in react select - Stack Overflow
- django - SimpleJWT: Re-apply Blacklist Token Migration: "Table 'token_blacklist_blacklistedtoken' doesn
- google sheets - shortest formula to get the last non zero value from column - Stack Overflow
- javascript - <function name> error: FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been
- swift - Infinite Update Loop with .onGeometryChange and Padding - Stack Overflow
- next.js - Update Server Component via a Client Component - Stack Overflow