0.0
No commit activity in last 3 years
No release in over 3 years
Show ribbon mark if basic authenticaiton is enabled.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0

Runtime

>= 0
 Project Readme

BasicAuthMark

Check whether HTTP Basic authentication is enabled or not. if basic authenticaiton is enabled, show github ribbon on your page.

Installation

Rails app

All you have to do is to include the Gem

gem "basic_auth_mark"

Configuring

Rails app

In config/environments/#{environment}.rb

Rails.application.configure do
  # change ribbon position(default:right-top)
  config.basic_auth_mark.position = 'left-bottom' # left-top/right-top/left-bottom/right-bottom
  # change color(default: 880000)
  config.basic_auth_mark.color = '0000aa'
  # change markable ip addresses(default: all ip addresses)
  config.basic_auth_mark.markable_ip_addresses = ['127.0.0.1']
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/g-ozawa/basic_auth_mark. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the BasicAuthMark project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Acknowledgements

Copyright

Copyright © 2019 Kazuki Ozawa.