{"id":20066764,"url":"https://github.com/fizker/swift-oauth2-models","last_synced_at":"2025-06-27T06:36:29.485Z","repository":{"id":144907594,"uuid":"279244776","full_name":"fizker/swift-oauth2-models","owner":"fizker","description":"Models for OAuth2 (RFC 6749) in Swift","archived":false,"fork":false,"pushed_at":"2024-03-17T13:36:43.000Z","size":915,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-12T23:22:15.390Z","etag":null,"topics":["oauth2","oauth2-client","oauth2-server","swift"],"latest_commit_sha":null,"homepage":"https://fizker.github.io/swift-oauth2-models/documentation/oauth2models/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fizker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-13T08:38:00.000Z","updated_at":"2022-04-02T13:23:21.000Z","dependencies_parsed_at":"2025-01-12T23:21:55.618Z","dependency_job_id":"02303a94-a5f5-48e9-b876-2d4839f716e5","html_url":"https://github.com/fizker/swift-oauth2-models","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fizker%2Fswift-oauth2-models","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fizker%2Fswift-oauth2-models/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fizker%2Fswift-oauth2-models/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fizker%2Fswift-oauth2-models/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fizker","download_url":"https://codeload.github.com/fizker/swift-oauth2-models/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241494181,"owners_count":19971871,"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":["oauth2","oauth2-client","oauth2-server","swift"],"created_at":"2024-11-13T13:59:47.960Z","updated_at":"2025-06-27T06:36:29.473Z","avatar_url":"https://github.com/fizker.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-oauth2-models\n\nSwift models compatible with the [RFC 6749 OAuth2 spec](https://tools.ietf.org/html/rfc6749).\n\nThere is no logic outside of validations for data content and parsing of the raw JSON models into Swifty types.\n\nDocC documentation for the project can be found at [https://fizker.github.io/swift-oauth2-models/documentation/oauth2models/](https://fizker.github.io/swift-oauth2-models/documentation/oauth2models/).\n\n\n## How to use\n\n1. Add `.package(url: \"https://github.com/fizker/swift-oauth2-models.git\", from: \"0.4.0\")` to the list of dependencies in your Package.swift file.\n2. Add `.product(name: \"OAuth2Models\", package: \"swift-oauth2-models\")` to the dependencies of the targets that need to use the models.\n3. Add `import OAuth2Models` in the file and use the types. See the examples or tests for more details at this level.\n\n\n## Examples\n\nFor examples, see the content of the [Examples playground](Examples.playground).\n\n- [4.5 Extension Grants](Examples.playground/Pages/4.5%20Extension%20Grant.xcplaygroundpage/Contents.swift) - Shows how to use custom types or types otherwise not supported by this library.\n- [Decoding Custom Properties](Examples.playground/Pages/4.5%20Extension%20Grant.xcplaygroundpage/Contents.swift) - Shows how to decode custom properties.\n  Short version: Simply call `decoder.decode(type, from: data)` multiple times with different `type` values and the same `data` value.\n\n- [Encoding Custom Properties](Examples.playground/Pages/4.5%20Extension%20Grant.xcplaygroundpage/Contents.swift) - Shows how to encode custom properties.\n  Short version: Use a custom `Encodable` type with an array of `Encodable` items, and a custom `encode(to:)` encoding the items one after another.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffizker%2Fswift-oauth2-models","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffizker%2Fswift-oauth2-models","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffizker%2Fswift-oauth2-models/lists"}