{"id":21932366,"url":"https://github.com/reneweb/oauth2orize_implicit_example","last_synced_at":"2025-04-19T19:28:33.867Z","repository":{"id":17178911,"uuid":"19946266","full_name":"reneweb/oauth2orize_implicit_example","owner":"reneweb","description":"This is an example of the oAuth implicit flow using oauth2orize, express 4 and mongoDB.","archived":false,"fork":false,"pushed_at":"2016-03-07T00:55:53.000Z","size":12,"stargazers_count":22,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T12:11:48.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/reneweb.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":"2014-05-19T15:05:18.000Z","updated_at":"2020-08-20T00:42:45.000Z","dependencies_parsed_at":"2022-09-11T02:22:59.025Z","dependency_job_id":null,"html_url":"https://github.com/reneweb/oauth2orize_implicit_example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneweb%2Foauth2orize_implicit_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneweb%2Foauth2orize_implicit_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneweb%2Foauth2orize_implicit_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneweb%2Foauth2orize_implicit_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reneweb","download_url":"https://codeload.github.com/reneweb/oauth2orize_implicit_example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249779230,"owners_count":21324382,"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":[],"created_at":"2024-11-28T23:18:25.402Z","updated_at":"2025-04-19T19:28:33.837Z","avatar_url":"https://github.com/reneweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"oauth2orize_implicit_example\n============================\n\nThis is an example of the oAuth implicit flow using oauth2orize, express 4 and mongoDB.\n\n##### Installation\n\n```\ngit clone https://github.com/reneweb/oauth2orize_implicit_example.git\nnpm install\nnode app.js\n```\nNote: You may need to change the database configuration in the db.js file, if mongoDB doesn't run using the default port or is not running on localhost.\n\n##### Usage (with cURL)\n\n###### 0 - Register a client\n\nNavigate to /client/registration. Register a new client.\n\n###### 1 - Register a user\n\nNavigate to /registration. Register a new user.\n\n###### 2 - Get an access token\n\nNavigate to /oauth/authorization?clientId=\u0026lt;clientId\u0026gt;\u0026redirectUri=\u0026lt;redirectUri\u0026gt;\u0026responseType=token. Login with username and password. Then allow the client to access your account.\nIf everything works the access code is returned in the fragment identifier of the URL.\n\n\n###### 3 - Access a restricted resource using the access token\n\n```\ncurl -X GET \u003cIP\u003e:\u003cPORT\u003e/restricted -v -H \"Authorization: Bearer \u003caccessToken\u003e\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneweb%2Foauth2orize_implicit_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freneweb%2Foauth2orize_implicit_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneweb%2Foauth2orize_implicit_example/lists"}