{"id":20307371,"url":"https://github.com/oktadev/okta-grails-example","last_synced_at":"2025-08-17T20:10:39.836Z","repository":{"id":103824228,"uuid":"136064797","full_name":"oktadev/okta-grails-example","owner":"oktadev","description":"A Basic Grails App with Authentication","archived":false,"fork":false,"pushed_at":"2019-09-26T15:14:49.000Z","size":200,"stargazers_count":0,"open_issues_count":1,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-13T07:37:14.386Z","etag":null,"topics":["authorization","grails","oauth2","okta"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2018/06/04/okta-with-grails-part2","language":"CSS","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/oktadev.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,"zenodo":null}},"created_at":"2018-06-04T18:11:36.000Z","updated_at":"2019-09-26T15:14:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"3fd47139-4a9a-4454-aaf6-f28400bb59ec","html_url":"https://github.com/oktadev/okta-grails-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-grails-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-grails-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-grails-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-grails-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-grails-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-grails-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-grails-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270899582,"owners_count":24664720,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["authorization","grails","oauth2","okta"],"created_at":"2024-11-14T17:17:26.736Z","updated_at":"2025-08-17T20:10:39.806Z","avatar_url":"https://github.com/oktadev.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Basic Grails App with Authentication\n\nThis example creates a basic camera inventory application with Grails and adds authentication with Okta. See the corresponding blog posts for more info:\n\n* [Build Server Side Authentication in Grails with OAuth 2.0 and Okta](https://developer.okta.com/blog/2018/04/19/okta-with-grails) - creates initial application and adds OAuth 2.0 support\n* [Build a Basic CRUD Application with Grails and Okta](https://developer.okta.com/blog/2018/06/04/okta-with-grails-part2) - adds additional endpoints and secures them with annotations\n\n**Prerequisites:** \n\n* [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)\n* [Grails](http://grails.org/index.html)\n\n\u003e [Okta](https://developer.okta.com/) has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage, and secure users and roles in any application.\n\n* [Getting Started](#getting-started)\n* [Links](#links)\n* [Help](#help)\n* [License](#license)\n\n## Getting Started\n\nTo install this example application, run the following commands:\n\n```bash\ngit clone https://github.com/oktadeveloper/okta-grails-example.git\ncd okta-grails-example\n```\n\nThis will get a copy of the project installed locally. You can run the application with:\n \n```bash\ngrails run-app\n```\n\n### Setup Okta\n\nLog in to your Okta Developer account (or [sign up](https://developer.okta.com/signup/) if you don’t have an account) and navigate to **Applications** \u003e **Add Application**. Click **Single-Page App**, click **Next**, and give the app a name you’ll remember. Click **Done**.\n\n#### Server Configuration\n\nOpen `grails-app/conf/application.yml` and replace `{yourOktaDomain}`, `\u003cOkta Client ID\u003e`, and `\u003cOkta Client Secret\u003e` in the following code block. \n\n```yaml\nokta:\n    api_key: '\u003cOkta Client ID\u003e'         \n    api_secret: '\u003cOkta Client Secret\u003e'\n    userInfoUrl: 'https://{yourOktaDomain}.com/oauth2/default/v1/userinfo'\n    authorizeUrl: 'https://{yourOktaDomain}.com/oauth2/default/v1/authorize'\n    tokenUrl: 'https://{yourOktaDomain}.com/oauth2/default/v1/token'\n    scopes: 'email profile openid'\n```\n\n**NOTE:** The value of `{yourOktaDomain}` should be something like `dev-123456.oktapreview`. Make sure you don't include `-admin` in the value!\n\n## Links\n\nThis example uses the following libraries provided by Okta:\n\n* [Okta JWT Verifier](https://github.com/okta/okta-oidc-js/tree/master/packages/jwt-verifier)\n* [Okta Sign-In Widget](https://github.com/okta/okta-signin-widget)\n\n## Help\n\nPlease post any questions as comments on the [blog post](https://developer.okta.com/blog/2018/06/04/okta-with-grails-part2), or visit our [Okta Developer Forums](https://devforum.okta.com/). You can also email developers@okta.com if would like to create a support ticket.\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-grails-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-grails-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-grails-example/lists"}