blizzard / omniauth-bnet Goto Github PK
View Code? Open in Web Editor NEWOmniauth Strategy for Battle.net Login
License: MIT License
Omniauth Strategy for Battle.net Login
License: MIT License
Hello!
I try use Sinatra example of omniauth-bnet, and get this error:
Authentication Failed:
message:invalid_request
{"message"=>"invalid_request", "origin"=>"http://mysite.com/", "strategy"=>"bnet"}
I test this multiple times, on different versions of ruby and gems, but still get "Internal server error"
which no explanation.
Anyone can help me? :)
Hi Blizzard,
I think it is great that you made a gem, but I am not able to guess how you define the client_id is needs.
This is my setup /config/initializers/omniauth.rb
:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :bnet, ENV['h9ymxyw8sumrgs2hb569hn8ph9r9mpbk'], ENV['Secret'],
scope: "wow.profile",
region: "eu"
end
when I then test within development (using SSL - thin start --ssl
), I see the following request without client_id params.
https://eu.battle.net/oauth/authorize?client_id=&redirect_uri=https%3A%2F%2Flocalhost%3A3000%2Fauth%2Fbnet%2Fcallback&response_type=code&scope=wow.profile&state=cf31d73b61a1aeba32e92c610a73904834921325c226a91e
how do I define the client_id?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.