Comments (2)
When we architected AppAuth, we decided that the storage of tokens was out of scope – something that would be implemented either in a higher layer library, or in the application itself. Serialization is in scope though, all AppAuth models implement NSSecureCoding
, so you can easily use AppAuth with the Keychain wrapper of your choice by serializing to and from NSData
.
The benefit of this layer separation is that AppAuth operates hermetically. It can't accidentally modify state that your app depends on, since you are responsible for maintaining that state.
Google's iOS authentication library which is a layer above (and dependant on) AppAuth does exactly this, by providing a KeyChain wrapper. If you need a library which is more opinionated about token storage, you can potentially use that one (it's open source, and works with all providers, not just Google).
from appauth-ios.
Thanks for the hasty response and nice recommendation. I understand that design choice. Thanks again for the help!
from appauth-ios.
Related Issues (20)
- `presentEndSessionRequest` is not accessible from Swift HOT 2
- UserDefaults api requires reason for use in the privacy manifest HOT 1
- How to create `OIDAuthState` variable without `OIDAuthState.authState` action
- Token is not active HOT 4
- AppAuth cannot be integrated as static libraries with CocoaPods because it does not define a module (`DEFINES_MODULE`) HOT 3
- ASWebAuthenticationSession - Current init method is deprecated
- AppAuth/Resources/PrivacyInfo.xcprivacy not copied into Pod HOT 3
- authState as a property of AppDelegate
- AppAuth v1.7.4: Cocoapods warning becase new `"xcconfig": { "DEFINES_MODULE": "YES" }` on podspec file HOT 1
- iOS: For Client Authentication method. How can I change to "Send client credentials in body"? HOT 2
- Valérie
- Supporting DPoP HOT 1
- [email protected] HOT 2
- visionOS support HOT 1
- Help needed: How to use a certain auth method? HOT 2
- Crash when using TVOS device authorization workflow when an error occurs during token retrieval HOT 5
- Device workflow is missing the client_id parameter in token requests HOT 1
- Multiple warnings when building project. HOT 1
- Fast please
- XCFramework archive - No such module on import AppAuth / AppAuthCore HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appauth-ios.