Join Discord
Powered by
- Is there a support for robots? I.e. some pre-app...
# support-questions-legacy
n
NicolasAlt
08/18/2022, 3:42 PM
- Is there a support for robots? I.e. some pre-approved PAT or similar, that doesn't expire
r
rp_st
08/18/2022, 3:57 PM
Can you elaborate on this please?
n
NicolasAlt
08/18/2022, 4:06 PM
Let's say I want to authenticate from a CI pipeline, for example, to send logs and status from the CI run to our API server.
NicolasAlt
08/18/2022, 4:07 PM
I'd store a pre-approved token e.g. in Github secrets or similar
r
rp_st
08/18/2022, 4:08 PM
Got it. So that's possible to do. See
https://supertokens.com/docs/microservice_auth/introduction
. The one known issue with this is that revoking the pre approved tokens would involve maintaining a blacklist on your side.
n
NicolasAlt
08/18/2022, 4:14 PM
so these JWTs don't expire and are not refreshed, correct?
r
rp_st
08/18/2022, 4:15 PM
well, you can set a lifetime of 100 years so effectively they don't expire. And they don't refresh either.
n
NicolasAlt
08/18/2022, 4:17 PM
thanks, I guess this is fine
2
Views
Previous
Next