{"id":18277522,"url":"https://github.com/youkol/scribejava-spring-boot-starter","last_synced_at":"2026-05-10T02:50:44.156Z","repository":{"id":57729931,"uuid":"278344297","full_name":"youkol/scribejava-spring-boot-starter","owner":"youkol","description":"scrivejava for spring boot starter","archived":false,"fork":false,"pushed_at":"2020-07-22T19:43:00.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T12:35:27.672Z","etag":null,"topics":["oauth2","scribejava","scribejava-spring-boot-starter","spring","spring-boot"],"latest_commit_sha":null,"homepage":"https://github.com/youkol/scribejava-spring-boot-starter","language":"Java","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/youkol.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":"2020-07-09T11:20:38.000Z","updated_at":"2023-11-27T20:19:48.000Z","dependencies_parsed_at":"2022-09-11T07:00:26.809Z","dependency_job_id":null,"html_url":"https://github.com/youkol/scribejava-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youkol%2Fscribejava-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youkol%2Fscribejava-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youkol%2Fscribejava-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youkol%2Fscribejava-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youkol","download_url":"https://codeload.github.com/youkol/scribejava-spring-boot-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980830,"owners_count":21027803,"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":["oauth2","scribejava","scribejava-spring-boot-starter","spring","spring-boot"],"created_at":"2024-11-05T12:19:25.425Z","updated_at":"2026-05-10T02:50:44.117Z","avatar_url":"https://github.com/youkol.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### scribejava-spring-boot-starter\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.youkol.support.scribejava/scribejava-spring-boot-starter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.youkol.support.scribejava/scribejava-spring-boot-starter)\n[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/com.youkol.support.scribejava/scribejava-spring-boot-starter?server=https%3A%2F%2Foss.sonatype.org)](https://oss.sonatype.org/content/repositories/snapshots/com/youkol/support/scribejava/scribejava-spring-boot-starter/)\n[![License](https://img.shields.io/badge/license-apache-brightgreen)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\nscribejava for spring boot autoconfigure.\n\n#### Features\n - [x] OAuth2ServiceDelegate. You can customize your own delegate. For example: [SinaWeiboOAuth2ServiceDelegate](https://github.com/youkol/scribejava-spring-boot-starter/blob/master/src/main/java/com/youkol/support/scribejava/service/delegate/SinaWeiboOAuth2ServiceDelegate.java)   \n - [x] Support for basic oauth2 authorization operations. For more information, please see\n [BasicOAuth2LoginController](https://github.com/youkol/scribejava-spring-boot-starter/blob/master/src/main/java/com/youkol/support/scribejava/spring/autoconfigure/oauth2/client/servlet/BasicOAuth2LoginController.java)   \n - [x] Support for Authentication Success Handler and Failure Handler.\n - [x] Support for ApplicationEventPublisher.\n\n #### Usage\nFor Maven\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.youkol.support.scribejava\u003c/groupId\u003e\n  \u003cartifactId\u003escribejava-spring-boot-starter\u003c/artifactId\u003e\n  \u003cversion\u003e${scribejava.spring.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\nSpring-boot application.yml\n```yml\nyoukol:\n  oauth2:\n    web: \n      enabled: true # default true\n      authorize:\n        path: \"/oauth2/authorize/{registrationId}\" # default\n      callback:\n        path: \"/oauth2/callback/{registrationId}\" # default\n    client:\n      enabled: true\n      registration:\n        wechat_offical: # =\u003e OAuth2ServiceDelegate.getName()\n          client-id: [your apikey]\n          client-secret: [your apiSecret]\n          scope: [default scope]\n          redirect-uri: \"{baseUrl}/oauth2/callback/{registrationId}?redirect_uri={redirect_uri}\" # for example\n```\nFor your project\n```java \n@Configuration\npublic class ScribejavaConfig {\n    \n    @Bean\n    public SinaWeiboOAuth2ServiceDelegate sinaWeiboOAuth2ServiceDelegate(\n            ClientRegistrationRepository clientRegistrationRepository, \n            Optional\u003cObjectMapper\u003e objectMapper) {\n        SinaWeiboOAuth2ServiceDelegate delegate = new SinaWeiboOAuth2ServiceDelegate(clientRegistrationRepository);\n        delegate.setObjectMapper(objectMapper);\n\n        return delegate;\n    }\n    @Bean\n    public WeChatMpOAuth2ServiceDelegate weChatMpOAuth2ServiceDelegate(\n            ClientRegistrationRepository clientRegistrationRepository, \n            Optional\u003cObjectMapper\u003e objectMapper) {\n        WeChatMpOAuth2ServiceDelegate delegate = new WeChatMpOAuth2ServiceDelegate(clientRegistrationRepository);\n        delegate.setObjectMapper(objectMapper);\n\n        return delegate;\n    }\n\n    @Bean\n    public AuthenticationSuccessHandler customAuthenticationSuccessHandler() {\n        return new CunstomAuthenticationSuccessHandler();\n    }\n\n    @Bean\n    public AuthenticationFailureHandler customAuthenticationFailureHandler() {\n        return new CunstomAuthenticationFailureHandler();\n    }\n}\n```\n\n#### NOTE\nThanks to spring and spring-security project.\nWhen the project allows, recommend spring-security.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoukol%2Fscribejava-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoukol%2Fscribejava-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoukol%2Fscribejava-spring-boot-starter/lists"}