Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store both access_token and id_token, not mutually exclusive #1291

Closed
radarcg opened this issue Sep 6, 2021 · 2 comments
Closed

Store both access_token and id_token, not mutually exclusive #1291

radarcg opened this issue Sep 6, 2021 · 2 comments

Comments

@radarcg
Copy link

radarcg commented Sep 6, 2021

This is a request as follow up to the closed issue, #366.

I seem to be running into a similar issue using the identity provider support for Cognito User Pools. According to the documentation, /userinfo must send an access_token: https://docs.amazonaws.cn/en_us/cognito/latest/developerguide/cognito-user-pools-oidc-flow.html

However, to authenticate a user with an integrated API Gateway using the Cognito User Pool Authorizer, the id_token must be used: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-enable-cognito-user-pool.html

So this is yet another use case where the auth library needs to store both the access_token and the id_token.

@kilakewe
Copy link

I'm with you here on this one. It's been a problem for the past year for me.

@yoshwata
Copy link

yoshwata commented Jan 6, 2022

I am facing a similar problem. I would like to use the ID token for Hasura authorization. Also, the authentication process requires access to the Auth0 API, which requires an access token.

https://auth0.com/docs/security/tokens

If multiple responseTypes are set in nuxt.config.json like 'token id_token', only the access token is stored in the local storage. In this situation I cannot authenticate requests to Hasura.

I can get ID token by specifying only id_token, but the login process will not complete.
スクリーンショット_2022-01-06_8_03_34

I want a mechanism that can obtain both an access token for login and an ID token for using the application.

@nuxt-community nuxt-community locked and limited conversation to collaborators Jan 24, 2022
@bmulholland bmulholland converted this issue into discussion #1628 Jan 24, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants