{"id":25720004,"url":"https://github.com/gregwhitaker/springboot-rsocketbasicauth-example","last_synced_at":"2025-05-06T19:45:15.216Z","repository":{"id":82732660,"uuid":"228887602","full_name":"gregwhitaker/springboot-rsocketbasicauth-example","owner":"gregwhitaker","description":"Example of using Basic Auth with RSocket and Spring Boot","archived":false,"fork":false,"pushed_at":"2020-12-04T19:50:36.000Z","size":108,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T02:21:29.884Z","etag":null,"topics":["basic-authentication","reactive","reactive-programming","reactive-streams","rsocket","rsocket-java","spring-boot","spring-messaging","spring-sec"],"latest_commit_sha":null,"homepage":"","language":"Java","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/gregwhitaker.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-12-18T17:14:11.000Z","updated_at":"2022-11-18T02:27:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"69eb51d2-77d9-454b-afd5-4eba7750b438","html_url":"https://github.com/gregwhitaker/springboot-rsocketbasicauth-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/gregwhitaker%2Fspringboot-rsocketbasicauth-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fspringboot-rsocketbasicauth-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fspringboot-rsocketbasicauth-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fspringboot-rsocketbasicauth-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/springboot-rsocketbasicauth-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252756521,"owners_count":21799493,"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":["basic-authentication","reactive","reactive-programming","reactive-streams","rsocket","rsocket-java","spring-boot","spring-messaging","spring-sec"],"created_at":"2025-02-25T17:36:17.992Z","updated_at":"2025-05-06T19:45:15.202Z","avatar_url":"https://github.com/gregwhitaker.png","language":"Java","readme":"# springboot-rsocketbasicauth-example\n![Build](https://github.com/gregwhitaker/springboot-rsocketbasicauth-example/workflows/Build/badge.svg)\n\nAn example of using Basic Auth with [RSocket](http://rsocket.io) and Spring Boot.\n\n## Building the Example\nRun the following command to build the example application:\n\n    ./gradlew clean build\n    \n## Running the Example\nFollow the steps below to run the example application:\n\n1. Run the following command to start the `hello-service`:\n\n        ./gradlew :hello-service:bootRun\n        \n2. In a new terminal, run the following command to send a request to the unsecured `hello` endpoint:\n\n        ./gradlew :hello-client:bootRun --args=\"hello Bob\"\n        \n    If successful, you will see the following response:\n    \n        2019-12-18 11:02:55.038  INFO 3540 --- [           main] e.client.hello.HelloClientApplication    : Sending message without Basic Auth metadata...\n        2019-12-18 11:02:55.065  INFO 3540 --- [           main] e.client.hello.HelloClientApplication    : Response: Hello, Bob, from unsecured method\n        \n3. Next, run the following command to send a request to the secure `hello.secure` endpoint:\n\n        ./gradlew :hello-client:bootRun --args=\"hello.secure Bob\"\n        \n    You will receive an `io.rsocket.exceptions.ApplicationErrorException: Access Denied` because you have not supplied valid credentials.\n   \n4. Next, run the following command to send a request to the secure `hello.secure` endpoint, but this time supplying valid credentials:\n\n        ./gradlew :hello-client:bootRun --args=\"--username=admin --password=password hello.secure Bob\"\n        \n    If successful, you will see the following response:\n\n        2019-12-18 11:07:12.171  INFO 3575 --- [           main] e.client.hello.HelloClientApplication    : Sending message with Basic Auth metadata...\n        2019-12-18 11:07:12.284  INFO 3575 --- [           main] e.client.hello.HelloClientApplication    : Response: Hello, Bob, from secured method\n\n## Bugs and Feedback\nFor bugs, questions, and discussions please use the [Github Issues](https://github.com/gregwhitaker/springboot-rsocketbasicauth-example/issues).\n\n## License\nMIT License\n\nCopyright (c) 2019-Present Greg Whitaker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fspringboot-rsocketbasicauth-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Fspringboot-rsocketbasicauth-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fspringboot-rsocketbasicauth-example/lists"}