{"id":38068446,"url":"https://github.com/gobricks/ginyourface","last_synced_at":"2026-01-16T20:36:58.144Z","repository":{"id":57607108,"uuid":"58951931","full_name":"gobricks/ginyourface","owner":"gobricks","description":"Gin middleware for Facecontrol","archived":false,"fork":false,"pushed_at":"2016-05-16T17:27:33.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T12:37:56.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gobricks.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":"2016-05-16T17:18:32.000Z","updated_at":"2016-05-16T17:21:48.000Z","dependencies_parsed_at":"2022-08-30T08:51:35.056Z","dependency_job_id":null,"html_url":"https://github.com/gobricks/ginyourface","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gobricks/ginyourface","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobricks%2Fginyourface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobricks%2Fginyourface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobricks%2Fginyourface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobricks%2Fginyourface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gobricks","download_url":"https://codeload.github.com/gobricks/ginyourface/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobricks%2Fginyourface/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28482267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":[],"created_at":"2026-01-16T20:36:58.022Z","updated_at":"2026-01-16T20:36:58.118Z","avatar_url":"https://github.com/gobricks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/gobricks/ginyourface.svg?branch=master)](https://travis-ci.org/gobricks/ginyourface)\n[![Go Report Card](https://goreportcard.com/badge/github.com/gobricks/ginyourface)](https://goreportcard.com/report/github.com/gobricks/ginyourface)\n\n\n# ginyourface\n\n[Gin](https://github.com/gin-gonic/gin) middleware for [facecontrol](https://github.com/gobricks/facecontrol).\n\n# Basic example\n\nCreate file `main.go` and paste the following code into it:\n\n``` go\npackage main\n\nimport (\n    \"github.com/gin-gonic/gin\"\n\n    \"github.com/gobricks/ginyourface\"\n)\n\nfunc main() {\n    r := gin.New()\n\n    // now every request will be validated through Facecontrol service\n    // and userPayload will be returned if user has valid token\n    r.Use(ginyourface.Facecontrol())\n    \n    r.GET(\"/personal\", func(c *gin.Context) {\n        userData := c.MustGet(\"userPayload\").(interface{})\n        c.String(http.StatusOK, \"Hello %s\", userData[\"username\"])\n    })\n\n    r.Run(\":8080\")\n}\n```\n\n# Build and run\n\n```\n$ go build main.go\n$ FC_HOST=\"https://facecontrol.mysite.com\" FC_LOGIN_PAGE=\"https://login.mysite.com\" FC_SESSION_COOKIE=\"sessid\" ./main\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgobricks%2Fginyourface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgobricks%2Fginyourface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgobricks%2Fginyourface/lists"}