keystone icon indicating copy to clipboard operation
keystone copied to clipboard

docs(examples): add custom session with passport

Open unrevised6419 opened this issue 1 year ago • 9 comments
trafficstars

https://github.com/keystonejs/keystone/assets/1881266/dfc1a65f-13d1-4cbf-84e7-8dd64b3faca7

unrevised6419 avatar May 01 '24 13:05 unrevised6419

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 82455d82bd77e55fbc06fb04b074c7d99ba1a4de:

Sandbox Source
@keystone-6/sandbox Configuration

codesandbox-ci[bot] avatar May 01 '24 13:05 codesandbox-ci[bot]

I can't review this this week @iamandrewluca, but this looks amazing! :yellow_heart:

dcousens avatar May 01 '24 14:05 dcousens

Great! I will also do a review myself, probably at the end of the week or next week. I Need to make some more adjustments.

unrevised6419 avatar May 01 '24 14:05 unrevised6419

Nice work @iamandrewluca ! 💙

borisno2 avatar May 08 '24 08:05 borisno2

@borisno2 @dcousens PR is ready to be reviewed again!

unrevised6419 avatar May 08 '24 19:05 unrevised6419

Nice! May I ask what is the password set to?

LabLamb avatar May 17 '24 03:05 LabLamb

@LabLamb, what do you mean by that? Trolling? Spam soon?

unrevised6419 avatar May 17 '24 05:05 unrevised6419

@LabLamb, what do you mean by that? Trolling? Spam soon?

For the native Keystone auth method there is a password, if we use SSO for creating the account, what method is used to craete an password for that the newly created account? Is it a random long string or blank?

LabLamb avatar May 17 '24 06:05 LabLamb

In this case, there is no password. You always log in with SSO. SSO is responsible for user authentication.

This use case can be made to work in combination with both SSO and password. In that case, a random password is generated when the user first logs in with SSO. And later, they can decide to do a "forgot password" and start using username/password instead of SSO.

Even multiple providers can be added to SSO.

unrevised6419 avatar May 17 '24 06:05 unrevised6419

Squashed and rebased on main

dcousens avatar Jul 17 '24 04:07 dcousens