{"id":18969675,"url":"https://github.com/mefarazath/sample-basic-auth","last_synced_at":"2025-07-08T10:08:17.317Z","repository":{"id":73213768,"uuid":"190175723","full_name":"mefarazath/sample-basic-auth","owner":"mefarazath","description":null,"archived":false,"fork":false,"pushed_at":"2019-06-04T10:08:09.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-02T11:11:17.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mefarazath.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-04T09:59:47.000Z","updated_at":"2019-06-04T10:08:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"da963a15-36ea-4048-b38e-d64f60a90b4c","html_url":"https://github.com/mefarazath/sample-basic-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mefarazath/sample-basic-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefarazath%2Fsample-basic-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefarazath%2Fsample-basic-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefarazath%2Fsample-basic-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefarazath%2Fsample-basic-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mefarazath","download_url":"https://codeload.github.com/mefarazath/sample-basic-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefarazath%2Fsample-basic-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259642337,"owners_count":22888991,"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-08T14:53:45.343Z","updated_at":"2025-06-13T12:07:48.039Z","avatar_url":"https://github.com/mefarazath.png","language":"Java","readme":"# Custom Basic Authenticator Samples\n\n1. mvn clean install\n2. Copy components/org.wso2.carbon.identity.application.authenticator.basicauth.custom/target/org.wso2.carbon.identity.application.authenticator.basicauth.custom-6.0.9-SNAPSHOT.jar to IS_HOME/repository/components/dropins\n3. Copy resources/login.jsp IS_HOME/repository/deployment/server/webapps/authenticationendpoint/\n\n\nConfiguring\n* Custom Basic Request Path Authenticator\n![Alt text](resources/basic-requestpath.png?raw=true \"Custom Basic Authenticator\")\n\n\n\n* Custom Basic Authenticator\n![Alt text](resources/basic-auth.png?raw=true \"Custom Basic Request Path Authenticator\")\n\n\n\nSample Requests\n1. Custom Basic Request Path Authenticator (Credentials sent in the Basic Auth header in request)\n\n` curl -k -v  --user admin:admin  https://localhost:9443/oauth2/authorize?response_type=code\u0026client_id=H4nlWzP11x_DwtgavojIAW5sYnUa\u0026redirect_uri=https://localhost/callback\u0026scope=openid\n`\n\n2. Custom Basic Authenticator \n\n`https://localhost:9443/oauth2/authorize?response_type=code\u0026client_id=11FIYleecll80kNUB3ENnjJ26dMa\u0026redirect_uri=https://localhost/callback\u0026scope=openid`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmefarazath%2Fsample-basic-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmefarazath%2Fsample-basic-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmefarazath%2Fsample-basic-auth/lists"}