Hi everyone, we are trying to set up Google Single...
# questions
a
Hi everyone, we are trying to set up Google Single Sign On in our Grails 5 REST API, which is consumed by a Vue.js frontend. Currently, the authentication is handled by the REST Grails plugin and users are authenticated with JWT tokens. We have obtained the client ID and secret from Google. Then we have tried going down two paths: 1. After successfully going through the google auth process, we receive a google id token, verify it and create access token manually. This doesn't look very Grails-ey 🙂 Has anyone had success with this approach? 2. We also tried to follow the https://guides.grails.org/grails-oauth-google/guide/index.html except we don't override the views because we don't use them. Here we have several main concerns: 1)
Copy code
frontendCallbackUrl = { String tokenValue -> "<http://localhost:8080/auth/success?token=${tokenValue}>" }
This line from the guide seems to suggest that under the hood the following link will be called after google authentication and the generated token will automatically be added. How can we achieve this without using Grails views and redirects? 2) It is mentioned in the guide that, with this approach, no users are stored in the local database, while we would like to keep the option to log in with an account which is not from Google. Is this possible to have both Google Sign In and sign in with email and password using this plugin? Thank you in advance for all your thoughts!