{"id":37114116,"url":"https://github.com/dfang/auth_themes","last_synced_at":"2026-01-14T13:26:25.393Z","repository":{"id":57482866,"uuid":"187967153","full_name":"dfang/auth_themes","owner":"dfang","description":"Auth Themes","archived":true,"fork":true,"pushed_at":"2019-12-28T09:39:15.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T05:28:42.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"qor/auth_themes","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-22T05:12:54.000Z","updated_at":"2023-01-28T13:27:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dfang/auth_themes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dfang/auth_themes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfang%2Fauth_themes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfang%2Fauth_themes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfang%2Fauth_themes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfang%2Fauth_themes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfang","download_url":"https://codeload.github.com/dfang/auth_themes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfang%2Fauth_themes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-14T13:26:24.870Z","updated_at":"2026-01-14T13:26:25.384Z","avatar_url":"https://github.com/dfang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth Themes\n\nAuth Themes is a collection of themes for [Auth](https://github.com/qor/auth), which is a Golang authentication framework.\n\nIt aimis to reduce repeated code, make you be able to integrate [Auth](https://github.com/qor/auth) into your application with few lines of code.\n\n## Usage\n\nEach theme might has different usage, please refer their own documents, but most of them should be easy as accept an Auth Config to initialize itself.\n\nHere is an example for how to use theme `clean`\n\n```go\nimport  \"github.com/qor/auth_themes/clean\"\n\nfunc main() {\n  Auth = clean.New(\u0026auth.Config{\n    DB:         db.DB,\n    Render:     config.View,\n    Mailer:     config.Mailer,\n    UserModel:  models.User{},\n    Redirector: auth.Redirector{RedirectBack: config.RedirectBack},\n  })\n}\n```\n\n## How to create themes\n\nAlthough integrate Auth into your application already much easier than write your own solution, it is boring/time costing to repeat yourself again and again.\n\nTo avoid this, you could create your own Auth theme.\n\nUsually when write your theme, you can just accept an Auth Config and extend it with some default settings, and prepend Auth's ViewPaths to customize view templates, for example:\n\n```go\nfunc New(config *auth.Config) *auth.Auth {\n  if config == nil {\n    config = \u0026auth.Config{}\n  }\n  config.ViewPaths = append(config.ViewPaths, \"github.com/qor/auth_themes/clean/views\")\n\n  Auth := auth.New(config)\n  return Auth\n}\n```\n\nRefer Theme [Clean](https://github.com/qor/auth_themes/tree/master/clean) for more details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfang%2Fauth_themes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfang%2Fauth_themes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfang%2Fauth_themes/lists"}