{"id":18675255,"url":"https://github.com/knoxilla/flessions","last_synced_at":"2026-04-20T03:31:22.575Z","repository":{"id":146897699,"uuid":"91120892","full_name":"knoxilla/flessions","owner":"knoxilla","description":"Flask, Flask-Sessions, and the Box SDK for Python.","archived":false,"fork":false,"pushed_at":"2023-07-07T13:20:36.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T12:07:48.765Z","etag":null,"topics":["box-sdk","flask","oauth","redis","sessions"],"latest_commit_sha":null,"homepage":"","language":"Python","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/knoxilla.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":"2017-05-12T18:53:08.000Z","updated_at":"2023-07-07T18:39:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b302d22-1e23-4d45-b017-7e1aab9c97eb","html_url":"https://github.com/knoxilla/flessions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/knoxilla/flessions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxilla%2Fflessions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxilla%2Fflessions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxilla%2Fflessions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxilla%2Fflessions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knoxilla","download_url":"https://codeload.github.com/knoxilla/flessions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxilla%2Fflessions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["box-sdk","flask","oauth","redis","sessions"],"created_at":"2024-11-07T09:23:55.104Z","updated_at":"2026-04-20T03:31:22.561Z","avatar_url":"https://github.com/knoxilla.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Box SDK and Oauth2 in Flask\n\nJust a quick demo of authorizing the Box SDK via OauthW in a Flask app.\n\nFake user logins are associated with sessions, and Flask-Sessions is used to store session keys/values in local Redis at 127.0.0.1:6379.\n\nTo run, clone this repo, `cd` into it, and:\n\n\t% virtualenv env\n\t% . env/bin/activate\n\t% pip install -r requirements.txt\n\t% cp boxapp.cfg-sample boxapp.cfg\n\t% \u003cedit boxapp.cfg to add your client_id and client_secret\u003e\n\t% python flessions.py\n\nThe `/auth/` route kicks off the Oauth2 journey, and the `/callback` route completes the circle.\n\nOnce the access_token and refresh_token are stored in the session, we can pull them out to construct an authenticated Box client on-demand.\n\nThe `/whoami` and `/mystuff` routes exercise the Box API after the application has been authorized, and the tokens stored.\n\nLots to do here to make this sane regarding users, sessions, expiry, persistence, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknoxilla%2Fflessions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknoxilla%2Fflessions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknoxilla%2Fflessions/lists"}