{"id":37016425,"url":"https://github.com/geniushkg/github-oauth","last_synced_at":"2026-01-14T01:51:23.434Z","repository":{"id":45902820,"uuid":"72610287","full_name":"geniushkg/github-oauth","owner":"geniushkg","description":"Android library to add oauth login flow for github , minimum api 14","archived":false,"fork":false,"pushed_at":"2020-02-04T07:26:14.000Z","size":526,"stargazers_count":53,"open_issues_count":0,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-06T17:29:24.709Z","etag":null,"topics":["android","authentication-flow","github-api","github-oauth","oauth","sdk-android"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geniushkg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-02T06:23:30.000Z","updated_at":"2024-01-09T00:29:49.000Z","dependencies_parsed_at":"2022-08-25T14:30:54.382Z","dependency_job_id":null,"html_url":"https://github.com/geniushkg/github-oauth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/geniushkg/github-oauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geniushkg%2Fgithub-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geniushkg%2Fgithub-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geniushkg%2Fgithub-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geniushkg%2Fgithub-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geniushkg","download_url":"https://codeload.github.com/geniushkg/github-oauth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geniushkg%2Fgithub-oauth/sbom","scorecard":{"id":422537,"data":{"date":"2025-08-11","repo":{"name":"github.com/geniushkg/github-oauth","commit":"448571188898ec62be1ffb085c0b98cc94b4a885"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 4/18 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/android.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":7,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: oauthLibGithub/libs/okhttp.jar:1","Warn: binary detected: oauthLibGithub/libs/okio.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/android.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/geniushkg/github-oauth/android.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/android.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/geniushkg/github-oauth/android.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: License:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T01:34:40.202Z","repository_id":45902820,"created_at":"2025-08-19T01:34:40.202Z","updated_at":"2025-08-19T01:34:40.202Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","authentication-flow","github-api","github-oauth","oauth","sdk-android"],"created_at":"2026-01-14T01:51:22.853Z","updated_at":"2026-01-14T01:51:23.420Z","avatar_url":"https://github.com/geniushkg.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-oauth\nSimple library to integrate Github authentication to android app using OAuth.\n\n## Installation\n\n    compile 'com.github.geniushkg:oauthLibGithub:1.0.2'\n\nAdd to manifest \n\n    \u003cuses-permission android:name=\"android.permission.INTERNET\"/\u003e\n\nand activity declaration:\n\n    \u003cactivity android:name=\"com.hardikgoswami.oauthLibGithub.OauthActivity\"/\u003e\n## Github Auth Flow\nInitialise new Auth instance with credentials\u003c/br\u003e\n1. Client id : you get it from your github profile by creating new app.\u003c/br\u003e [Follow this tutorial](https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/)\n2. Client Secret : same as above.\u003c/br\u003e\n3. NextActivity : Thats your activity you want launch after user gets authenticated.\u003c/br\u003e\n4. Context : you  can use context variable from place where initiate the process that is getActivity() from fragment or getapplicationcontext() from activity.\n\n**Sample initialization :**\n\n\n        // Github ID and secret are generated in github.com profile\n\t\t// package name is your packagename\n\t\t// next activity is your activity with full name including package \n\t\t// you can use debug(true) for logcat , use TAG = \"github-oauth\"\n\t\t\n\t\t// scope can also be defined (optional)\n\n\t\tloginButton.setOnClickListener(new View.OnClickListener() {\n\n            @Override\n            public void onClick(View v) {\n                 GithubOauth\n                        .Builder()\n                        .withClientId(GITHUB_ID)\n                        .withClientSecret(GITHUB_SECRET)\n                        .withContext(context)\n                        .packageName(\"com.hardikgoswami.github_oauth_lib\")\n                        .nextActivity(\"com.hardikgoswami.github_oauth_lib.UserActivity\")\n                        .debug(true)\n                         .execute();\n            }\n        });\n\n**Note :** Callback url can be as per your requirement or make it http://localhost while registering new Oauth application.\n\n**Note 2:** Available scopes are presented on the table below\n\n  Scope\t\t\t| Description\n  ----------------------|---------------------\n  repo:status \t\t| Access commit status\n  repo_deployment \t| Access deployment status\n  public_repo \t\t| Access public repositories\n  admin:org \t\t| Full control of orgs and teams\n  write:org \t\t| Read and write org and team membership\n  read:org \t\t| Read org and team membership\n  admin:public_key \t| Full control of user public keys\n  write:public_key \t| Write user public keys\n  read:public_key \t| Read user public keys\n  admin:repo_hook \t| Full control of repository hooks\n  write:repo_hook \t| Write repository hooks\n  read:repo_hook \t| Read repository hooks\n  admin:org_hook \t| Full control of organization hooks\n  gist \t\t\t| Create gists\n  notifications \t| Access notifications\n  user \t\t\t| Update all user data\n  read:user \t\t| Read all user profile data\n  user:email \t\t| Access user email addresses (read-only)\n  user:follow \t\t| Follow and unfollow users\n  delete_repo \t\t| Delete repositories\n  admin:gpg_key \t| Full control of user gpg keys (Developer Preview)\n  write:gpg_key \t| Write user gpg keys\n  read:gpg_key \t\t| Read user gpg keys\n\n\nExecute will launch a new activity with webview and user token will be stored in shared preference\n\n\nshared preference name : github_prefs\n\nString in preference : oauth_token\n\n\t\t// Sample to read logged in user oauth token\n        public static final String PREFERENCE = \"github_prefs\";\n\t\tsharedPreferences = getSharedPreferences(PREFERENCE, 0);\n        String oauthToken = sharedPreferences.getString(\"oauth_token\", null);\n        Log.d(TAG, \"oauth token for github loged in user is :\" + oauthToken);\n\nif you found any bug you can create issue or want to contribute feel free to PR.\n\n## Contributor's \n_________________________________________________\n[darvid7](https://github.com/darvid7 \"Darvid7\")\n[jdamacena](https://github.com/jdamacena \"jdamacena\")\n\n\nFor new programmer's -\u003e do not hesitate, please send PR we both will learn something new. :)\n\n[twitter](https://twitter.com/geniushkg \"Goswami Hardik\") - [linkedIn](https://www.linkedin.com/in/geniushkg \"Goswami Hardik\") - [blog](http://hardikgoswami.com \"Goswami Hardik\") \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeniushkg%2Fgithub-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeniushkg%2Fgithub-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeniushkg%2Fgithub-oauth/lists"}