{"id":26479190,"url":"https://github.com/feltex/login-demo","last_synced_at":"2026-04-11T23:32:11.614Z","repository":{"id":282049301,"uuid":"817012873","full_name":"feltex/login-demo","owner":"feltex","description":"Este repositório contém um projeto Spring Boot com Spring Security que implementa autenticação e autorização usando login via GitHub e Google. O objetivo deste projeto é fornecer um exemplo funcional de como integrar provedores de autenticação OAuth2 populares em uma aplicação Spring.","archived":false,"fork":false,"pushed_at":"2024-06-18T21:58:40.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-20T01:43:36.130Z","etag":null,"topics":["github","google","java","java-21","java21","spring-boot","spring-security","springboot"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/feltexbr","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/feltex.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":"2024-06-18T20:56:31.000Z","updated_at":"2024-07-06T14:09:46.000Z","dependencies_parsed_at":"2025-03-12T14:49:38.679Z","dependency_job_id":null,"html_url":"https://github.com/feltex/login-demo","commit_stats":null,"previous_names":["feltex/login-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/feltex/login-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feltex%2Flogin-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feltex%2Flogin-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feltex%2Flogin-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feltex%2Flogin-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feltex","download_url":"https://codeload.github.com/feltex/login-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feltex%2Flogin-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31699435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"ssl_error","status_checked_at":"2026-04-11T21:17:24.556Z","response_time":54,"last_error":"SSL_read: 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":["github","google","java","java-21","java21","spring-boot","spring-security","springboot"],"created_at":"2025-03-20T01:39:57.553Z","updated_at":"2026-04-11T23:32:11.580Z","avatar_url":"https://github.com/feltex.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Security Social Login\n\nVídeo: https://youtu.be/Uc8mPuaNGqM\n\n## Github login\n\n1. Acesse https://github.com/settings/profile\n2. Clique em \"Developer settings\"\n3. Selecione \"OAuth Apps\"\n4. Clique \"New OAuth App\"\n5. Preencha os campos\n   1. Application Name: \"feltex-springboot-auth2\"\n   2. Homepage URL: \"http://localhost:8080\"\n   3. Authorization callback URL: \"http://localhost:8080/login/oauth2/code/github\"\n   4. Clique \"Register application\"\n   5. Clique em \"generate a new client secret\"\n      1. Copie o código gerado d5d32c3c804ec8e20d6d7852f0ecc43af619821c\n6. Selecione sua aplicação\n7. Copie o Client Id/Secretd\n\nhttps://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps\n\n\n## Google Login \n\n### https://cloud.google.com\n\nSelecione o seu projeto\n\n## OAuth consent screen\n\n1. Marque a opção \"External\"\n2. Preencha o nome da usa aplicação \"App Name\", \"User Support email\", \"Developer Contact information\"\n3. Clique em \"Save and Continue\".\n4. Clique em \"ADD OR REMOVE SCOPES\", selecione a primeira opcão\n5. \"See your primary Google Account email address\" e clique em Update.\n6. Em seguida: Save and Update\n7. Adicione usuarios de testes que poderem usar a aplicação\n  seu-email-aqui@gmail.com\n Clique em \"add\"\n8. Selecione \"Save and Continue\".\n9. Por fim confirme os dados no último passo e clique no botão para voltar ao Dashboard.\n\n## Criando as credenciais\n\n1. Selecione a opaćo \"Credentials\"\n2. Selecione Create Credentials\n3. Selecione \"OAuth Client Id\"\n4. Selectione Web Application\n5. Preencha os campos\n   1. Application Type: Selectione Web Application\n   2. Name: \"My App\"\n   3. \"Authorized JavaScript origins\": http://localhost:8080\n   4. \"Authorized redirect URI\": http://localhost:8080/login/oauth2/code/google\n   5. Clique em \"Create\"\n7. Você terá a općao de fazer download das credenciais.\n\n\n```json\n{\n    \"web\":\n    {\n        \"client_id\": \"66998749621-pu8bn2n96e0c1lpes563j6hfngpsqcl.apps.googleusercontent.com\",\n        \"project_id\": \"hallowed-moment-684\",\n        \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n        \"token_uri\": \"https://oauth2.googleapis.com/token\",\n        \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n        \"client_secret\": \"745699541_pv8YPmiYTcMNNHtDNG4pffA_m\",\n        \"redirect_uris\":\n        [\n            \"http://localhost:8080/login/oauth2/code/google\"\n        ],\n        \"javascript_origins\":\n        [\n            \"http://localhost:8080\"\n        ]\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeltex%2Flogin-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeltex%2Flogin-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeltex%2Flogin-demo/lists"}