{"id":16619877,"url":"https://github.com/techguy-bhushan/grails-spring-security-rest-api","last_synced_at":"2026-04-18T20:02:45.088Z","repository":{"id":73283328,"uuid":"74946820","full_name":"techguy-bhushan/Grails-spring-security-rest-api","owner":"techguy-bhushan","description":"Secure rest api in grails using spring security.","archived":false,"fork":false,"pushed_at":"2017-03-24T20:40:18.000Z","size":487,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-17T22:09:02.954Z","etag":null,"topics":["grails","rest-api","spring-security"],"latest_commit_sha":null,"homepage":"","language":"Groovy","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/techguy-bhushan.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":"2016-11-28T07:08:36.000Z","updated_at":"2024-05-20T19:56:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"aefc2bc9-d69c-4568-8963-97d5bc2d7f6c","html_url":"https://github.com/techguy-bhushan/Grails-spring-security-rest-api","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/techguy-bhushan%2FGrails-spring-security-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techguy-bhushan%2FGrails-spring-security-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techguy-bhushan%2FGrails-spring-security-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techguy-bhushan%2FGrails-spring-security-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techguy-bhushan","download_url":"https://codeload.github.com/techguy-bhushan/Grails-spring-security-rest-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242988111,"owners_count":20217548,"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":["grails","rest-api","spring-security"],"created_at":"2024-10-12T02:43:01.025Z","updated_at":"2026-04-18T20:02:45.072Z","avatar_url":"https://github.com/techguy-bhushan.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grails-spring-security-rest-api-tutorial\n\nRest Api secure with spring security- Sample\n\nThis is a simple Spring Security REST Plugin tutorial where token-based  Authorization is used, app build on grails 2.4.3 version.\nHere I am using roles 1: ROLE_ADMIN (who can see all the list of users/read all posts) 2: ROLE_USER (who can create the Posts/ read all post).\nAnonymous user (who is not registered with application) can only read Posts.\n\nRoles and Users are created in Bootstrap file'.\nApi's path are mapped in Urlmapping file.\nSpring REST Plugin configuration is available in Config file.\n\nRun application : grails run-app\n\nyou can test this apis with curl request or postman.\n\ne.g: test with curl request :\nlogin user :-\ncurl  -H \"Content-Type: application/json\" -X POST -d '{\"username\":\"bhushan\",\"password\":\"password\"}' http://localhost:9000/spring-rest-plugin-sample/api/login\n\no/p : {\"username\":\"bhushan\",\"roles\":[\"ROLE_USER\"],\"token\":\"atqj5tjc3vn41nntsrrb7hgsahh66moc\",\"token_type\":\"Bearer\"}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechguy-bhushan%2Fgrails-spring-security-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechguy-bhushan%2Fgrails-spring-security-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechguy-bhushan%2Fgrails-spring-security-rest-api/lists"}