Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    David Urbansky
    @ddsky
    hi, I think I must be missing something substantial here. If I try authenticate('facebook') as in the example, I get that app_id is missing. I see that there is a config.json where I can put my app_id probably in the client_id field but where is this documented? I also see that @dgrubelic wrote a code snippet about facebook login in here but again, why is this special code, shouldn't this be handeled by the lib transparently and where is this documented?
    Marek
    @murbanowicz
    Hi Guys,
    I am trying to make it work with Quasar framework app. So far I cannot get it working... When I try to call this.$auth.authenticate... I am always getting auth undefined...
    // Vue & Axios
    import axios from 'axios'
    import VueAxios from 'vue-axios'
    Vue.use(VueAxios, axios)
    
    import VueAuthenticate from 'vue-authenticate'
    Vue.use(VueAuthenticate, {
      baseUrl: 'http://localhost:5000',
    
      providers: {
        facebook: {
          clientId: '***',
          redirectUri: 'http://localhost:8090/auth/callback'
        }
      }
    })
    David Urbansky
    @ddsky
    @murbanowicz same here, also on quasar
    Kieran
    @kieraneglin
    Hey, all. I need to use Twitch as a provider, but I see that vue-authenticate doesn't support it yet. I wanted to know if there were any plans for supporting twitch, or if I should try to implement it myself
    kpasko
    @kpasko
    super basic, but can anyone help with an error for google login? i'm getting a missing "client_id" with the call vueAuth.authenticate('google')
    have created a google project, have the client id and secret, but the vue-authenticate docs don't seem to mention anything in terms of getting those into its requests...
    kpasko
    @kpasko
    ah, disregard. apparently it has to be clientId in the configuration setup, not client_id
    therealwolf
    @therealwolf42
    Ah didn't know this existed
    @dgrubelic
    thank you!
    Davor Grubelić
    @dgrubelic
    Hey..
    so, i found out that this url: https://signup.utopian.io/auth/callback?code=11 which is accepting code parameter from github is having redirect
    therealwolf
    @therealwolf42
    redirect before closing?
    Davor Grubelić
    @dgrubelic
    and it is redirecting to https://signup.utopian.io/?code=11
    therealwolf
    @therealwolf42
    could this be a nginx problem?
    Davor Grubelić
    @dgrubelic
    yes, and before library can receive code
    probably..
    do you do server side rendering ?
    basically, what you should to in ca se of SPA is to always respond with application code from server
    for example, in nodejs world, you have something like this: https://www.npmjs.com/package/express-history-api-fallback
    this library makes sure that, which ever link you enter, you get your application
    client application
    maybe you don't have to setup your callback url to /auth/callback..
    maybe set it up to be /
    therealwolf
    @therealwolf42
    Okay - I think I do SSR - at least I build through npm run build. But I just started last year with Javascript so I'm getting used to all of it.
    Ehm, the api backend receives the request and then returns it
    but I guess not before the redirect
    I've implemented the backend api into an already existing framework, so I'm not sure in which way your package would work with that - but this is really interesting!
    I don't have access right now to the server, but my guess is that it doesn't even get to the point, so it has to be somekind of nginx redirect
    Davor Grubelić
    @dgrubelic
    this line check if redirectUri matches url on which Github redirects you
    you setup your redirectUri to be: ${process.env.ROOT_PATH}/auth/callback
    but, since on that route you have redirect and app lands on${process.env.ROOT_PATH}/ nothing happens
    therealwolf
    @therealwolf42
    oh but do you know what causes this redirect?
    Davor Grubelić
    @dgrubelic
    this is why popup is not closed and auth is not completed
    therealwolf
    @therealwolf42
    ah
    Davor Grubelić
    @dgrubelic
    your backend
    therealwolf
    @therealwolf42
    i see
    but it works in development mode with the same backend
    Davor Grubelić
    @dgrubelic
    maybe your backend is configured differently in development mode
    i don't know
    therealwolf
    @therealwolf42
    okay I will see why that happens - haven't coded the backend
    I mean the main parts
    Davor Grubelić
    @dgrubelic
    i have tested this library on many cases, and usually it happens that it is problem with implementation code, not the library itself :(
    but i can't help you with that bacause i don't know your backend
    you can reach out here anytime you need help
    therealwolf
    @therealwolf42
    don't worry - you helped me a lot. A big thanks to you!
    By the way - what I'm programming is the account creation for something called Utopian - which is Github build on the blockchain, which rewards Open Source Contributions

    There is already an account creation but this is through another interface of the blockchain.

    Nevertheless, you might want to check it out: utopian.io :)