zitadel / zitadel-go

ZITADEL Go - The official client library of ZITADEL for an easy integration into your Go project.
https://zitadel.com
Apache License 2.0
73 stars 29 forks source link

feat(authentication): Add Authenticator config options for session store and session cookie name. #353

Closed helpisdev closed 4 months ago

helpisdev commented 4 months ago

Description

As documented in the InMemorySessions source (emphasis mine):

InMemorySessions implements the [Sessions] interface by storing the sessions in-memory. This is obviously not suitable for production and only meant for testing purposes.

the default implementation for the session sotre is not suitable for production, thus an alternative session store implementation must be used by the end user. Currently there isn't any option to bring your own session store, so I added this option. I also added an option to change the default cookie name for completeness sake.

I don't know how you run your testing suite so I haven't added any tests yet.

Definition of Ready

livio-a commented 4 months ago

@helpisdev thanks for this addition. This definitely makes sense.

If you like to get a gift from us, please write an email to hi@zitadel.com

github-actions[bot] commented 3 months ago

:tada: This PR is included in version 2.3.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: