svn commit: r436729 - in head/security: . rubygem-omniauth-oauth2-generic
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Mar 22 21:04:00 UTC 2017
Author: sunpoet
Date: Wed Mar 22 21:03:58 2017
New Revision: 436729
URL: https://svnweb.freebsd.org/changeset/ports/436729
Log:
Add rubygem-omniauth-oauth2-generic 0.2.2
omniauth-oauth2-generic provides an OmniAuth strategy for authenticating with an
OAuth2 service using the authorization grant flow.
Most OmniAuth gems are written either as abstractions (omniauth-oauth2) or for a
specific provider (omniauth-github), but this one is designed to be configurable
enough to work with any basic OAuth2 provider. The primary differences between
OAuth2 provider strategies in OmniAuth are:
- The server's domain
- The URL paths used to authorize, request tokens and get user info
- The structure of the returned user information
These are all configurable options in this gem. There my be certain
requirements/features of some providers not covered by this gem's options, but
it was designed primarily so that if you are implementing your own OAuth2
provider for your service, you don't need to write an OmniAuth strategy as long
as it is compatible with the basic options provided by this gem.
WWW: https://gitlab.com/satorix/omniauth-oauth2-generic
Added:
head/security/rubygem-omniauth-oauth2-generic/
head/security/rubygem-omniauth-oauth2-generic/Makefile (contents, props changed)
head/security/rubygem-omniauth-oauth2-generic/distinfo (contents, props changed)
head/security/rubygem-omniauth-oauth2-generic/pkg-descr (contents, props changed)
Modified:
head/security/Makefile
Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile Wed Mar 22 21:03:53 2017 (r436728)
+++ head/security/Makefile Wed Mar 22 21:03:58 2017 (r436729)
@@ -1028,6 +1028,7 @@
SUBDIR += rubygem-omniauth-cas3
SUBDIR += rubygem-omniauth-gitlab
SUBDIR += rubygem-omniauth-multipassword
+ SUBDIR += rubygem-omniauth-oauth2-generic
SUBDIR += rubygem-omniauth-saml
SUBDIR += rubygem-omniauth-shibboleth
SUBDIR += rubygem-openssl-ccm
Added: head/security/rubygem-omniauth-oauth2-generic/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/rubygem-omniauth-oauth2-generic/Makefile Wed Mar 22 21:03:58 2017 (r436729)
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= omniauth-oauth2-generic
+PORTVERSION= 0.2.2
+CATEGORIES= security rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Generic, Configurable OmniAuth Strategy for OAuth2 providers
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+RUN_DEPENDS= rubygem-omniauth-oauth2>=1.0:net/rubygem-omniauth-oauth2
+
+NO_ARCH= yes
+USE_RUBY= yes
+USES= gem
+
+post-install:
+ ${RM} ${STAGEDIR}${PREFIX}/bin/console ${STAGEDIR}${PREFIX}/bin/setup
+
+.include <bsd.port.mk>
Added: head/security/rubygem-omniauth-oauth2-generic/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/rubygem-omniauth-oauth2-generic/distinfo Wed Mar 22 21:03:58 2017 (r436729)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1490206997
+SHA256 (rubygem/omniauth-oauth2-generic-0.2.2.gem) = e30814f6c472e04f3d9e4a3ddc03bc9a46f53f9333f8d443bf3ad43c6ebcdbd4
+SIZE (rubygem/omniauth-oauth2-generic-0.2.2.gem) = 9216
Added: head/security/rubygem-omniauth-oauth2-generic/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/rubygem-omniauth-oauth2-generic/pkg-descr Wed Mar 22 21:03:58 2017 (r436729)
@@ -0,0 +1,18 @@
+omniauth-oauth2-generic provides an OmniAuth strategy for authenticating with an
+OAuth2 service using the authorization grant flow.
+
+Most OmniAuth gems are written either as abstractions (omniauth-oauth2) or for a
+specific provider (omniauth-github), but this one is designed to be configurable
+enough to work with any basic OAuth2 provider. The primary differences between
+OAuth2 provider strategies in OmniAuth are:
+- The server's domain
+- The URL paths used to authorize, request tokens and get user info
+- The structure of the returned user information
+
+These are all configurable options in this gem. There my be certain
+requirements/features of some providers not covered by this gem's options, but
+it was designed primarily so that if you are implementing your own OAuth2
+provider for your service, you don't need to write an OmniAuth strategy as long
+as it is compatible with the basic options provided by this gem.
+
+WWW: https://gitlab.com/satorix/omniauth-oauth2-generic
More information about the svn-ports-all
mailing list