paulvanbladel / aurelia-auth

:key: Authentication plugin for aurelia
200 stars 74 forks source link

Providers clientId is not beeing setted #171

Closed ne0guille closed 7 years ago

ne0guille commented 7 years ago

Hello, im having some problems using google provider OAuth2 with aurelia-auth

`var configForDevelopment = {

providers: {
     google: {
        redirectUri:'http://localhost:3000/auth/google/callback',
        clientId: '611325554483-l3ipiu04q5tdaed8j9uplav0h1r70dd7.apps.googleusercontent.com'
    }
}

};

image

I;ve setted my client id with all the defaults options, but its not beeing set on the current obj, so i get a 400 Error: invalid_request

Missing required parameter: client_id

this is the generated url:

https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=&redirect_uri=http://localhost:3000&scope=openid profile email&display=popup&state=1xy089s3sir4cu660oj4np14i"
`
ne0guille commented 7 years ago

closing this as https://github.com/SpoonX/aurelia-authentication/issues/259#issuecomment-279946328