{"id":16133292,"url":"https://github.com/hendrickson-tyler/swift-pkce","last_synced_at":"2025-03-18T15:30:58.970Z","repository":{"id":114893914,"uuid":"463298251","full_name":"hendrickson-tyler/swift-pkce","owner":"hendrickson-tyler","description":"A simple Swift package for the PKCE OAuth 2.0 extension","archived":false,"fork":false,"pushed_at":"2024-09-10T15:47:31.000Z","size":70,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-10T22:44:02.278Z","etag":null,"topics":["codechallenge","codeverifier","oauth2","pkce","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hendrickson-tyler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-24T20:53:17.000Z","updated_at":"2024-09-10T15:48:33.000Z","dependencies_parsed_at":"2023-12-13T23:28:55.835Z","dependency_job_id":"6d77abbc-25ea-4c44-acc7-b7f532389aab","html_url":"https://github.com/hendrickson-tyler/swift-pkce","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrickson-tyler%2Fswift-pkce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrickson-tyler%2Fswift-pkce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrickson-tyler%2Fswift-pkce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrickson-tyler%2Fswift-pkce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hendrickson-tyler","download_url":"https://codeload.github.com/hendrickson-tyler/swift-pkce/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221713510,"owners_count":16868265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codechallenge","codeverifier","oauth2","pkce","swift"],"created_at":"2024-10-09T22:44:08.226Z","updated_at":"2024-10-27T17:53:36.450Z","avatar_url":"https://github.com/hendrickson-tyler.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift PKCE\n\nSwift PKCE is a lightweight collection of commonly used, client-side code generations in an [OAuth 2.0 Authorization Code flow + PKCE](https://oauth.net/2/pkce/) implemented in Swift. Each function conforms to the [RFC 7636](https://datatracker.ietf.org/doc/html/rfc7636) protocol.\n\n## Availability\n\nDue to the dependency on [Apple CryptoKit](https://developer.apple.com/documentation/cryptokit), Swift PKCE is available to the following platforms:\n\niOS 13.0+\\\niPadOS 13.0+\\\nmacOS 10.15+\\\nMac Catalyst 15.0+\\\ntvOS 15.0+\\\nwatchOS 8.0+\n\n## Usage\n\nImport the Swift PKCE framework by adding it to the imports at the top of the file:\n\n```swift\nimport PKCE\n```\n\n### Functions\n\n**generateCodeVerifier**\\\nGenerates a new, random code verifier with a specified length of characters.\n\n```swift\nfunc generateCodeVerifier(length: Int = 128) throws -\u003e String {\n```\n\n**generateCodeChallenge**\\\nGenerates a code challenge for a given code verifier.\n\n```swift\nfunc generateCodeChallenge(for: String) throws -\u003e String\n```\n\n## Attribution\n\nThe original code for Swift PKCE was sourced from a [Bootstragram blog post](https://bootstragram.com/blog/oauth-pkce-swift-secure-code-verifiers-and-code-challenges/) written by [@dirtyhenry](https://github.com/dirtyhenry) and updated slightly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhendrickson-tyler%2Fswift-pkce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhendrickson-tyler%2Fswift-pkce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhendrickson-tyler%2Fswift-pkce/lists"}