{"id":18982333,"url":"https://github.com/defactosoftware/oauth_mock_server","last_synced_at":"2025-11-10T17:03:34.407Z","repository":{"id":35032223,"uuid":"197171185","full_name":"DefactoSoftware/oauth_mock_server","owner":"DefactoSoftware","description":"Server for mocking OAuth/SSO requests using predefined responses","archived":false,"fork":false,"pushed_at":"2022-02-04T11:34:59.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T12:11:12.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/DefactoSoftware.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":"2019-07-16T10:16:37.000Z","updated_at":"2022-02-04T10:58:36.000Z","dependencies_parsed_at":"2022-08-08T04:00:57.337Z","dependency_job_id":null,"html_url":"https://github.com/DefactoSoftware/oauth_mock_server","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/DefactoSoftware%2Foauth_mock_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefactoSoftware%2Foauth_mock_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefactoSoftware%2Foauth_mock_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefactoSoftware%2Foauth_mock_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DefactoSoftware","download_url":"https://codeload.github.com/DefactoSoftware/oauth_mock_server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239986965,"owners_count":19729715,"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-08T16:13:10.261Z","updated_at":"2025-11-10T17:03:34.364Z","avatar_url":"https://github.com/DefactoSoftware.png","language":"Elixir","readme":"# OauthMockServer\n\n**Server for mocking OAuth/SSO requests using predefined responses**\n\nCurrently, only mocks ADFS SSO responses with barebones data\n\nSupported endpoint:\n- `/adfs/metadata.xml`: Returns a barebones metadata.xml with only the public signing certificate node present\n- `/adfs/oauth2/authorize`: Returns an empty `200` response\n- `/adfs/oauth2/authorize?redirect_uri=URI`: Redirects to the callback url, with an authorization code attached\n- `/adfs/oauth2/token?code={value}`: Returns an encoded `{\"sub\" =\u003e \"value\"}` claim in a JWT, where \"value\" is equal to the value of the `code` param\n\nAdd the param `user=value` or `client_id=value` to the authorize endpoint to use that value as the authorization code when redirecting.\n\nClaims can be decoded with the public signing certificate\n\n## Configuration\n\n```elixir\n# Run the server on port 54345, add to startup children\n{OauthMockServer, port: 54345}\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `oauth_mock_server` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:oauth_mock_server, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nOtherwise:\n\n```elixir\ndef deps do\n  [\n    {:oauth_mock_server,\n      git: \"https://github.com/DefactoSoftware/oauth_mock_server.git\", only: [:dev, :test]}\n  ]\nend\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefactosoftware%2Foauth_mock_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefactosoftware%2Foauth_mock_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefactosoftware%2Foauth_mock_server/lists"}