Auth0 Home Blog Docs

Using auth0 and oauth2 to do a google assistant app

auth0
gcp

#1

I’m trying this project (https://github.com/Nilhcem/smarthome-androidthings) two weeks ago and the invalid client_id error in the google home app. (error http 400) Although following this link (https://stackoverflow.com/questions/44288981/how-to-authenticate-user-with-just-a-google-account-on-actions-on-google) I can not set oauth correctly. In the photo below (which is part of the project cited) the author says that google itself should provide the oauth code but I can not authenticate and always issue

How to Auth0 can help me in this case

photo: https://drive.google.com/file/d/1lrDapA404tSGt4W18qsVBHJTNJEJBsKS/view?usp=sharing


Using auth0 and oauth2 to do a google assistant app ( part 2 )
Using auth0 and oauth2 to do a google assistant app ( part 2 )
#4

:wave: @neuberfran I believe it’s possible to setup google assistant with Auth0 (personally I have not tried but there have been articles online of people saying they accomplished this) there’s an article here that someone wrote about how they were able to achieve this: https://www.jovo.tech/blog/google-action-account-linking-auth0/ (and this https://auth0.com/docs/connections/social/google) but these are not official Auth0 documents/tutorials. I am not sure how far you have gotten, but that article should be helpful if you want to setup with Auth0.

(The project you linked to looks super cool. I might actual try that out myself)


#5

I would appreciate it if you would help me with this project, with tips and doing it also if possible


#6

We are not able to build this for you, but this is a good opportunity for you to learn, and through trial and error, get to your desired end result. I suggest that you reach out to the original project you started looking into and seeing what assistance / guidance they might have.


#7

#8

Hi,

I stay trying this: Using auth0 and oauth2 to do a google assistant app
and this: https://www.jovo.tech/blog/google-action-account-linking-auth0/

My question stay in photo below:

https://drive.google.com/file/d/1qjXevevCIFpNZmZQ8dbNcnQ7lc2Lv7A-/view?usp=sharing

WHY?

i NEED this (I think) to solve my issue (in my action assistant project) quoted in the last messages of this topic (Nick Felker) https://github.com/googlesamples/assistant-sdk-python/issues/165#issuecomment-419213559:


#9

#10

You’re following a guide for integrating with a product we don’t support (Jovo), and it is telling you that you need offline_access as one of the scopes, and you’re asking us

WHY?

Have you tried following the guide, including using offline_access in the scope? The only thing I think we can provide you in this instance is to read through the following:

which details how to use Access Tokens. Otherwise I suggest contacting the tutorial writer? If you’re receiving specific errors related to Auth0 you can provide them here and we can help troubleshoot those.


#11

hi, @jeremy.meiss Thank you very much for your help so far.

In my app wHome things in auth0 i ONLY have OPENID and not offline_access option (I say again that I’m not sure if this will solve my problem)

https://drive.google.com/file/d/1RxnyqlB67XWG3iSscD_iRefX5mJhwH07/view?usp=sharing

In my project I don’t use Jovo. My project is based on the below:


#12

As asked before, did you contact the developer that your project is based on? You’re using different tutorials to do different things and it seems they’re all conflated between each other.

One question though - did you do this on your Management API in Auth0?

Choose the Auth0 Management API and select all scopes .

Offline access is addressed in the document that I linked - you’re going to need to work with that Github repo / tutorial and take the access_token info I gave to see what shakes together.


#13

Topic creator never responds

and if you repair it, it uses a temporary and more cost-effective way to store oauth. he uses ngrok and exposes the port. I want to use auth0 if possible


#14

I don’t understand this

https://drive.google.com/file/d/19Mu4V0_cgGpa0BqYr1rWE8tm9uoI-VC0/view?usp=sharing

and

About this: https://auth0.com/docs/tokens/access-token

I will put 2592000 seconds But I don’t know if will solve


#15

Why I don’t have this

https://drive.google.com/file/d/1i_H9f8Me3-wP0_M50vP7AlwOiriTo5Nd/view?usp=sharing


#16

Not solved

,


#18

At this time, I am not sure that Auth0 can currently directly support this type of flow. It would be helpful to know the intended use-case so that we can look into supporting it. Can you share the details, please feel free to DM me.

At this time, I would not have a timeline for its availability or if there will be in the future.


#20

This is a problem similar to my


#21

oauth expires in 1h


#22

As @kim.noel stated, I don’t think we can directly support this type of flow that you’re talking about. It would be helpful if you could share with us your use case, ultimately what you’re trying to achieve in as verbose a way as possible, so that we can look into what effort it would take to support it.

Otherwise I am not sure what else we can do as you’re giving us links to things which don’t seem to apply to your use case.


#23

@jeremy.meiss My friend, how can you not understand? Do not you know my problem yet? It is very clear. The links (including the stackoverflow above) show this:

oauth2 access token expires in 1 hour.

I need this to last forever, that is, to keep renewing itself automatically


#24

As both @kim.noel and I have asked you to explain exactly what you are doing and what you’re wanting it is not clear. You have posted all sorts of links to all sorts of different things.

For instance, that SO link you provided has nothing to do with Auth0 and is related to how Google handles their tokens and not Auth0. That title is what someone is seeing, but the full list of replies give ways to work with it. It’s not something we can assist you with.

The point here is that we do not believe that we will be able to help you as we do not currently support the process it seems you are trying to do. If you would like to request that we support this, I suggest that you submit your full use case, what you’re wanting to be able to do, and how you want Auth0 to support it, at https://auth0.com/feedback.