Kratos question - our internal mail / notification service uses Bearer tokens for authN/Z, and these tokens expire every few hours. In Kratos, sending email/sms via http seems to require a more static set of credentials. Has anybody managed to square this circle or have ideas on how to do something like this?
s
steep-lamp-91158
03/20/2025, 8:57 AM
would that be some oauth2 tokens (so access/refresh pairs)? how would it be supposed to work, especially with the consideration that the service could restart and loose in-memory updated values?
steep-lamp-91158
03/20/2025, 8:57 AM
one option is always to use some kind of proxy that does this, but I admit it's not ideal
c
calm-farmer-87562
04/08/2025, 2:08 PM
yeah, that's currently the plan, to use a proxy.
if a kratos instance had a client_id/secret, it could pull those Bearer/Refresh tokens as needed, and it wouldn't need to live through a restart
s
steep-lamp-91158
04/08/2025, 4:46 PM
so oauth2 based client/secret? it would make sense to support such standardized auth methods
steep-lamp-91158
04/08/2025, 4:46 PM
can you create an github issue in ory/kratos with some details on how it should work?