A swift package for authenticating with Okta (OktaOidc dependency). This package is broken into 2 classes. A common OktaAuthentication class for working with OktaOidc and a CruOktaAuthentication class which inherits from OktaAuthentication and includes shared functionality for Cru apps. Most Cru apps will use the CruOktaAuthentication class.
OktaAuthentication - This class operates on the OktaOidc dependency and keeps a static reference to the OktaOidcStateManager and access token when a successful authentication is made.
CruOktaAuthentication - This class inherits from OktaAuthentication and provides shared logic that Cru apps utilize. Such as configuring OktaOidc, renewing a prior auth access token, sign out, and decoding a CruOktaUser.
Steps to publish new versions for Cocoapods and Swift Package Manager.
-
Edit OktaAuthentication.podspec s.version to the newly desired version following Major.Minor.Patch.
-
Run command 'pod lib lint OktaAuthentication.podspec --private --verbose --sources=https://github.com/CruGlobal/cocoapods-specs.git,https://cdn.cocoapods.org/' to ensure it can deploy without any issues (https://guides.cocoapods.org/making/using-pod-lib-create.html#deploying-your-library).
-
Merge the s.version change into the main branch and then tag the main branch with the new version and push the tag to remote (Swift Package Manager relies on tags).
-
Run command 'pod repo push cruglobal-cocoapods-specs --private --verbose --sources=https://github.com/CruGlobal/cocoapods-specs.git,https://cdn.cocoapods.org/' to push to CruGlobal cocoapods specs (https://github.com/CruGlobal/cocoapods-specs). You can also run command 'pod repo list' to see what repos are currently added and 'pod repo add cruglobal-cocoapods-specs https://github.com/CruGlobal/cocoapods-specs.git' to add repos (https://guides.cocoapods.org/making/private-cocoapods.html).
Cru Global Specs Repo: https://github.com/CruGlobal/cocoapods-specs
Private Cocoapods: https://guides.cocoapods.org/making/private-cocoapods.html