
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
使用OmniAuth實作NCTU-Oauth登入認證的Ruby套件
Add this line to your application's Gemfile:
gem 'omniauth-nctu'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-nctu
require 'sinatra'
require 'omniauth-nctu'
use Rack::Session::Cookie
use OmniAuth::Builder do
provider :nctu, ENV['NCTU_OAUTH_KEY'], ENV['NCTU_OAUTH_SECRET']
end
get '/' do
<<-HTML
<a href='/auth/nctu'>Sign in with NCTU</a>
HTML
end
get '/auth/nctu/callback' do
request.env['omniauth.auth'].to_hash.inspect rescue "No Data"
erb "您好,#{request.env['omniauth.auth'].to_hash["uid"]}。您的D2信箱是#{request.env['omniauth.auth'].to_hash["info"]["email"]}。"
end
Bug reports and pull requests are welcome on GitHub at https://github.com/deror1869107/omniauth-nctu.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that omniauth-nctu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.