mastodon / omniauth-mastodon Goto Github PK
View Code? Open in Web Editor NEWOmniAuth strategy for Mastodon
OmniAuth strategy for Mastodon
Should this be moved to the tootsuite org?
Hello I keep getting the following issue:
invalid_grant: The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. {"error":"invalid_grant","error_description":"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."}
Here is my omniauth.rb initializer:
Rails.application.config.middleware.use OmniAuth::Builder do
callback_url = "http://249f73c6.ngrok.io/auth/mastodon/callback"
@domain = "https://securitymastod.one"
provider :mastodon, scope: 'read', credentials: lambda { |domain='securitymastod.one', callback_url='249f73c6.ngrok.io/auth/mastodon/callback'|
client = Mastodon::REST::Client.new(base_url: "https://securitymastod.one")
app = client.create_app('Follower Test App', "http://249f73c6.ngrok.io/auth/mastodon/callback")
return [app.client_id, app.client_secret]
}
end
Also I can only get read scope to work. When I do scope: 'read write'
I get malformed or wrong scope from the instance.
Pleas ignore the variables not being used as I have been fiddling to test the issue.
Hi,
I see this gem downgraded my ominauth version to v1.
It would be nice to have ominauth 2 and the associated dependencies.
Thanks,
Dorian
When trying to POST after entering my login
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.