{"id":25976156,"url":"https://github.com/kh77/social-login-by-token","last_synced_at":"2026-05-15T11:36:01.810Z","repository":{"id":119364291,"uuid":"352597272","full_name":"kh77/social-login-by-token","owner":"kh77","description":"Fetch google, Facebook, apple access token from backend","archived":false,"fork":false,"pushed_at":"2021-07-11T09:44:00.000Z","size":106,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T03:35:30.582Z","etag":null,"topics":["apple-login","facebook-oauth-login","google-oauth-login","oauth","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/kh77.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":"2021-03-29T10:04:51.000Z","updated_at":"2024-02-09T05:41:06.000Z","dependencies_parsed_at":"2023-04-06T05:33:30.565Z","dependency_job_id":null,"html_url":"https://github.com/kh77/social-login-by-token","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kh77/social-login-by-token","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fsocial-login-by-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fsocial-login-by-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fsocial-login-by-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fsocial-login-by-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kh77","download_url":"https://codeload.github.com/kh77/social-login-by-token/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fsocial-login-by-token/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33065700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["apple-login","facebook-oauth-login","google-oauth-login","oauth","springboot"],"created_at":"2025-03-05T03:35:24.778Z","updated_at":"2026-05-15T11:36:01.805Z","avatar_url":"https://github.com/kh77.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Validate Social login token at back-end and get profile information\n\n# Social Login (IOS, Google, Facebook, Linkedin)\n- Create Web Project in developer console of social platform \n- Using developer console and get the access token then hit the API\n\n\n- Facebook PlayGround \n  - https://developers.facebook.com/tools/explorer/\n\n\n- Google PlayGround\n  - https://developers.google.com/oauthplayground/\n  - Scope : openid email profile\n  - Exchange authorization code for token then you will get id_token\n    \n\n- Linkedin \n  - https://www.linkedin.com/developers\n  - Get client id and secret \n  - Hit below url to get code and use this code in request body for token field\n  - https://www.linkedin.com/oauth/v2/authorization?client_id=helloworld\u0026redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fhome\u0026response_type=code\u0026state=abcdef\u0026scope=r_liteprofile%20r_emailaddress\n  - No playground has been found for linkedin\n\n\n- Swagger\n  - http://localhost:8080/app/swagger-ui.html\n\n\n\n- For Facebook \n  - Request body\n    - {\n        \"provider\": \"facebook\",\n        \"token\": \" Get access token from Playground \"\n      }\n\n\n\n- For Google\n  - Request body\n    - {\n        \"provider\": \"google\",\n        \"token\": \" Get id token from Playground \"\n      }\n\n\n\n- For Linkedin\n    - Request body\n        - {\n          \"provider\": \"linkedin\",\n          \"token\": \" Get authorization code\"\n          }\n          \n\n\n- For Apple : \n  - We need authorization code to validate on it.\n  - We are passing the values of firstName and lastName because when we get authorization code that time user-info will be provided after that only email will be received. This is current behaviour in APPLE doc. \n  - Request body\n    - {\n        \"firstName\" : \"Hello\"\n        \"lastName\" : \"World\"\n        \"provider\" : \"apple\",\n        \"token\" : \"Get authorization code. It will be used only one time to validate and get the user information\"\n      }\n      \n\n- Important class and points\n    - SocialClient.java \n        - google and facebook api to get user info    \n        \n    - IOSConfig.java\n        - 4 properties we need from apple developer project\n    \n    - IOSClient.java\n        - get apple user info","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkh77%2Fsocial-login-by-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkh77%2Fsocial-login-by-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkh77%2Fsocial-login-by-token/lists"}