sinatra_auth_github | simple sinatra extension to authenticate users | OAuth library
kandi X-RAY | sinatra_auth_github Summary
kandi X-RAY | sinatra_auth_github Summary
A sinatra extension that provides oauth authentication to github. Find out more about enabling your application at github’s [oauth quickstart] To test it out on localhost set your callback url to
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sinatra_auth_github
sinatra_auth_github Key Features
sinatra_auth_github Examples and Code Snippets
Community Discussions
Trending Discussions on sinatra_auth_github
QUESTION
I am using the sinatra_auth_github
gem to try and put GitHub OAuth into my Sinatra app. I was testing using the sinatra-auth-github-test
example app for a while and it worked. I went back to try and get some of that code to work in my app and though most of it worked, the redirect from GitHub doesn't.
Can anyone recommend anything to help?
Here's the code:
...ANSWER
Answered 2017-Jan-12 at 03:05It's possible that the issue you're experiencing is related to shotgun
. This gem reloads your entire application on every request, so it's possible there's an issue with maintaining the OAuth-login session state across the login-related requests.
Running your application with rackup
instead (as in the example app), I don't experience any problems:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sinatra_auth_github
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page