Coder Social home page Coder Social logo

strapi-google-auth's People

Contributors

arjusmoon860 avatar chris533 avatar harshad-schbang avatar robmanganelly avatar urielcuriel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

strapi-google-auth's Issues

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

After enabling the plugin on plugins.ts I get compilation errors when running strapi on development:

export default ({ env }) => ({
  "google-auth": {
    enabled: true
  },
});

Error message:

Building your admin UI with development configuration...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:372:5)
    at validateString (node:internal/validators:120:11)
    at Object.resolve (node:path:1098:7)
    at /Users/luisgrases/projects/seano/node_modules/@strapi/admin/utils/create-cache-dir.js:82:33
    at Array.filter (<anonymous>)
    at createCacheDir (/Users/luisgrases/projects/seano/node_modules/@strapi/admin/utils/create-cache-dir.js:80:6)
    at async Object.build (/Users/luisgrases/projects/seano/node_modules/@strapi/admin/index.js:27:3)
    at async primaryProcess (/Users/luisgrases/projects/seano/node_modules/@strapi/strapi/lib/commands/develop.js:62:7) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Updating the plugin to work with the latest strapi versions

Hi All,

Sorry, I was busy with some personal work, and missed out uopdating the plugin to work with the latest strapi versions. Starting today, I am updating the plugin. It will be updated in next 3 to 4 days. I shall close this issue once it is done.

Thank you

interface config dont show

hi! i install plugin but the interface to confgi not show.. im new in strapi.. i use strapi 4.. in my plugins installed show me goolgeAuth

Running yarn develop on Strapi 4.6.0 produces TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

Posting this in case anyone else runs into the same. I'm not sure if the proper fix is to update the docs, but this worked for me. I'm on Node 18 and Strapi 4.6.0. (And yes at the time of writing this plugin doesn't officially support either..)

Error

yarn develop
yarn run v1.22.19
warning ../../../package.json: No license field
$ strapi develop
Building your admin UI with development configuration...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:400:5)
    at validateString (node:internal/validators:163:11)
    at Object.resolve (node:path:1098:7)
    at /Users/aviitala/dev-work/socially-responsible/strapi-proto/node_modules/@strapi/admin/utils/create-cache-dir.js:82:33
    at Array.filter (<anonymous>)
    at createCacheDir (/Users/aviitala/dev-work/socially-responsible/strapi-proto/node_modules/@strapi/admin/utils/create-cache-dir.js:80:6)
    at async Object.build (/Users/aviitala/dev-work/socially-responsible/strapi-proto/node_modules/@strapi/admin/index.js:27:3)
    at async primaryProcess (/Users/aviitala/dev-work/socially-responsible/strapi-proto/node_modules/@strapi/strapi/lib/commands/develop.js:62:7) {
  code: 'ERR_INVALID_ARG_TYPE'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Fix

Beyond what's given in the README, In your config/plugins.js add the below:

  'google-auth': {
        enabled: true,
        resolve: "./node_modules/strapi-google-auth/" // resolves the issue
    },

Get Google Authentication URL dosen't return the REDIRECTION_AUTH_CODE

I actually try to integrate google auth in my app but when i request STRAPI_BACKEND_URL/strapi-google-auth/init the REDIRECTION_AUTH_CODE is not present in the url :
https://accounts.google.com/o/oauth2/v2/auth?access_type=off…usercontent.com&redirect_uri=https%3A%2F%2Freview-rewards.fr
(At the first step...)

Error fetching the Login URL

Hey there,

I'm getting this error when I try get myserver.com/strapi-google-auth/init

"Error fetching the Login URL"

What could the issue be? Is there something misconfigured?

I am getting JsonWebTokenError for strapi-google-auth/me

I did Get Google Authentication URL:

   {
       method: 'GET',
       path: 'STRAPI_BACKEND_URL/strapi-google-auth/init',
   } 

then Authenticate User I am using vscode rest

POST http://localhost:1337/strapi-google-auth/user-profile HTTP/1.1
content-type: application/json

{
    "code":"Code from step 1"
}

get the token from step 2 then call

GET http://localhost:1337/strapi-google-auth/me HTTP/1.1
authorization:Bearer token_from_step_2

but always getting JsonWebTokenError: invalid signature :( at node_modules/jsonwebtoken/verify.js:138:19

The "path" argument must be of type string. Received undefined

Hi,
While setting up the plugin I am getting this error

google-auth
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:363:5)
    at validateString (node:internal/validators:119:11)
    at Object.resolve (node:path:167:9)
    at H:\LoyalAppProject\loyalbackend\node_modules\@strapi\admin\index.js:187:33
    at Array.filter (<anonymous>)
    at createCacheDir (H:\LoyalAppProject\loyalbackend\node_modules\@strapi\admin\index.js:184:6)
    at Object.build (H:\LoyalAppProject\loyalbackend\node_modules\@strapi\admin\index.js:59:9) {
  code: 'ERR_INVALID_ARG_TYPE'
}

I am on the latest version of strapi.
I just install it using yarn and enable it in the plugins.js then run yarn build and face this error

Use with React Native

Can I use google auth with react native? In that case what would be the redirect url?
Thanks and sorry for my english.

Google Auth doesn't display on the Login screen after everything is correctly setup

Hi, I'd like to understand how to get this to work on the login page, I installed the plugin correctly, followed the steps on the documentation, generated the Auth API keys and secret, configured the consent screen, the plugin shows on my plugin dashboard in strapi, but when I logout I still get the standard username/password strapi login.

What do I need to do to show the Google Auth?

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.