Auth static token creation with OCI #2971
Replies: 5 comments 9 replies
-
Hey @thepabloaguilar 👋 Probably the best mechanism to choose here would be the JWT authentication instead. Which language are you integrating with? |
Beta Was this translation helpful? Give feedback.
-
Another thing to clarify
This is not entirely true as if you do enable static token authentication it requires a database, and if you add cache this will definitely make the requests faster as we cache tokens for auth as well We only don't require a database if you are using non-DB storage AND do not enable authentication: Lines 51 to 60 in 7620fe8 Line 79 in 7620fe8 Related to what @GeorgeMac said, you can use JWT auth without a database but our current check does not allow that actually: Line 55 in 7620fe8 @GeorgeMac we should not try to connect to a DB if only the JWT auth method is used and non-DB storage is used |
Beta Was this translation helpful? Give feedback.
-
I created an issue to track the last point: #2972 |
Beta Was this translation helpful? Give feedback.
-
Got it @markphelps, but even if I use a cache to store the tokens I don't want to use it when OCI (or any declarative method) are being used! There's no way to make this separation rn, right? Like, saying the cache will only be used for auth stuff |
Beta Was this translation helpful? Give feedback.
-
@thepabloaguilar is everything resolved for you? Or there is some blocker for you? |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm trying to understand how I can enable static token and continue using OCI! For what I've understood when using OCI the Database is not used/ignored and the Cache is "irrelevant" as everything is already in memory and a believe for static token it should have a persistent storage
So, how can I setup that?
Beta Was this translation helpful? Give feedback.
All reactions