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

SSO JWT mode not working #8392

Closed
3 tasks done
NilsBaumgartner1994 opened this issue Sep 28, 2021 · 1 comment
Closed
3 tasks done

SSO JWT mode not working #8392

NilsBaumgartner1994 opened this issue Sep 28, 2021 · 1 comment

Comments

@NilsBaumgartner1994
Copy link
Contributor

Preflight Checklist

Describe the Bug

As i am trying to get the directus_refresh_token via a jwt (for localhost development or mobile app) it is not possible for me to obtain it.

See:
directus/v8-archive#1981
since i think that if the normal login can this, the sso auth will also allow this:
https://docs.directus.io/reference/api/system/authentication/#login

  1. Call SSO Provider using https://mydomain.com/projectname/auth/sso/google?mode=jwt&redirect_url=https://myvueappdomain.com/callback

Now Step 2 is not working.
2. Getting https://myvueappdomain.com/callback?request_token=xxxxxxx. I got that token

To Reproduce

oAuth login but with jwt or json mode instead of cookies.

What version of Directus are you using?

directus/directus:9.0.0-rc.95

What version of Node.js are you using?

v14.15.4

What database are you using?

postges

What browser are you using?

Chrome

What operating system are you using?

macOS

How are you deploying Directus?

Docker

@NilsBaumgartner1994
Copy link
Contributor Author

I think in /src/controllers/auth.ts at line 332 it could either be implemented or is missing ?

@directus directus locked and limited conversation to collaborators Sep 28, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants