Giter Club home page Giter Club logo

omniauth-mastodon's Issues

Invalid Grant

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.

Upgrade to omniauth 2?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.