{"id":23913417,"url":"https://github.com/shyamz-22/openid-connect-client","last_synced_at":"2025-07-04T16:35:16.549Z","repository":{"id":57734820,"uuid":"117333520","full_name":"shyamz-22/openid-connect-client","owner":"shyamz-22","description":"OpenId Connect Java Client","archived":false,"fork":false,"pushed_at":"2018-03-08T15:57:49.000Z","size":920,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T15:15:40.428Z","etag":null,"topics":["java","jvm-languages","kotlin","openid-connect","openid-connect-basic-client","spring-security"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/shyamz-22.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":"2018-01-13T10:08:29.000Z","updated_at":"2024-09-03T05:59:30.000Z","dependencies_parsed_at":"2022-08-28T03:21:21.707Z","dependency_job_id":null,"html_url":"https://github.com/shyamz-22/openid-connect-client","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/shyamz-22/openid-connect-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shyamz-22%2Fopenid-connect-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shyamz-22%2Fopenid-connect-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shyamz-22%2Fopenid-connect-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shyamz-22%2Fopenid-connect-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shyamz-22","download_url":"https://codeload.github.com/shyamz-22/openid-connect-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shyamz-22%2Fopenid-connect-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263577260,"owners_count":23483130,"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":["java","jvm-languages","kotlin","openid-connect","openid-connect-basic-client","spring-security"],"created_at":"2025-01-05T09:45:14.295Z","updated_at":"2025-07-04T16:35:16.510Z","avatar_url":"https://github.com/shyamz-22.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenID Connect JVM client\n\n[![codecov](https://codecov.io/gh/shyamz-22/openid-connect-client/branch/master/graph/badge.svg)](https://codecov.io/gh/shyamz-22/openid-connect-client)   [![MavenCentral](https://maven-badges.herokuapp.com/maven-central/io.github.shyamz-22/oidc-jvm-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.shyamz-22/oidc-jvm-client)  [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nOpenId Connect Client written in Kotlin.\n\n# OpenID in a nutshell\n\nA Gist of [OpenID Connect](securingApplications.pdf)\n\nThis client is implemented with reference to [OpenID Connect Basic Client Implementer's Guide](https://openid.net/specs/openid-connect-basic-1_0.html)\n\n# OpenID connect Basic Flow\n\n![OpenID basic flow](oidcBasic.png)\n\n\n## Installation\n\n### Gradle\n\n```gradle\ncompile 'io.github.shyamz-22:oidc-jvm-client:$version'\n```\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.shyamz-22\u003c/groupId\u003e\n    \u003cartifactId\u003eoidc-jvm-client\u003c/artifactId\u003e\n    \u003cversion\u003e${version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n\n# How to use the library\n\n## Kotlin\n\n- Step 1:  Load Client Configuration\n\n```kotlin\n ClientConfiguration.\n               .with()\n               .client(\"\u003cyour-client-id\u003e\",\n               \"\u003cyour-redirect-uri\u003e\",\n               \"\u003cyour-secret\u003e\")\n               .issuer(\"\u003cissuer-url\u003e\")\n\n```\n\n- Step 2: Make an Authentication Request\n\n```kotlin\nAuthenticationRequestBuilder()\n                        .basic()\n                        .build()\n                        .andRedirect(response);\n```\n\n- Step 3: Exchange Code for access token and id token\n\n```kotlin\nval user = OpenIdConnectCallBackInterceptor(httpServletRequest)\n                .extractCode()\n                .exchangeCodeForTokens()\n                .extractAuthenticatedUserInfo();\n```\n\n## Java\n\n- Step 1:  Load Client Configuration\n\n```java\n ClientConfiguration.INSTANCE\n               .with()\n               .client(\"\u003cyour-client-id\u003e\",\n               \"\u003cyour-redirect-uri\u003e\",\n               \"\u003cyour-secret\u003e\")\n               .issuer(\"\u003cissuer-url\u003e\")\n\n```\n\n- Step 2: Make an Authentication Request\n\n```java\nnew AuthenticationRequestBuilder()\n                        .basic()\n                        .build()\n                        .andRedirect(response);\n```\n\n- Step 3: Exchange Code for access token and id token\n\n```java\nAuthenticatedUser user = new OpenIdConnectCallBackInterceptor(httpServletRequest)\n                .extractCode(null)\n                .exchangeCodeForTokens()\n                .extractAuthenticatedUserInfo(null);\n```\n\n# References\n1. [OpenID Connect Specification](https://openid.net/specs/openid-connect-core-1_0.html)\n2. [OpenID connect playground](https://openidconnect.net/)\n3. [JWT](https://jwt.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshyamz-22%2Fopenid-connect-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshyamz-22%2Fopenid-connect-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshyamz-22%2Fopenid-connect-client/lists"}