{"id":37022740,"url":"https://github.com/ricsirigu/lift-omniauth","last_synced_at":"2026-01-14T02:43:11.368Z","repository":{"id":57722384,"uuid":"87549142","full_name":"ricsirigu/lift-omniauth","owner":"ricsirigu","description":"Omniauth for Lift","archived":false,"fork":true,"pushed_at":"2017-07-18T08:18:56.000Z","size":409,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-18T02:01:13.582Z","etag":null,"topics":["lift-framework","oauth2","omniauth"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ghostm/lift-omniauth","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ricsirigu.png","metadata":{"files":{"readme":"README.markdown","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":"2017-04-07T13:35:24.000Z","updated_at":"2024-03-18T02:01:13.583Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ricsirigu/lift-omniauth","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ricsirigu/lift-omniauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricsirigu%2Flift-omniauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricsirigu%2Flift-omniauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricsirigu%2Flift-omniauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricsirigu%2Flift-omniauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ricsirigu","download_url":"https://codeload.github.com/ricsirigu/lift-omniauth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricsirigu%2Flift-omniauth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["lift-framework","oauth2","omniauth"],"created_at":"2026-01-14T02:43:10.821Z","updated_at":"2026-01-14T02:43:11.347Z","avatar_url":"https://github.com/ricsirigu.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Lift-Omniauth Module\n## Usage\nin `Boot.scala`\n\n```scala\nimport omniauth.lib._\n...\n//Add Omniauth to the sitemap\nOmniauth.sitemap\n//init\n//Supply a list of providers\nOmniauth.initWithProviders(List(new FacebookProvider(\"key\", \"secret\")))\n//or init with providers in properties\nOmniauth.init\n```\n\n\ndefine your client id (key) and secret for each provider you will use in your props file(s) or as JVM system properties\n\n```\nomniauth.facebooksecret=...\nomniauth.facebookkey=...\n```\n\nset the base URL for your application\n\n```\nomniauth.baseurl=http://localhost:8080/\n```\n\nset the success and failure URLs\n\n```\nomniauth.successurl=/\nomniauth.failureurl=/error\n```\n\nFor Facebook provider you can set permissions. For example:\n\n```\nomniauth.facebookpermissions=email,read_stream\n```\n    \nRedirect the user to the auth URL in your application:\n\n```scala\nS.redirectTo(\"/auth/facebook/signin\")\n```\n    \nYou can optionally specify where the user should return to after successful authentication:\n\n```scala\nS.redirectTo(\"/auth/facebook/signin?returnTo=%2Ftimeline%3FshowComments%3Dtrue\")\n```\n    \nAfter a user has logged into an auth provider you can access data through the session var Omniauth.currentAuth\n\n```scala\nOmniauth.currentAuth match {\n  case Full(auth:AuthInfo) =\u003e \n  case _ =\u003e\n}\n```\n\nYou can also use obtain a user's unique ID from a provider without using sessions using Omniauth.tokenToId(provider:String, token:String): Box[String]\n\n```scala\nOmniauth.tokenToId(\"facebook\", token) match {\n  case Full(uid) =\u003e user.doSomethingWithFacebookId(uid)\n}\n```\n\nFinally redirect the user back to the appropriate place in the application, using the optional `returnTo` variable:\n\n```scala\nval url = Omniauth.returnTo.openOr(\"/\")\nS.redirectTo(url)\n```\n\n## Installation\n\nA big thank you to [jonoabroad](https://github.com/jonoabroad) for [hosting builds](https://liftmodules.ci.cloudbees.com/job/Omniauth%20Lift%20Module/) to make using much easier.\n\nTo include this module in your Lift project, update your `libraryDependencies` in `build.sbt` to include:\n\n```scala\nlibraryDependencies ++= {\n  val liftEdition = \"2.5\" // Also supported: \"2.6\" and \"3.0\"\n\n  Seq(\n    // Other dependencies ...\n    \"net.liftmodules\" %% (\"omniauth_\"+liftEdition) % \"0.17\" % \"compile\"\n  )\n}\n```\n\n## Supported Versions\n\n**Lift-OmniAuth** is built and released to support Lift edition 2.5 with Scala versions 2.9.1, 2.9.1-1, 2.9.2, and 2.10; Lift edition 2.6 with Scala versions 2.9.1, 2.9.1-1, 2.9.2, 2.10, 2.11; and Lift edition 3.0 with Scala version 2.11.  This project's scala version is purposefully set at the lowest common denominator to ensure each version compiles.\n\n    \n## Providers\n\n**Lift-OmniAuth** currently supports the following external providers:\n\n* via OAuth\n  * Facebook\n  * Twitter\n  * Github\n  * MSLive\n  * Dropbox\n  * Linkedin\n  * Google+\n  * Instagram\n  * VK\n  * Kuaipan(金山快盘/迅雷快盘)\n\n## Tutorials\n[Joe Barnes](https://github.com/joescii) has written [Dropbox tutorial](http://proseand.co.nz/2014/01/20/integrating-dropbox-into-a-lift-app/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricsirigu%2Flift-omniauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fricsirigu%2Flift-omniauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricsirigu%2Flift-omniauth/lists"}