{"id":17163020,"url":"https://github.com/amnuts/auth-login-test","last_synced_at":"2025-03-24T16:39:21.209Z","repository":{"id":67393134,"uuid":"105907731","full_name":"amnuts/auth-login-test","owner":"amnuts","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-13T10:48:22.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T21:54:34.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/amnuts.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-10-05T15:34:01.000Z","updated_at":"2017-10-05T15:35:10.000Z","dependencies_parsed_at":"2023-06-11T00:30:11.595Z","dependency_job_id":null,"html_url":"https://github.com/amnuts/auth-login-test","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/amnuts%2Fauth-login-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2Fauth-login-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2Fauth-login-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2Fauth-login-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amnuts","download_url":"https://codeload.github.com/amnuts/auth-login-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245312864,"owners_count":20595055,"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-10-14T22:47:32.945Z","updated_at":"2025-03-24T16:39:21.180Z","avatar_url":"https://github.com/amnuts.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Getting started\n\n#### Generate the JWT encryption key\n\nBy default, this test app is set to use HS512, so at the very least you must generate that key.  For information on how, read the file `keys/hs512.example`.\n\nIf you wanted to use a different encryption technique, create a file with that algorithm (eg, hs256, rsa512, etc.)\n\n#### Install dependencies\n\nRun `composer install` in the `site` directory, the `service-auth` directory, and the `service-api` directory.\n\n#### Run the init script to set up the database\n\nTo create the example database:\n\n```\ncd service-auth\ncomposer run-script initdb\n```\n\nThe database structure is very simple; you have a users table that holds the authentication details, a saml_entities table that holds information about the IdPs and then a users_saml table that links the two.\n\nThe db script will randomly populate the tables with users and assignments to the IdP information.  The IdP is set up with an example OneLogin service.  If you want to use you own service then change the details in this initdb script or just alter the database after it's been created.\n\n#### Run the web servers\n\nThe app is set up to use three specific ports on localhost.  The easiest way to get them fired up is to use PHP's built in web server with the following commands:\n\n```\nphp -S localhost:8010 -t site/public\nphp -S localhost:8020 -t service-auth/public\nphp -S localhost:8030 -t service-api/public\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famnuts%2Fauth-login-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famnuts%2Fauth-login-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famnuts%2Fauth-login-test/lists"}